cityImage.split_line_at_MultiPoint#
- cityImage.split_line_at_MultiPoint(line_geometry, intersections, z=0.0)[source]#
The function checks whether the coordinates of one or more Points in a Point Collections are part of the sequence of coordinates of a LineString. When this has been ascerted or fixed, the LineString line_geometry is split at each of the intersecting points in the collection and a list of lines, each representing one of the sections resulting from the intersections is returned.
- Parameters:
line_geometry (LineString) – The LineString which has to be split.
intersections (MultiPoint) – The intersecting points.
z (float) – The z-coordinate value to assign to each vertex of the resulting lines. Default is 0.0.
- Returns:
lines – The resulting segments composing the original line_geometry.
- Return type:
List of MultiLineString