turf-feature

[Turf](http://turfjs.org/) feature module

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
turf-feature
001.0.08 years ago8 years agoMinified + gzip package size for turf-feature in KB

Readme

turf-feature
build status
Turf feature module

turf.feature(geometry)

Wraps a GeoJSON Geometry in a GeoJSON Feature.

Parameters

| parameter | type | description | | ---------- | -------- | -------------- | | geometry | Geometry | input geometry |

Example

var geometry = {
     "type": "Point",
     "coordinates": [
       67.5,
       32.84267363195431
     ]
   }

var feature = turf.feature(geometry);

//=feature

Returns FeatureCollection, a FeatureCollection of input features

Installation

Requires nodejs.
$ npm install turf-feature

Tests

$ npm test