Fix GeoJSON geometries that cross the antimeridian
Project description
antimeridian
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
Project details
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file antimeridian-0.2.2.tar.gz
.
File metadata
- Download URL: antimeridian-0.2.2.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad72553ced96c9e273e507b18cccae6dd5a1aeb31256515584b780149b0ae9b8 |
|
MD5 | 5840c5e3d0d8bbff3dbe0f165b83bae9 |
|
BLAKE2b-256 | 0f94eea205fc100ad0a1a4f6c3f2d4930dfafa373deb803a834520aeeb76bbdd |
Provenance
File details
Details for the file antimeridian-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: antimeridian-0.2.2-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ed6b468715ec97fafb58580702364642857808918eeb36fc7d5132c984d0a79 |
|
MD5 | d18fff015eb6371a4c630f1868e84a49 |
|
BLAKE2b-256 | 3656acf897fe0cc5f11871455488b4ab1a4b5255b0caa43ab830ccb6e5f08db7 |