oswvalidators's People
Forkers
uwtcatoswvalidators's Issues
Write connected components to seperate geojson files
Add a file to generate_schema
Schema is being created manually from OSW_Tags
This is updated according to the requirements. Write a script to generate the schema automatically from the sheet.
intersectingValidation results in IndexError: list index out of range error
Running the following line on multiple different test cases results in an Index Error
python main.py --inputPath TestData/Test2/input --writePath TestData/Test2/output
Output:
Reading files from : TestData/Test2/input
Number of geojson files : 2
Processing the following files :
bell_Node.geojson
bell_Ways.geojson
ways_file split into bell_Ways_connected.geojson and bell_Ways_isolated.geojson
number of ways in the currrent file : 316
Checking whether there are any Ways without an intersecting node
[==================== ] 78% Traceback (most recent call last):
File "main.py", line 47, in
intersectLineStringInValidFormat(utildOriginal.ways_json, "brunnel", cf, ntpath.basename(ways_file))
File "/home/alisha/oswvalidators/intersectingValidation.py", line 149, in intersectLineStringInValidFormat
{"type": "Feature", "geometry": {"type": "Point", "coordinates": appendPoints[0]}})
IndexError: list index out of range
Expected Output:
Number of geojson files :
Processing the following files:
ways_file split into xxx_Ways_connected.geojson and xxx_Ways_isolated.geojson
number of ways in the currrent file : 108
Checking whether there are any Ways without an intersecting node
[==========================] 100%
eda
Number of ways in the file : 108
Number of Subgraphs/islands : 19
Number of ways not connected to any other way: 0
Number of ways that are connected to atleast one other way: 108
Number of ways in subgraph 0: 3
Number of ways in subgraph 1: 3
Number of ways in subgraph 2: 2
Number of ways in subgraph 3: 2
Number of ways in subgraph 4: 14
Number of ways in subgraph 5: 2
Number of ways in subgraph 6: 2
Number of ways in subgraph 7: 2
Number of ways in subgraph 8: 3
Number of ways in subgraph 9: 54
Number of ways in subgraph 10: 6
Number of ways in subgraph 11: 5
Number of ways in subgraph 12: 5
Number of ways in subgraph 13: 3
Number of ways in subgraph 14: 2
Number of ways in subgraph 15: 2
Number of ways in subgraph 16: 2
Number of ways in subgraph 17: 2
Number of ways in subgraph 18: 2
As a result of this error, no "recommended_intersections.geojson", "missing_intersections.geojson", or "subgraph.geojson" files are produced in the output.
Clean up config file and change command line arguments
-
Add all the validations implemented and tested as default
-
Remove file_filter from config.py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.