antimeridian 0.3.8

Last updated:

0 purchases

antimeridian 0.3.8 Image
antimeridian 0.3.8 Images
Add to Cart

Description:

antimeridian 0.3.8

antimeridian






Fix shapes that cross the antimeridian.
See the documentation for information about the underlying algorithm.
Depends on shapely and numpy.
Can fix:

Shapely Polygon, MultiPolygon, LineString, and MultiLineString objects
GeoJSON Polygons, MultiPolygons, Features and FeatureCollections, as dictionaries
Anything that has a __geo_interface__

Usage
pip install antimeridian

Then:
import antimeridian

fixed = antimeridian.fix_geojson(geojson)

We also have some utilities to create bounding boxes and centroids from antimeridian-crossing polygons and multipolygons.
See the documentation for a complete API reference.
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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.