turf-featurecollection
turf featureCollection module
Last updated 10 years ago by morganherlocker .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install turf-featurecollection 
SYNC missed versions from official npm registry.

turf-featurecollection

build status

turf featureCollection module

turf.featurecollection(features)

Takes one or more Feature|Features and creates a FeatureCollection

Parameters

parameter type description
features 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

Current Tags

  • 1.0.1                                ...           latest (10 years ago)

3 Versions

  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
  • 0.1.0                                ...           11 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (5)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE