Skip to main content

Fix GeoJSON geometries that cross the antimeridian

Project description

antimeridian

CI Status Read the Docs PyPI

GitHub Contributor Covenant

A Python package to correct GeoJSON shapes that cross the antimeridian. See the documentation for information about the underlying algorithm.

Usage

pip install antimeridian

Then, in your code:

import antimeridian
fixed = antimeridian.fix_geojson(geojson)

If you'd like to use the command line interface:

pip install 'antimeridian[cli]'
antimeridian fix input.json > output.json

Developing

Clone and install in editable mode with the development optional dependencies:

git clone https://github.com/gadomski/antimeridian
pip install -e '.[dev,docs]'

We use pytest for tests:

pytest

We use Sphinx for docs:

make -C docs html

Contributing

Github issues and pull requests, please and thank you!

License

Apache-2.0

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

antimeridian-0.2.1.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

antimeridian-0.2.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file antimeridian-0.2.1.tar.gz.

File metadata

  • Download URL: antimeridian-0.2.1.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for antimeridian-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c7ae782e96a41159d7765cc78c71a9439678468d431afc5a4896aa1d65d3bd15
MD5 c47d714886eedf40c11a2d3a112e0b3d
BLAKE2b-256 81207a878552621aae31fa0d0bcba5e3584f32699be2544369f1be08c5bc4579

See more details on using hashes here.

File details

Details for the file antimeridian-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: antimeridian-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for antimeridian-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 23a187a3b2f37fc00dc8348b8ad1b779e192343b37f69656340c53b6e4a3a68d
MD5 f4e2e93f4b5ea1742f40371bde9cbec6
BLAKE2b-256 ca0b9a2462b2081a5646c6f1abb479359448e38d5a7b6e66bb3928015b4f8c9d

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