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

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i turf-feature

    Weekly Downloads

    6

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • morganherlocker