antimeridian

antimeridian: A Python package for correcting geometries that cross the 180th meridian - Published in JOSS (2025)

https://github.com/gadomski/antimeridian

Science Score: 93.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org, zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

antimeridian geojson geospatial python

Keywords from Contributors

mesh
Last synced: 4 months ago · JSON representation

Repository

Correct GeoJSON geometries that cross the 180th meridian

Basic Info
Statistics
  • Stars: 89
  • Watchers: 5
  • Forks: 7
  • Open Issues: 4
  • Releases: 25
Topics
antimeridian geojson geospatial python
Created over 2 years ago · Last pushed 5 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Codeowners Zenodo

README.md

antimeridian

CI Status Docs PyPI Conda Downloads GitHub Contributor Covenant

status DOI

Demonstration image

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

Can fix:

Usage

shell python -m pip install antimeridian

Then:

```python 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:

shell python -m pip install 'antimeridian[cli]' antimeridian fix input.json > output.json

Developing

Get uv. Then:

shell git clone https://github.com/gadomski/antimeridian cd antimeridian uv sync

We use pytest for tests:

shell uv run pytest

To build and serve the docs locally:

shell uv run mkdocs serve

Contributing

See CONTRIBUTING.md.

License

Apache-2.0

Owner

  • Name: Pete Gadomski
  • Login: gadomski
  • Kind: user
  • Location: Longmont, CO

JOSS Publication

antimeridian: A Python package for correcting geometries that cross the 180th meridian
Published
January 08, 2025
Volume 10, Issue 105, Page 7530
Authors
Peter Gadomski ORCID
Development Seed, USA
Preston Hartzell ORCID
Element 84, Inc., USA
Editor
Michael Mahoney ORCID
Tags
geospatial antimeridian

GitHub Events

Total
  • Create event: 26
  • Release event: 6
  • Issues event: 16
  • Watch event: 35
  • Delete event: 18
  • Issue comment event: 38
  • Push event: 55
  • Pull request review event: 2
  • Pull request event: 40
  • Fork event: 1
Last Year
  • Create event: 26
  • Release event: 6
  • Issues event: 16
  • Watch event: 35
  • Delete event: 18
  • Issue comment event: 38
  • Push event: 55
  • Pull request review event: 2
  • Pull request event: 40
  • Fork event: 1

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 242
  • Total Committers: 3
  • Avg Commits per committer: 80.667
  • Development Distribution Score (DDS): 0.252
Past Year
  • Commits: 50
  • Committers: 3
  • Avg Commits per committer: 16.667
  • Development Distribution Score (DDS): 0.14
Top Committers
Name Email Commits
Pete Gadomski p****i@g****m 181
dependabot[bot] 4****] 60
Téo Bouvard t****d@g****m 1

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 37
  • Total pull requests: 136
  • Average time to close issues: 24 days
  • Average time to close pull requests: 1 day
  • Total issue authors: 17
  • Total pull request authors: 5
  • Average comments per issue: 1.86
  • Average comments per pull request: 0.16
  • Merged pull requests: 131
  • Bot issues: 0
  • Bot pull requests: 63
Past Year
  • Issues: 12
  • Pull requests: 30
  • Average time to close issues: 12 days
  • Average time to close pull requests: about 13 hours
  • Issue authors: 7
  • Pull request authors: 4
  • Average comments per issue: 0.83
  • Average comments per pull request: 0.57
  • Merged pull requests: 29
  • Bot issues: 0
  • Bot pull requests: 6
Top Authors
Issue Authors
  • gadomski (14)
  • philipc2 (5)
  • All4Gis (3)
  • jessjaco (2)
  • smvjohansenbouvet (1)
  • just-davi (1)
  • willbowditch (1)
  • pjhartzell (1)
  • mmann1123 (1)
  • gisdev-km (1)
  • johntruckenbrodt (1)
  • m-mohr (1)
  • kidpixo (1)
  • mjones1818 (1)
  • philvarner (1)
Pull Request Authors
  • gadomski (86)
  • dependabot[bot] (85)
  • alexgleith (2)
  • amaberg (2)
  • teobouvard (2)
Top Labels
Issue Labels
bug (9) documentation (6) enhancement (5) wontfix (1) github_actions (1)
Pull Request Labels
dependencies (85) python (72) github_actions (13) enhancement (1) documentation (1)

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 37,299 last-month
  • Total dependent packages: 3
    (may contain duplicates)
  • Total dependent repositories: 2
    (may contain duplicates)
  • Total versions: 57
  • Total maintainers: 1
pypi.org: antimeridian

Correct GeoJSON geometries that cross the 180th meridian

  • Versions: 30
  • Dependent Packages: 3
  • Dependent Repositories: 2
  • Downloads: 37,299 Last month
Rankings
Downloads: 2.4%
Dependent packages count: 3.2%
Average: 5.7%
Dependent repos count: 11.5%
Maintainers (1)
Last synced: 4 months ago
proxy.golang.org: github.com/gadomski/antimeridian
  • Versions: 27
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 9.0%
Average: 9.5%
Dependent repos count: 10.1%
Last synced: 4 months ago

Dependencies

docs/environment.yaml pypi
.github/workflows/ci.yaml actions
  • actions/cache v3 composite
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
  • conda-incubator/setup-miniconda v2 composite
.github/workflows/release.yaml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
  • pypa/gh-action-pypi-publish release/v1 composite
pyproject.toml pypi
  • numpy >=1.17.4
  • shapely >=2.0