-
Notifications
You must be signed in to change notification settings - Fork 178
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
Conda and GDAL 3 (changes to how TransformPoint works) #814
Comments
@sscullen thanks for the report, we haven't really tested GDAL 3 yet, primarily because This issue is really two issues:
|
Don't have a reference handy, but iirc GDAL3 finally fixed a LONG standing bug where the co-ordinate ordering specified by the CRS definition was ignored. Where it worked with GDAL2 there was a workaround in place to bypass this bug which will now break things in exactly the way you describe with GDAL3. I had to switch to running in Docker to get around this issue. |
This PR #821 also includes fixes for unit tests that were failing when running against GDAL3/PROJ6. |
Expected behaviour
Spatial queries to load data.
Actual behaviour
Spatial queries are always empty.
Steps to reproduce the behaviour
If GDAL 3 is installed, lat and longs are swapped when indexing datasets. If steps are taken to adjust preparation scripts to the output produced by GDAL 3, even if lat long are correct, no spatial queries will work because the lat and longs are swapped for internal queries in the datacube core (I suspect).
I confirmed this because downgrading to GDAL 2.4.3 with
conda install gdal=2.4.3
, re-indexing, and then spatial queries work fine.I don't know what needs to be changed other than the install instructions need to be explicit and include a line about installing the right version of gdal (now that version 3 is available).
Environment information
Which
datacube --version
are you using?Open Data Cube core, version 1.7
What datacube deployment/enviornment are you running against?
Using miniconda python3.7 docker image (https://hub.docker.com/r/frolvlad/alpine-miniconda3/) with the following setup in the docker file:
About the change with GDAL 3:
OSGeo/gdal#1546
The text was updated successfully, but these errors were encountered: