Open jessjaco opened 3 months ago
Looks like an issue with the GeoBox
.
from affine import Affine
from odc.geo.geobox import GeoBox
from pyproj import CRS
geobox = GeoBox(
(2491, 3200), Affine(30.0, 0.0, 3336000.0, 0.0, -30.0, -1887990.0), CRS("EPSG:3832")
)
list(geobox.extent.to_crs("epsg:4326").boundingbox)
[-179.169819449018,
-17.469444408354423,
179.96779787822723,
-16.824027928472105]
this is world spanning!
I am trying to load data for a GeoBox that crosses the antimeridian
Unfortunately this produces a gap at the antimeridian:
I can confirm this is not an issue with the assets because stackstac can load them correctly.
I suspect it may be because the bounding box of two of the stac items crosses -180 (see e.g. https://earth-search.aws.element84.com/v1/collections/cop-dem-glo-30/items/Copernicus_DSM_COG_10_S18_00_W180_00_DEM) but that's just a guess.
odc-stac==0.3.10