Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RoadCleanup breaks on GeometryCollection #6

Open
geohacker opened this issue Oct 18, 2018 · 0 comments
Open

RoadCleanup breaks on GeometryCollection #6

geohacker opened this issue Oct 18, 2018 · 0 comments

Comments

@geohacker
Copy link
Collaborator

ORMA is running into the following error:

2018-10-17 14:37:06 --     Resplit roads on new junctions
Traceback (most recent call last):
  File "Network_Clean.py", line 211, in <module>
    phase_2_final_roads, phase_2_final_junctions = RoadCleanup(iteration_roads, iteration_junctions, 2)
  File "Network_Clean.py", line 202, in RoadCleanup
    splitted = shapely.ops.split(line, points)
  File "/usr/local/lib/python2.7/dist-packages/shapely/ops.py", line 464, in split
    raise ValueError("Splitting a LineString with a %s is not supported" % splitter.type)
ValueError: Splitting a LineString with a GeometryCollection is not supported

On this line https://github.com/Charlesfox1/Network_Cleaning/blob/master/Network_Clean.py#L202
I'm unsure about the operations at this stage in this script, so any help is appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant