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:
[x] Code is formatted (run scripts/format).
[x] Code lints properly (run scripts/lint).
[x] Tests pass (run scripts/test).
[x] Documentation has been updated to reflect changes, if applicable.
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:
scripts/format
).scripts/lint
).scripts/test
).