turf-max
turf max module
turf.max(polygons, points, inField, outField)
Calculates the maximum value of a field for points within a set of polygons.
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; var result = turf; //=result
Installation
Requires nodejs.
$ npm install turf-max
Tests
$ npm test