Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

area

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

area

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

  • 1.1.1
  • PyPI
  • Socket score

Maintainers
1

geojson-area

.. image:: https://travis-ci.org/scisco/area.svg?branch=develop :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 <http://geojson.org/>_ geometry. This is a port of Mapbox's geojson-area <https://github.com/mapbox/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 <https://github.com/mapbox/geojson-area>_

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc