Skip to content

turf-junkyard/turf-featurecollection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

turf-featurecollection

build status

turf featureCollection module

turf.featurecollection(features)

Takes an array of one or more Feature|Features and creates a FeatureCollection.

Parameters

parameter type description
features Array.<Feature> input features

Example

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

Installation

Requires nodejs.

$ npm install turf-featurecollection

Tests

$ npm test

About

Creates a GeoJSON FeatureCollection based on an array of features.

Resources

License

Stars

Watchers

Forks

Packages

No packages published