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

Need the spatial coords to carry correct spatial_ref and crs #1072

Closed
emmaai opened this issue Apr 7, 2021 · 1 comment · Fixed by #1075
Closed

Need the spatial coords to carry correct spatial_ref and crs #1072

emmaai opened this issue Apr 7, 2021 · 1 comment · Fixed by #1075
Assignees

Comments

@emmaai
Copy link
Contributor

emmaai commented Apr 7, 2021

Expected behaviour

The spatial coordinates x and y should have correct spatial_ref and crs after reproject

Actual behaviour

Only the values are changed but with the old spatial_ref and no crs. Hence the results.geobox crs is wrong.

for name, coord in dst_geobox.coordinates.items():
result.coords[name] = (name, coord.values, {'units': coord.units, 'resolution': coord.resolution})

Steps to reproduce the behaviour

N/A

Environment information

  • Which datacube --version are you using?
    Open Data Cube core, version 1.8.4.dev52+g07bc51a5
  • What datacube deployment/enviornment are you running against?
    Sandbox
@uchchwhash
Copy link
Member

@emmaai I somehow did not manage to reproduce the issue. See PR #1074 please.

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