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

WCS client stopped working on a specific service from 2.18 to 3.x #33339

Closed
pcav opened this issue Dec 11, 2019 · 9 comments
Closed

WCS client stopped working on a specific service from 2.18 to 3.x #33339

pcav opened this issue Dec 11, 2019 · 9 comments
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers Feedback Waiting on the submitter for answers Regression Something which used to work, but doesn't anymore

Comments

@pcav
Copy link
Member

pcav commented Dec 11, 2019

http://sit.cittametropolitana.na.it/arcgis/services/lidar/MapServer/WCSServer?
works in qgis 2.18, it does not in 3.10.
tested both on Windows and Debian Sid.

@pcav pcav added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Dec 11, 2019
@pigreco
Copy link
Sponsor Contributor

pigreco commented Dec 11, 2019

confirm
only works in 2.18

@pcav
Copy link
Member Author

pcav commented Dec 11, 2019

Layers are loaded, the info tool returns correct values, but nothing is displayed, even when adopting a proper colour scale (from 0 to 2000)

@gioman
Copy link
Contributor

gioman commented Dec 11, 2019

log:

2019-12-11T18:14:05 WARNING No data received
2019-12-11T18:14:05 WARNING Received coverage has wrong extent 399003.1521521521499380,4484495.1214244849979877 : 476198.8478478478500620,4529147.6187546495348215 (expected 399089.8888888888759539,4484582.3333333330228925 : 476112.1111111111240461,4529060.4068458015099168)

@gioman gioman added Regression Something which used to work, but doesn't anymore Data Provider Related to specific vector, raster or mesh data providers labels Dec 11, 2019
@pcav
Copy link
Member Author

pcav commented Dec 11, 2019

Thanks for checking. The points are:

  • correct values are displayed when queried with the info tool
  • 2.18 displays it correclty.
    Have you zoomed to the correct area? It is around Naples.

@marisn
Copy link
Contributor

marisn commented Dec 16, 2019

2019-12-11T18:14:05 WARNING Received coverage has wrong extent

I also got hit by such issue, but I managed to track down the issue to MapServer. Still in this case an ArcGIS server seems to be in use.
MapServer/MapServer#5940

@troopa81 troopa81 self-assigned this Jan 24, 2020
@troopa81
Copy link
Contributor

troopa81 commented Feb 4, 2020

2019-12-11T18:14:05 WARNING No data received

This message is no big deal and don't prevent the WCS layer to be displayed. I'll propose a PR to not display it.

2019-12-11T18:14:05 WARNING Received coverage has wrong extent

Like @marisn said, I wonder if this is not a problem on server side. QGIS checks that received extent is almost (10 significant digits) equals to requested extent. This not the case with this server (given BBOX and resulting bbox differs) :

curl -XGET "http://sit.cittametropolitana.na.it/arcgis/services/lidar/MapServer/WCSServer?SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&FORMAT=GeoTIFF&COVERAGE=3&BBOX=13.83958719667134396,40.53155657495530306,14.67913815586193493,41.0219497441243135&CRS=EPSG:4326&RESPONSE_CRS=EPSG:4326&WIDTH=10&HEIGHT=10" -o notok.img
gdalinfo notok.img
...
Upper Left ( 13.7929455, 41.0491938) ( 13d47'34.60"E, 41d 2'57.10"N)
Lower Left ( 13.7929455, 40.5043125) ( 13d47'34.60"E, 40d30'15.53"N)
Upper Right ( 14.7257799, 41.0491938) ( 14d43'32.81"E, 41d 2'57.10"N)
Lower Right ( 14.7257799, 40.5043125) ( 14d43'32.81"E, 40d30'15.53"N)
Center ( 14.2593627, 40.7767532) ( 14d15'33.71"E, 40d46'36.31"N)

Contratry to this one that works

curl -XGET "http://194.66.252.155/cgi-bin/BGS_EMODnet_bathymetry/ows?SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&FORMAT=GTiff&COVERAGE=BGS_EMODNET_WesternMed-MCol&BBOX=-0.48958332999999998,35.21874233999999859,9.83125826000000025,44.78958332999999925&CRS=EPSG:4326&RESPONSE_CRS=EPSG:4326&WIDTH=418&HEIGHT=388" -o ok.img
gdalinfo ok.img
...
Upper Left ( -0.4895833, 44.7895833)
Lower Left ( -0.4895833, 35.2187423)
Upper Right ( 9.8312583, 44.7895833)
Lower Right ( 9.8312583, 35.2187423)
Center ( 4.6708375, 40.0041628)

It was working before (QGIS 2.18) because of a side effect which lost precision when checking those extents, and the side effect is gone since this commit 4b009f9

I take a look in OGC specifications and I don't see anything that said that result extent could be different from requested one (as long as pixel and bbox ratio are consistent).

@pcav @pigreco Any thoughts on that?

@troopa81 troopa81 added the Feedback Waiting on the submitter for answers label Feb 4, 2020
@pcav
Copy link
Member Author

pcav commented Feb 4, 2020

Why shouldn't qgis be more tolerant towards possible server (minor, apparently) misconfigs?
Thanks.

@troopa81
Copy link
Contributor

troopa81 commented Feb 5, 2020

Why shouldn't qgis be more tolerant towards possible server (minor, apparently) misconfigs?
Thanks.

Why not. We could display the warning message but let the tile be displayed. I have not a strong opinion on this. I'll propose a PR and see what reviewers says about it.

troopa81 pushed a commit to troopa81/QGIS that referenced this issue Feb 5, 2020
@pcav
Copy link
Member Author

pcav commented Feb 7, 2020

Thanks Nyall!

nyalldawson pushed a commit to nyalldawson/QGIS that referenced this issue Feb 10, 2020
…wnload has been canceled

(cherry picked from commit dfdb9cf)
nyalldawson pushed a commit that referenced this issue Feb 12, 2020
…ad has been canceled

(cherry picked from commit dfdb9cf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers Feedback Waiting on the submitter for answers Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

5 participants