Coder Social home page Coder Social logo

oswvalidators's People

Contributors

alishahusain avatar devalapr avatar karthikkadajji avatar rdevalap avatar rtgunti avatar sureshgaussian avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

uwtcat

oswvalidators's Issues

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.