Post

3 followers Follow
0
Avatar

WMS problems

Using QGIS 3.10. I am having problems obtaining Environment Agency data by WMS.

For example, until recently i was able to obtain one metre LIDAR
Composite DTM data using this URL:

https://environment.data.gov.uk/spatialdata/lidar-composite-digital-surface-model-dtm-1m/wms

This no longer works, when I try to use it I get error messages.

Is this a server problem?

Regards,

Nick Hopton.

Nick Hopton //

Please sign in to leave a comment.

7 comments

1
Avatar

Hi Ella,

Someone who knows more about WMS than me has just replied to a post I made on the uk-qgis group at Google Groups.

He says that when QGIS makes a request it adds the current version to the User-Agent string, so in version QGIS 3.10.0 this results in "Mozilla/5.0 QGIS/3.10.0-A Coruña" and that it might be the "ñ" character that's causing the request to be rejected.

Best,
Nick.

Nick Hopton 1 vote //
Comment actions Permalink
0
Avatar

To follow this up, I have filed a bug report at QGIS-Issues and it appears likely that in new versions of QGIS the distribution name, "Coruña" in this case, will be dropped from the User Agent string.

However, it will probably be some time before I can upgrade to the new version, in the meanwhile would it be possible to do something at your end, perhaps to make it possible for WMS requests with User-Agent strings containing characters from the extended set to be accepted? Or at least the "ñ" character. It would be very helpful.

Nick.

Nick Hopton 0 votes //
Comment actions Permalink
0
Avatar

Hello Nick, 

Thanks for the update, i have passed this query onto our suppliers.

I will keep you updated. 

Ella Fotheringham

Environment Agency 

Ella Fotheringham 0 votes //
Comment actions Permalink
0
Avatar

Hi Nick, 

The supplied WMS connection works in ArcMap, QGIS 2.18, and any web browser successfully returns Capabilities. This is a core issue with QGIS 3.10 and our supplier has advised there is currently no work around. 

Would it be possible for you to drop down a version of QGIS (similar version to 2.18) or try another free GIS client perhaps (gvGIS, SAGA GIS) or use trial version of ArcMap?

Whether we suggest the agnostic URL or native URL there is no guarantee QGIS would not use the special character it throws in for the User Agent. The incoming request cannot be easily filtered to remove User Agent strings without extensive development work.

I hope this helps. 

Ella Fotheringham

Environment Agency

Ella Fotheringham 0 votes //
Comment actions Permalink
0
Avatar

Thanks for trying Ella. The character in the User-Agent string that appears to be causing the problem is part of the UTF-8 set and most WMS servers appear to cope with this. 

I don't have a realistic alternative to QGIS 3.10 so I'll just have to wait until an update appears in the repositories.

As more people upgrade to 3.10 I'm sure you'll find this problem arising again, so forewarned is forearmed.

 

Best,
Nick.

Nick Hopton 0 votes //
Comment actions Permalink