- Polyline.divide_polyline_by_length(length, strict=True, tol=1e-06)
Splits a polyline in segments of a given length.
length (float) – Length of the segments.
strict (bool, optional) – If False, the remainder segment will be added even if it is smaller than the desired length
tol (float, optional) – Floating point error tolerance.
The points of the new polyline are constrained to the segments of the old polyline. However, since the old points are not part of the new set of points, the geometry of the polyline will change.