Skip to main content

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

Project description

https://travis-ci.org/scisco/area.svg?branch=develop https://badge.fury.io/py/area.svg

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


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.1.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file area-1.1.1.tar.gz.

File metadata

  • Download URL: area-1.1.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14

File hashes

Hashes for area-1.1.1.tar.gz
Algorithm Hash digest
SHA256 caebb96668ddeddb50e7f56ed236da3b84459f6eb67f0306a652c14e2b8765a2
MD5 7ddd08c7138b140355a7d8e7f13e7b63
BLAKE2b-256 f41b9e434947304bafaeca6a5760272ded9b43edbcadfe9f15116596b4d6b7eb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page