1.0.0 • Published 9 years ago

turf-feature v1.0.0

Weekly downloads
82
License
MIT
Repository
github
Last release
9 years ago

turf-feature

build status

Turf feature module

turf.feature(geometry)

Wraps a GeoJSON Geometry in a GeoJSON Feature.

Parameters

parametertypedescription
geometryGeometryinput 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