26 lines
492 B
TypeScript
26 lines
492 B
TypeScript
import {
|
|
LineString,
|
|
MultiLineString,
|
|
GeometryCollection,
|
|
Units,
|
|
Feature,
|
|
FeatureCollection,
|
|
} from "@turf/helpers";
|
|
|
|
/**
|
|
* http://turfjs.org/docs/#lineChunk
|
|
*/
|
|
export default function lineChunk<T extends LineString | MultiLineString>(
|
|
geojson:
|
|
| Feature<T>
|
|
| FeatureCollection<T>
|
|
| T
|
|
| GeometryCollection
|
|
| Feature<GeometryCollection>,
|
|
segmentLength: number,
|
|
options?: {
|
|
units?: Units;
|
|
reverse?: boolean;
|
|
}
|
|
): FeatureCollection<LineString>;
|