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

2 Versions

  • 0.2.2                                ...           4 years ago
  • 0.2.1                                ...           4 years ago

Copyright 2014 - 2017 © taobao.org |