https://github.com/scisco/area
Calculate the area inside of any GeoJSON geometry. This is a port of Mapbox's geojson-area for Python
https://github.com/scisco/area
Last synced: 7 months ago
JSON representation
Calculate the area inside of any GeoJSON geometry. This is a port of Mapbox's geojson-area for Python
- Host: GitHub
- URL: https://github.com/scisco/area
- Owner: scisco
- License: other
- Created: 2015-11-25T15:58:29.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-10-31T15:13:12.000Z (about 7 years ago)
- Last Synced: 2025-04-12T17:54:47.888Z (7 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 98
- Watchers: 2
- Forks: 20
- Open Issues: 5
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- Awesome-Geospatial - geojson-area - Calculate the area inside of any GeoJSON geometry. (Python)
- awesome-gis - geojson-area - Calculate the area inside of any GeoJSON geometry. This is a port of Mapbox's geojson-area for Python. (Geospatial Library / Python)
README
geojson-area
============
.. image:: https://travis-ci.org/scisco/area.svg?branch=master
:target: https://travis-ci.org/scisco/area
.. image:: https://badge.fury.io/py/area.svg
:target: http://badge.fury.io/py/area
Calculate the area inside of any `GeoJSON `_ geometry. This is a port of Mapbox's `geojson-area `_ for Python.
Installation
------------
.. code::
$ pip install area
Usage
-----
Simply pass a geojson string or python dictionary to the area function and get the area.
.. code::
>>> from area import area
>>> obj = {'type':'Polygon','coordinates':[[[-180,-90],[-180,90],[180,90],[180,-90],[-180,-90]]]}
>>> area(obj)
511207893395811.06
Test
----
.. code::
$ python test.py
Credit
------
- `geojson-area `_