1.0.0 • Published 9 years ago

geojson-segment v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

geojson-segment

build status

split a geojson file generated by togeojson into two-vertex chunks with properties

segment

Given a GeoJSON produced by toGeoJSON from GPX, split LineString geometries into two-vertex linestrings with properties of heartRate and time before & after.

Parameters

parametertypedescription
geojsonObjecta GeoJSON FeatureCollection object output by toGeoJSON

Returns Object, a GeoJSON FeatureCollection of two-vertex linestrings

Installation

Requires nodejs.

$ npm install geojson-segment

Tests

$ npm test