compute the area of a geojson polygon or multipolygon
JavaScript
Latest commit 081eca0 Dec 19, 2016 @tmcw tmcw Changelog, use commitizen
Permalink
Failed to load latest commit information.
test Update geojson area of Illinois test Nov 11, 2015
.travis.yml Travis Dec 11, 2013
CHANGELOG.md Changelog, use commitizen Dec 19, 2016
LICENSE First Dec 11, 2013
README.md Update readme examples Dec 2, 2016
index.js Support 'use strict' Dec 19, 2016
package.json Changelog, use commitizen Dec 19, 2016

README.md

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