stac-utils / stactools

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

Use the antimeridian package #426

Closed gadomski closed 1 year ago

gadomski commented 1 year ago

Related Issue(s):

Description: We used to implement antimeridian fixes in this package, but we recently created https://github.com/gadomski/antimeridian. This package does more, is better tested, and has fewer dependencies (only shapely). This PR updates stactools to use that package.

The fix_item function is the most valuable -- the antimeridian package doesn't know anything about STAC, so stactools adds value by updating the item's geometry and bounding box after the fix. The rest of the functions are deprecated, as folks should use antimeridian instead.

All "normalization" functions are deprecated, as "normalization" (using longitudes > 180 or <-180 to create a single polygon that crosses the antimeridian) doesn't conform to the GeoJSON spec.

PR checklist: