geojson-area

calculate the physical area of a geojson geometry

This module is now under the @mapbox namespace: install @mapbox/geojson-area instead
Last updated 10 years ago by tmcw .
BSD-2-Clause · Repository · Bugs · Original npm
$ cnpm install geojson-area 
SYNC missed versions from official npm registry.

Build Status

geojson-area

Calculate the area inside of any GeoJSON geometry.

usage

npm install geojson-area

example

var geojsonArea = require('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.1                                ...           latest (10 years ago)

2 Versions

  • 0.1.0 [deprecated]           ...           12 years ago
  • 0.2.1 [deprecated]           ...           10 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org