Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. GeoJSON
  3. antimeridian

antimeridian

Apache-2.0Pythonv0.4.8

A Python library that fixes GeoJSON geometries crossing the 180th meridian (antimeridian) by splitting them into valid shapes.

Visit WebsiteGitHubGitHub
110 stars9 forks0 contributors

What is antimeridian?

antimeridian is a Python library that corrects GeoJSON geometries crossing the 180th meridian (antimeridian). It solves a common problem in geospatial data where shapes that span the antimeridian become invalid and cause rendering issues in mapping systems, by algorithmically splitting them into valid, standards-compliant geometries.

Target Audience

Geospatial developers, data engineers, and GIS professionals working with GeoJSON data that spans international date lines or global extents, particularly those using Python-based mapping or analysis tools.

Value Proposition

Developers choose antimeridian for its focused, robust solution to a specific geospatial data integrity issue, its support for multiple geometry formats (Shapely, GeoJSON), and its utility functions for bounding boxes and centroids, all backed by a documented algorithm and cross-language ports.

Overview

Correct GeoJSON geometries that cross the 180th meridian

Use Cases

Best For

  • Preprocessing GeoJSON data for web mapping libraries that don't handle antimeridian crossings
  • Fixing geometries in global-scale GIS applications before analysis or visualization
  • Ensuring GeoJSON compliance for data pipelines and APIs
  • Correcting satellite or sensor data that spans the 180th meridian
  • Batch processing large geospatial datasets with antimeridian issues
  • Integrating antimeridian correction into Python-based geospatial workflows

Not Ideal For

  • Projects dealing exclusively with local or regional geometries that never approach the 180th meridian
  • Systems requiring real-time geometry correction at millisecond latency for streaming data
  • Workflows heavily reliant on non-Python geospatial formats like Shapefiles or KML without prior conversion to GeoJSON
  • Applications that must preserve the exact original coordinate sequence without any geometric modification or splitting

Pros & Cons

Pros

Multi-format Flexibility

Supports Shapely objects, GeoJSON dictionaries, and any object with __geo_interface__, making it adaptable to diverse geospatial workflows without format lock-in.

Efficient In-place Correction

The fix_geojson function mutates input dictionaries by default for performance, with copy options to preserve originals, optimizing memory usage in batch processing.

Comprehensive Geospatial Utilities

Includes specialized utilities for bounding boxes and centroids of antimeridian-crossing shapes, aiding in post-correction analysis and visualization.

Cross-language Portability

Core algorithm has been ported to TypeScript and Go, demonstrating reliability and enabling integration into non-Python tech stacks for broader adoption.

Cons

Heavy Dependency Chain

Relies on shapely and numpy, which are large packages that can bloat projects or complicate deployments in lightweight environments.

Limited Geometry Scope

Only handles polygons, multipolygons, linestrings, and multilinestrings; points or other geometry types that cross the antimeridian are not supported, as noted in the documentation.

Mutation Risk in Default Use

In-place mutation of GeoJSON dictionaries can lead to accidental data loss if users forget to copy inputs, requiring extra caution in error-prone code.

Frequently Asked Questions

Quick Stats

Stars110
Forks9
Contributors0
Open Issues5
Last commit2 days ago
CreatedSince 2023

Tags

#geometry-processing#python-library#geojson#shapely#geospatial#gis#python#mapping#data-validation

Built With

u
uv
s
shapely
M
MkDocs
P
Python
N
NumPy
p
pytest

Links & Resources

Website

Included in

GeoJSON2.5k
Auto-fetched 6 hours ago

Related Projects

geojson-pydanticgeojson-pydantic

Pydantic data models for the GeoJSON spec

Stars281
Forks40
Last commit1 day ago
geojsonhintgeojsonhint

IMPORTANT: This repo will be archived. Use @placemarkio/check-geojson instead

Stars258
Forks35
Last commit2 years ago
gjfgjf

A tool in Python to fix invalid GeoJSON objects and files

Stars104
Forks3
Last commit5 years ago
check-geojsoncheck-geojson

a checker for the geojson format. goes beyond a schema, checking semantics and producing character-level warnings.

Stars84
Forks3
Last commit1 year ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub