Bug report #21045
Unable to add WCS - bad WCS Request
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Web Services clients/WCS | ||
Affected QGIS version: | 3.4.3 | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | Yes | Resolution: | fixed/implemented |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 28864 |
Description
This WCS:
http://thredds.ucar.edu/thredds/wcs/grib/NCEP/WW3/Regional_US_West_Coast/Best
It doesn't seem to be possible to add the layers. I get:
2019-01-20T12:03:18 CRITICAL Invalid Layer : WCS provider Cannot get test dataset.
Raster layer Provider is not valid (provider: wcs, URI: cache=PreferNetwork&crs&dpiMode=7&format=GeoTIFF_Float&identifier=Wind_speed_surface&time=2018-12-21T00:00:00Z&url=http://thredds.ucar.edu/thredds/wcs/grib/NCEP/WW3/Regional_US_West_Coast/Best
For some reason, QGIS is making the request with these CRS/RESPONSE_CRS parameters (obviously that's an invalid CRS):
CRS EPSG:0 [Latitude_Longitude]
RESPONSE_CRS EPSG:0 [Latitude_Longitude]
Related issues
Associated revisions
[wcs] improve CRS handling when parsing DescribeCoverage responce (refs #21045)
[wcs] improve CRS handling when parsing DescribeCoverage responce (refs #21045)
(cherry picked from commit 2f7550d1a22ad9813786e78c5a23767f253065e7)
History
#1 Updated by Jürgen Fischer almost 6 years ago
- Duplicated by Bug report #21046: Unable to add WCS - bad error reporting added
#2 Updated by Jonathan Moules almost 6 years ago
Ok, if you think it's a duplicate, but they're both using the same error to report two different bugs in QGIS.
One is that QGIS cannot connect to the WCS, the other is that QGIS doesn't handle WCS exception reports properly.
#3 Updated by Jürgen Fischer almost 6 years ago
- Duplicated by deleted (Bug report #21046: Unable to add WCS - bad error reporting)
#4 Updated by Jürgen Fischer almost 6 years ago
- Related to Bug report #21046: Unable to add WCS - bad error reporting added
#5 Updated by Alexander Bruy almost 6 years ago
- Pull Request or Patch supplied changed from No to Yes
Invalid request constructed because QGIS WCS provider handles only requestResponseCRSs
element of the DescribeCoverage
response. When this element is not found, it tries to get CRS from the RectifiedGrid
element.
WCS server mentioned in the ticket reports invalid(?) CRS in that element
<gml:RectifiedGrid srsName="EPSG:0 [Latitude_Longitude]" dimension="2">
Here is an attempt to fix CRS handling https://github.com/qgis/QGIS/pull/9005
#6 Updated by Alexander Bruy almost 6 years ago
- Resolution set to fixed/implemented
- Status changed from Open to Closed
PR merged, I think we can close this now.