turf.segmentReduce
From @turf/meta.
| Engine | Turf.js |
|---|---|
| Tool name | turf.segmentReduce |
| Interface | js |
| Implements | Not stated |
| Documentation | Not stated |
| Effects | Not stated |
| Notes | From @turf/meta. |
| Status | active |
Parameters
| Name | Type | Required | Default | Choices | Note |
|---|---|---|---|---|---|
geojson | FeatureCollection<Lines, P> | Feature<Lines, P> | Lines | Feature<GeometryCollection, P> | GeometryCollection | yes | Not stated | Not stated | Not stated |
callback | (previousValue?: Reducer, currentSegment?: Feature<LineString, P>, featureIndex?: number, multiFeatureIndex?: number, segmentIndex?: number, geometryIndex?: number) => Reducer | yes | Not stated | Not stated | Not stated |
initialValue | Reducer | no | Not stated | Not stated | Not stated |
Harvested by the turf harvester from engine version
7.4.0. Names can change when an engine is harvested again.