[Qgis-user] qGIS WMS client question

paalkr pal.kristensen at statkart.no
Tue Nov 23 02:25:13 PST 2010


Hi!

I have some trouble using the new WMS client with support for group layers
introduced somewhere after qGIS 1.0. It looks like qGIS is not using the
named group layers in the GetMap request, but instead lists all sub-layers
contained in a group in the LAYERS GetMap parameter. And for some reason the
default layer order in the GetCapabilities document is not preserved in the
GetMap request by default. I know that the layer order dialog lets you
rearrange layers, but that is not very useful when the service consist of
more than 250 layers.

You could try the following service that will illustrate the problem pretty
good: http://openwms.statkart.no/skwms1/wms.topo2?

The service has two levels of named group layers, and selecting on of the
group layers in the qGIS WMS dialog should (ideally) result in a GetMap
request with the group layer(s) name in the LAYERS parameter, and not a list
of all the sub layers contained in the selected group(s). The described
method is used in uDig and other WMS clients, and I thing that qGIS should
consider the same behavior as it makes it easier to request services with
many layers.

Layer structure:

top group (name/title)
|-first group (name/title)
|--first group first layer (name/title)
|--first group second layer (name/title)
|-second group (name/title)
|--second group first layer (name/title)
|--second group second layer (name/title)
and so on...

example requests:

Top group layer (will result in a complete topographic map)
http://openwms.statkart.no/skwms1/wms.topo2?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=-450399.46,6423971.38,1472547.15,7964820.62&LAYERS=topo2_WMS&STYLES=&WIDTH=926&HEIGHT=742&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=FALSE

Requesting all sub layers in default order (provided in the GetCapabilities
document) should result in the same map as the above request, but thats not
the case in qGIS 


First two group layers
http://openwms.statkart.no/skwms1/wms.topo2?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=-450399.46,6423971.38,1472547.15,7964820.62&LAYERS=Hoydelag,Arealdekkeflate&STYLES=&WIDTH=926&HEIGHT=742&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=FALSE

All single layers in the first two group layers
http://openwms.statkart.no/skwms1/wms.topo2?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&SRS=EPSG:32633&BBOX=-450399.46,6423971.38,1472547.15,7964820.62&LAYERS=N5000Hoydelag,N2000Hoydelag,N1000Hoydelag,N500Hoydelag,N250Hoydelag,N5000Arealdekkeflate,N2000Arealdekkeflate,N1000Arealdekkeflate,N500Arealdekkeflate,N250Arealdekkeflate,N50Arealdekkeflate,fkb_ar5,fkb_arealbruk&STYLES=&WIDTH=926&HEIGHT=742&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=FALSE

Regards,
Pål Kristensen
Norwegian Mapping Authority

-----

Regards,
Pål Kristensen
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/qGIS-WMS-client-question-tp5766121p5766121.html
Sent from the qgis-user mailing list archive at Nabble.com.



More information about the Qgis-user mailing list