turf-median
turf median module
turf.median(polygons, points, inField, outField)
Takes a set of polygons, a set of points, and tag polygons with the sum of point property values contained within.
Parameters
parameter | type | description |
---|---|---|
polygons |
FeatureCollection | a FeatureCollection of Polygon features |
points |
FeatureCollection | a FeatureCollection of Point features |
inField |
string | the field in input data to analyze |
outField |
string | the field in which to store results |
Example
var polygons = turf;var points = turf;var aggregated = turf;//=polygons//=points//=aggregated
Installation
Requires nodejs.
$ npm install turf-median
Tests
$ npm test