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.2.tar.gz (12.0 kB view hashes)

Uploaded Source

Built Distribution

antimeridian-0.2.2-py3-none-any.whl (11.0 kB view hashes)

Uploaded Python 3

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