geojson-derived-properties
Add derived geometric properties to geojson features.
Last updated 5 years ago by anandthakker .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install geojson-derived-properties 
SYNC missed versions from official npm registry.

geojson-derived-properties

Add derived properties--area, perimeter, length--to geojson features.

npm install geojson-derived-properties

Command Line Usage

npm install -g geojson-derived-properties

cat foo.geojson | geojson-derived-properties -p area perimeter length > foo-with-geom-props.geojson

Javascript Usage

var addDerivedProps = require('geojson-derived-properties')
var myGeoJson = /* your geojson object here */
var withProps = addDerivedProps({
  area: true,
  perimeter: false,
  length: true
}, myGeoJson)

Built With

Turf.js

Current Tags

  • 1.0.1                                ...           latest (5 years ago)

2 Versions

  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2017 © taobao.org |