@mapbox/geojson-area
calculate the physical area of a geojson geometry
Last updated 9 years ago by tmcw .
BSD-2-Clause · Repository · Bugs · Original npm
$ cnpm 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 (9 years ago)

1 Versions

  • 0.2.2                                ...           9 years ago

Copyright 2013 - present © cnpmjs.org