shmidt / geojson-area

compute the area of a geojson polygon or multipolygon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

geojson-area

Calculate the area inside of a GeoJSON Polygon.

usage

npm install geojson-area

example

var geojsonArea = require('geojson-area');

var area = geojsonArea.geometry(obj);

api

geojsonArea.geometry(obj)

Given a Geometry object of type Polygon or MultiPolygon, return contained area as square meters. Invalid input will return null.

Adapted from OpenLayers

About

compute the area of a geojson polygon or multipolygon

License:Other