[Qgis-user] Not valid data source on wms layer access for QGIS 3.8

Richard Duivenvoorde rdmailings at duif.net
Fri Jul 5 00:30:05 PDT 2019


On 05/07/2019 08.18, Alessandro Pasotti wrote:

> On Fri, Jul 5, 2019 at 8:13 AM Andrea Peri <aperi2007 at gmail.com
>     http://www502.regione.toscana.it/ows_ofc/com.rt.wms.RTmap/wms?map=owsofc
> 
>     When I try to add it to a map canvas the connection return le list
>     of layer .
>     Choosing one and using the EPSG:3003.
>     When Add to the canvas I see an error NOT VALID DATA SOURCE.
> 
>     The same steps instead work correctly with the old QGIS 2.18.
> 
>     Is this confirmed from some other one ?

I'd say there is something wrong with the server (different endpoints?
url rewriting? proxies?). Because depending on the time and version I
get different results all the time:
- started with QGIS Master and the normal WMS dialog: I saw 10 layers
and could load the aerials
- same session, I opened that node on the browser and then saw MUCH more
layers (a lot of vector layers 'added') and could all load them
- started 3.8 and saw the layers but could not load them
- started master again and saw both in dialog and in browser only the 10
layers
- now I keep seeing only the 10 ortho's (and can load them both in
Master and 3.8.0 which I have here.)

This is the url QGIS fires:
http://www502.regione.toscana.it/ows_ofc/com.rt.wms.RTmap/wms?map=owsofc&SERVICE=WMS&REQUEST=GetCapabilities
as curl command
curl
'http://www502.regione.toscana.it/ows_ofc/com.rt.wms.RTmap/wms?map=owsofc&SERVICE=WMS&REQUEST=GetCapabilities'
-H 'User-Agent: Mozilla/5.0 QGIS/3.9.0-Master'  --compressed

My guess is there is something with the service...

Can you maybe sent me a saved project with a layer that does not load
with you?
Can you try to install the QGIS Network logger plugin to see and check
the url's (and replay the urls in the browser)

Regards,

Richard


More information about the Qgis-user mailing list