node-red-contrib-tak-registration
Version:
A Node-RED node to register to TAK and to help wrap files as datapackages to send to TAK
26 lines (24 loc) • 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>;