-
Notifications
You must be signed in to change notification settings - Fork 31
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
Support CRSes defined as WKT strings #30
Comments
Can this be closed with partial support from #127 |
Hi everyone. First thanks for this awesome explorer for datacube. I have deployed successfully the explorer but don't know why a product is not correctly displayed as referred here CONABIO/kube_sipecam#14 (comment) As you can see in that comment my ingestion/srtm_cgiar_mexico.yaml#L28 ingestion/ls8_espa_mexico.yaml#L33 Thanks in advance. Cheers |
Hey @palmoreck! The trouble with WKT strings like this is that Explorer is reliant on Postgis knowing the CRS already, which are registered in Postgis's One option is to run the relevant "PostGIS spatial_ref_sys insert statement"s on spatial-ref.org to register them with Postgis: https://spatialreference.org/ref/sr-org/mexico-inegi-lambert-conformal-conic/ ... then you can use the ... but the WKT will only work if it matches exactly, unfortunately, as a string. Or if it ends with an ... and another gotcha is that using It's a slightly messy situation at the moment unfortunately. |
This is definitely something we could improve in Explorer. Maybe:
|
Hi @jeremyh thank you for your answers. Ok. If using EPSG:4326 solves this troubles then I'll use it. In fact in my workflows I've been thinking using this because at the end I'm reprojecting to this CRS for sharing my maps with colleagues. Greetings! |
Leaving open -- it's still something to improve. We want to support all data that ODC itself supports, preferably without extra hassle. |
While this does sound potentially useful, I'm going to close this to save our backlog growing indefinitely. It is something we could do, but there's a strong case to be made that it isn't something we necessarily should. There's work taking place in ODC Core to make greater use of PostGIS tables and features, which would be a more appropriate place for this to be addressed if and when it comes up again. |
In the
spatial_reference
field cubedash currently supports either EPSG codes or a custom format used by NEMO’s old scenes.The new Sentinel products define their spatial references as WKT strings.
This may be non-trivial as all crs handling is currently done within Postgis, and it doesn’t appear to have any methods for translation between CRS formats (other than an exact string match on an existing registered CRS, which won’t match any Sentinel datasets).
We might need to add an extra step during summary generation to scan all datasets to find unique CRSes and translate them within Python, registering the result with Postgis. ... and then do an exact string match.
The text was updated successfully, but these errors were encountered: