Skip to main content

Fix GeoJSON geometries that cross the antimeridian

Project description

antimeridian

CI Status Read the Docs PyPI

GitHub Contributor Covenant

Fix polygons that cross the antimeridian. See the documentation for information about the underlying algorithm. Depends on shapely.

Can fix:

Usage

pip install antimeridian

Then:

import antimeridian

fixed = antimeridian.fix_geojson(geojson)

Command line interface

Use the cli optional dependency to install the antimeridian CLI:

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
cd 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.6.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

antimeridian-0.2.6-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: antimeridian-0.2.6.tar.gz
  • Upload date:
  • Size: 13.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.6.tar.gz
Algorithm Hash digest
SHA256 f6cb86ec15e1d98a9ec91fa84a38b44162d6796fbb2a6a152099dcda7b789c0e
MD5 929cd489a3ba183daedd14168e94799f
BLAKE2b-256 0b1d8cbb14f249611115d91b24cc5027c7f626cf6b3f323fc59c527c384f16f4

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: antimeridian-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 11.8 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 abbe6e31f2b4c9713fd925f44920f563072896668ab6a78bd1f14f2843a915a7
MD5 f07a3b39f44c4c663637b04d91f2911d
BLAKE2b-256 796def0e0fcafc17be8677a8e12803af2f9df3d29d7ecb9fd41317b4558699f8

See more details on using hashes here.

Provenance

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