turf-feature

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i turf-feature

Weekly Downloads

23

Version

1.0.0

License

MIT

Last publish

Collaborators

  • morganherlocker