ee.Feature.cutLines

Converts LineStrings into a MultiLineString by cutting it in two at each distance along the length of the LineString.

UsageReturns
Feature.cutLines(distances, maxError, proj)Feature
ArgumentTypeDetails
this: featureElement

Cuts the lines of this feature's default geometry.

distancesList

Distances along each LineString to cut the line into separate pieces, measured in units of the given proj, or meters if proj is unspecified.

maxErrorErrorMargin, default: null

The maximum amount of error tolerated when performing any necessary reprojection.

projProjection, default: null

Projection of the result and distance measurements, or WGS84 if unspecified.