-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AssertionError: Only axis-aligned geoboxes are currently supported #40
Comments
It's clearly a bug in I think this opendatacube/datacube-core@ca61414 Only some operations are not supported for non-axis aligned geoboxes, but |
While this has highlighted an important problem, the real issue is with the projection information in STAC data.
The order of parameter returned is all messed up, I guess it's using GDAL convention, while stac extension uses row-major, actual files are axis aligned, their transform is:
so, it's a data provider error. @alexgleith ⬆️ metadata for |
Hey @rsignell-usgs thanks for this report. This is the original metadata, as supplied: https://deafrica-sentinel-1.s3.af-south-1.amazonaws.com/s1_rtc/N12E037/2020/09/02/03F841/s1_rtc_03F841_N12E037_2020_09_02_metadata.json It has the same order. I'll get Marko from Sinergise to look at the order of the transform parameters. |
Can I confirm that if we do change the axis order in the transform to what GDAL uses, it'll fix it @Kirill888? |
So expected order for proj extension is
flattened: What appears to be in the metadata is: which is different from what it is expected in stac |
@alexgleith not |
Whereas the STAC is I don't know which is correct, though. Edit: from your link the Rasterio Transform is correct. |
Same issue in stacstack it seems: |
@rsignell-usgs you can work-around this issue by disabling proj extension for
Then you should be able to load the data, but you will have to supply |
FYI this has been acknowledged by the Sentinel-1 suppliers and they are issuing a fix. |
I believe this has been fixed, for example, here's a newly produced scene: https://explorer.digitalearth.africa/stac/collections/s1_rtc/items/0a461211-1d56-5bb0-8baf-bb9917d8f77f The transform is:
|
I'm relatively new to odc-stac and Digital Earth Africa, and trying out the stac client and odc-stac package to access sentinel-1. I started with the digital earth africa sentinel2 example code and that worked fine, but when I tried adapting it for sentinel-1, I'm getting
AssertionError: Only axis-aligned geoboxes are currently supported
, despite trying both projected and lon/lat specification.I'm guessing this is user error rather than a bug, so suggestions welcome! :)
The text was updated successfully, but these errors were encountered: