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 hashes)
Built Distribution
Close
Hashes for antimeridian-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ed6b468715ec97fafb58580702364642857808918eeb36fc7d5132c984d0a79 |
|
MD5 | d18fff015eb6371a4c630f1868e84a49 |
|
BLAKE2b-256 | 3656acf897fe0cc5f11871455488b4ab1a4b5255b0caa43ab830ccb6e5f08db7 |