Skip to content
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

Collection projection system in "proj:wkt2" attribute not supported #60

Closed
SarahVal opened this issue Apr 7, 2022 · 10 comments
Closed

Comments

@SarahVal
Copy link

SarahVal commented Apr 7, 2022

Hi !
We encountered issues when loading a collection from a stac path, and for which the projection system is stored in WKT format, in the attribute"proj:wkt2":... (the attribute "proj:epsg" is null.) With this collection, it seems that the use of a new projection system in the function cube_view is not supported thus resulting in an incorrect cube cropping.
Thanks for helping !
Sarah

@appelmar
Copy link
Owner

appelmar commented Apr 8, 2022

Thanks for the issue! I think it should work now if you install the package from GitHub, although I could not test. Please let me know if there are still problems.

@appelmar
Copy link
Owner

appelmar commented Apr 8, 2022

Is it a public STAC catalog that I can use for testing?

@glaroc
Copy link

glaroc commented Apr 8, 2022

There seems to be an issue with the way the functions are exported in the current version on Github. After installation:

> gdalcubes::stac_image_collection()
   Error: 'stac_image_collection' is not an exported object from 'namespace:gdalcubes'`

@appelmar
Copy link
Owner

appelmar commented Apr 8, 2022

Oops, sorry, NAMESPACE was broken, does it work now?

@glaroc
Copy link

glaroc commented Apr 8, 2022

Installation works and I believe the proj:wkt2 works as well!

@appelmar
Copy link
Owner

appelmar commented Apr 8, 2022

Thanks for checking, I'll close the issue for now. Feel free to re-open if anything does not work.

@appelmar appelmar closed this as completed Apr 8, 2022
@glaroc
Copy link

glaroc commented Sep 22, 2022

@appelmar is it possible that extract_geom() won't work if the source raster data in the STAC collection that forms the cube has a projection defined with proj:wkt2 ? I'm trying to debug extraction from one of our datasets and I feel that this might be the issue.

@appelmar
Copy link
Owner

Sounds rather unlikely to me, can you share some more details (e.g. image collection file, scripts or debug output)?

@glaroc
Copy link

glaroc commented Sep 29, 2022

Upon further testing, I believe the issue was that the structure of that collection in our Stac catalog didn't fit with the expected structure of extract_geom(). I changed the order of operations and now it works with proj:wkt2 definition.

@appelmar
Copy link
Owner

OK, thanks for the update, there is a small chance that this is also related to the apostrophe issue (#70), if the WKT contains single quotes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants