geo-registry

turf.lineChunk

How Turf.js runs Split Lines by Length: turf.lineChunk.

About this implementation
Engine Turf.js
Tool name turf.lineChunk
Interface js
Implements Split Lines by Length
Documentation Not stated
Effects modifies input: no, network: no
Notes From @turf/line-chunk.
Status active

Parameters

Name Type Required Default Choices Note
geojson Feature<T> | FeatureCollection<T> | T | GeometryCollection | Feature<GeometryCollection> yes Not stated Not stated Not stated
segmentLength number yes Not stated Not stated Not stated
options { units?: Units; reverse?: boolean; } no Not stated Not stated Not stated
options.units Units no Not stated Not stated field of options
options.reverse boolean no Not stated Not stated field of options

How it maps to the operation

Operation parameter Parameter here Note
layer geojson Not stated
length segmentLength Not stated
unit options.units m = meters; ft = feet; km = kilometers; mi = miles. not supported: us-ft

Differences from the operation

  • units defaults to kilometers.
  • Turf works on GeoJSON in longitude/latitude (WGS 84); data in another CRS must be reprojected first.

Harvested by the turf harvester from engine version 7.4.0. Names can change when an engine is harvested again.