$ npm install turf-featurecollection
turf featureCollection module
turf.featurecollection(features)
Takes one or more Feature|Features and creates a FeatureCollection
parameter | type | description |
---|---|---|
features |
Feature | input Features |
var features = [
turf.point([-75.343, 39.984], {name: 'Location A'}),
turf.point([-75.833, 39.284], {name: 'Location B'}),
turf.point([-75.534, 39.123], {name: 'Location C'})
];
var fc = turf.featurecollection(features);
//=fc
Returns FeatureCollection
, a FeatureCollection of input features
Requires nodejs.
$ npm install turf-featurecollection
$ npm test
© 2010 - cnpmjs.org x YWFE | Home | YWFE