stac-utils / stactools

Command line utility and Python library for STAC
https://stactools.readthedocs.io/
Other
105 stars 28 forks source link

Use the antimeridian package #421

Closed gadomski closed 1 year ago

gadomski commented 1 year ago

As a part of this month's Planetary Computer release, I developed a Python package for correcting complicated antimeridian-crossing and pole-crossing GeoJSON geometries: https://pypi.org/project/antimeridian/. It does almost everything our antimeridian fixer does, and more. We should update to use that package.

The only thing my package doesn't do is "normalization", aka going past 180 (or -180) instead of splitting. While "normalization" was desirable when we first made it, we've moved away from it, as it isn't technically spec-compliant. We could keep the normalization code around, or deprecate it for future removal.