turf-filter
turf filter module
turf.filter(features, key, value)
Takes a FeatureCollection and filters it by a given property and value
Parameters
parameter | type | description |
---|---|---|
features |
FeatureCollection | input FeatureCollection of any type |
key |
String | the property on which to filter |
value |
String | the value of that property on which to filter |
Example
var features = turf; var key = 'species';var value = 'oak'; var filtered = turf; //=features //=filtered
Installation
Requires nodejs.
$ npm install turf-filter
Tests
$ npm test