EDR Xarray covjson reordering y #1780
Labels
bug
Something isn't working
OGC API - Environmental Data Retrieval
OGC API - Environmental Data Retrieval
Milestone
Description
in
provider/xarray_.py
gen_covjson function
following code:
Is reversing only axis north-south but not data. It breaks resulting coveragejson with inconsistent axis-data.
Either it shall be followed by the data reordering (not cheap so maybe not recommended) or axis start/stop shall be read from data.
Reading start/stop from data would also partly address the issue when data grid does not fill the query bbox and resulting array would not fill current axis.
Steps to Reproduce
Steps to reproduce the behavior:
Use reference configuration from https://docs.pygeoapi.io/en/latest/data-publishing/ogcapi-edr.html
View the results on the map - see it is upside down.
Expected behavior
Screenshots/Tracebacks
If applicable, add screenshots to help explain your problem.
Environment
Additional context
Test data from https://docs.pygeoapi.io/en/latest/data-publishing/ogcapi-edr.html
looks like longitude is in fact 0-360 not as in coords -180:180
The text was updated successfully, but these errors were encountered: