cityImage.split_line_at_MultiPoint#

cityImage.split_line_at_MultiPoint(line_geometry, intersections, z=0.0)[source]#

Split a LineString at one or more point intersections.

Parameters:
  • line_geometry (LineString) – LineString to split.

  • intersections (MultiPoint | list[Point]) – Points where the line should be split.

  • z (float | None) – Optional z value to assign to split segments. Pass None to preserve 2D geometries.

Returns:

Split line segments.

Return type:

list[LineString]