-
Notifications
You must be signed in to change notification settings - Fork 179
Question regarding WCS DescribeCoverage ResponseCRSs #1318
Comments
Ok, looks like its not something I'm doing wrong with our NetCDF4 file, even the Thredds example/sample WCS endpoint from the documentation has the same issue: https://thredds.ucar.edu/thredds/wcs/galeon/testdata/striped.nc?request=DescribeCoverage&version=1.0.0&service=WCS&coverage=ta |
I've done some digging, looks like this weird coordinate system does come from the netcdf4 file. I am looking through the Thredds WCS code and found where EPSG: 0 is defined here:
It mentions "Added in CF-1.2". See example 5.8 in the CF-1.2 spec: So when a netcdf4 file has "crs.grid_mapping_name=latitude_longitude" it appears that Thredds specifies the WCS responsecrs "EPSG:0 [Latitude_Longitude]" FWIW, all of the relevant metadata in my netcdf4 file is the following:
|
Thank you for opening an issue @ashleysommer! I'm not super familiar with our WCS service (tagging @ethanrd), and the code is pretty old at this point, but I am almost certain we are handling this incorrectly. I could be wrong here, but in order for the TDS WCS to return the proper
|
Hi @lesserwhirls Thanks for your response. I think there might be some of that logic already happening in the WCS code. I see the contents of Finally, the So I think there's just a logic breakdown somewhere around determining the SRS for the I admit most of this is way over my head, so I might be completely wrong on all of that. And I don't really understand the difference between requestCRSs and responseCRSs in this case, or why they would be different. |
I'm having trouble with QGIS interacting with our Thredds WCS endpoint. I'm not sure if its a bug in Thredds or QGIS or neither, or if I'm just interpreting it wrong.
Please see the NetCDF4 file served by Thredds 4.6.14 here:
http://esoil.io/thredds/wcs/SMIPSall/SMIPSv0.5.nc?service=WCS&version=1.0.0&request=GetCapabilities
Specifically the DescribeCoverage endpoint here: http://esoil.io/thredds/wcs/SMIPSall/SMIPSv0.5.nc?service=WCS&version=1.0.0&request=DescribeCoverage
The ResponseCRSs field contains:
EPSG:0 [Latitude_Longitude]
When QGIS queries the supportedCRSs from the DescribeCoverage endpoint, it sees the "EPSG:0" entry and interprets as an invalid CRS, so it ignores it.
When requesting data via a GetCoverage request, QGIS instead uses
&responsecrs=OGC:CRS84
which of course causes Thredds to throw this error:Response CRS [OGC:CRS84] not the supported CRS [EPSG:0 [Latitude_Longitude]]
If I substitute that with "EPSG:0 [Latitude_Longitude]" I get a valid response from WCS.
I feel like I'm missing something here. Where does the
EPSG:0 [Latitude_Longitude]
entry come from? Is it something I can change in my netcdf4 file? I have included a valid crs variable in the netcdf4 file, with correct spatialref metadata and CRS wkt entry.Should QGIS interpret it as a valid CRS? I've opened a issue on the QGIS issue tracker about this here: qgis/QGIS#34569
This issue is related: qgis/QGIS#28864
But it seems to actually looks to be the opposite, it claims that when EPSG: 0 is found in the responseCRSs it should be ignored and fallback to the default QGIS value of OGC:CRS84.
The text was updated successfully, but these errors were encountered: