Skip to content

RoadCleanup breaks on GeometryCollection #6

@geohacker

Description

@geohacker

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions