Skip to content
/ area Public
forked from scisco/area

Calculate the area inside of any GeoJSON geometry. This is a port of Mapbox's geojson-area for Python

License

Notifications You must be signed in to change notification settings

Scifabric/area

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geojson-area

https://travis-ci.org/scisco/area.svg?branch=develop

Calculate the area inside of any GeoJSON geometry. This is a port of Mapbox's geojson-area for Python.

Installation

$ pip install area

Usage

Simply pass a geojson string or python dictionary to the area function and get the area.

>>> from area import area
>>> obj = {'type':'Polygon','coordinates':[[[-180,-90],[-180,90],[180,90],[180,-90],[-180,-90]]]}
>>> area(obj)
511207893395811.06

Test

$ python test.py

Credit

About

Calculate the area inside of any GeoJSON geometry. This is a port of Mapbox's geojson-area for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%