Skip to main content

geojson-area

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

Metadata

Release files for area 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for area 1.1.1
File Size Uploaded Provenance Actions
area-1.1.1.tar.gz 4.1 kB Without provenance Details for area-1.1.1.tar.gz

Release files / area-1.1.1.tar.gz

Download URL area-1.1.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
caebb96668ddeddb50e7f56ed236da3b84459f6eb67f0306a652c14e2b8765a2
BLAKE2b-256 checksum
How to use checksums
f41b9e434947304bafaeca6a5760272ded9b43edbcadfe9f15116596b4d6b7eb
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for area 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page