--- id: antimeridian version: "0.4.8" license: Apache-2.0 license_treatment: permissive maintenance: active --- # antimeridian — Correct GeoJSON geometries that cross the 180th meridian License: permissive · Maintenance: active · Downloads: 154.9K/mo ## What it is and what it does Antimeridian is a geometry correction library for handling shapes that cross the 180th meridian (antimeridian), a common problem in global geospatial data. It works with Shapely geometry objects and GeoJSON dictionaries, transforming coordinates so that geometries that span the date line are properly represented in standard geographic systems. The library depends on numpy and shapely for its core operations. The package is useful when working with global maps or datasets that include features near the poles or spanning the international date line. It provides not only the core fix function but also utilities for computing bounding boxes and centroids from antimeridian-crossing polygons. An optional CLI is available for batch processing GeoJSON files from the command line. Use it for: - Correct GeoJSON features from global mapping APIs that include territories crossing the date line. - Prepare Shapely geometries for rendering on web maps without distortion artifacts at the antimeridian. - Batch-process GeoJSON files to fix meridian-crossing boundaries before loading into a spatial database. - Compute accurate bounding boxes and centroids for polygons that span the 180th meridian. - Normalize geographic data from sources that represent date-line-crossing regions inconsistently. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Fixes Shapely geometries and GeoJSON features that cross the antimeridian (180th meridian), handling Polygons, MultiPolygons, LineStrings, and MultiLineStrings. Yes. The package solves a specific but real problem in geospatial work with minimal dependencies and active maintenance. It is Production/Stable, has no known vulnerabilities, and is permissively licensed. Install it if you work with global geographic data or need to handle geometries near the antimeridian. ## Install pip install antimeridian uv add antimeridian poetry add antimeridian ## Installing antimeridian Before you install: Low friction: pure Python wheel with only numpy and shapely as runtime dependencies. Actively maintained with recent releases; last commit 2026-08-10 and marked Production/Stable. License in practice: Apache-2.0 is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions. Quickstart: pip install antimeridian import antimeridian fixed = antimeridian.fix_geojson(geojson) Requires Python 3.10 or later. Note: fix_geojson mutates the input dictionary in-place; pass a deepcopy if you need to preserve the original. Verify before relying: - Performance characteristics with large or complex geometries (number of vertices, coordinate density). - Behavior with edge cases like geometries exactly on the antimeridian or with multiple crossings. ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 154.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags antimeridian geometry fix, geojson 180 meridian, shapely cross meridian, fix dateline crossing, geospatial geometry correction, international date line geojson, polygon antimeridian split, geospatial, geojson, geometry-processing [View on SkillFed](https://skillfed.io/packages/antimeridian) · [View on PyPI](https://pypi.org/project/antimeridian/)