Converts LineStrings into a MultiLineString by cutting it in two at each distance along the length of the LineString.
Usage | Returns |
---|---|
LinearRing.cutLines(distances, maxError, proj) | Geometry |
Argument | Type | Details |
---|---|---|
this: geometry | Geometry | Cuts the lines of this geometry. |
distances | List | Distances along each LineString to cut the line into separate pieces, measured in units of the given proj, or meters if proj is unspecified. |
maxError | ErrorMargin, default: null | The maximum amount of error tolerated when performing any necessary reprojection. |
proj | Projection, default: null | Projection of the result and distance measurements, or WGS84 if unspecified. |
JavaScript
// Your example goes here!
Python
# Your example goes here!