@mapbox/geojson-area
calculate the physical area of a geojson geometry
Last updated 8 years ago by tmcw .
BSD-2-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @mapbox/geojson-area 
SYNC missed versions from official npm registry.

Build Status

geojson-area

Calculate the area inside of any GeoJSON geometry.

usage

npm install @mapbox/geojson-area

example

var geojsonArea = require('@mapbox/geojson-area');

var area = geojsonArea.geometry(obj);

api

geojsonArea.geometry(obj)

Given a Geometry object, return contained area as square meters. Invalid input will return null.

Adapted from OpenLayers

Current Tags

  • 0.2.2                                ...           latest (8 years ago)

2 Versions

  • 0.2.2                                ...           8 years ago
  • 0.2.1                                ...           8 years ago

© 2010 - cnpmjs.org x YWFE | Home | YWFE