1.0.0 • Published 11 years ago
turf-feature v1.0.0
turf-feature
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);
//=featureReturns FeatureCollection, a FeatureCollection of input features
Installation
Requires nodejs.
$ npm install turf-featureTests
$ npm test1.0.0
11 years ago
