Calculate the area inside of any GeoJSON geometry. This is a port of Mapbox'sgeojson-area for Python
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
area-1.1.0.tar.gz
(4.1 kB
view details)
File details
Details for the file area-1.1.0.tar.gz
.
File metadata
- Download URL: area-1.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95c39b1edd7ded407195f42bbf200dd14ab26622d03e27b793d5fad03e936140 |
|
MD5 | c9e45da88435f24c53b5ffa9ffa216e9 |
|
BLAKE2b-256 | a7eb7cfdc8e74ddea8bfe47aa8c99a056bcabea4de56e20130dead66fc4dca9f |