[mapserver-users] How to set queryable=1 for a GROUP layer?

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Mon Jan 4 07:43:53 PST 2016


Hi,

I have a layer group, let's say "group_1", where all the sub-layers are queryable.  The group layer is also effectively queryable and GetFeatureInfo works if I use &QUERY_LAYERS=group_1. The problem is that the group layer is not announced announced as queryable in the GetCapabilities

<Layer>
<Name> group_1</Name>
<Title> group_1</Title>
...
       <Layer queryable="1" opaque="0" cascaded="0">
       <Name> sub_layer</Name>
    ....


I would like to see it as:
<Layer queryable="1">
<Name> group_1</Name>
<Title> group_1</Title>
....
          <Layer queryable="1" opaque="0" cascaded="0">
          <Name> sub_layer</Name>
          ....


Without queryable attribute I can't make GetFeatureInfo to work when I am cascading it with Geoserver. By reading the WMS 1.1.1 standard I feel that GeoServer is behaving as it is supposed to work: if the layer is not announced to be queryable then it is not queryable. I can't find any mention in the WMS standard that a group layer should behave in a different way than the normal layers.

7.1.4.6 Layer Attributes
A <Layer> may have zero or more of the following XML attributes: queryable, cascaded,
opaque, noSubsets, fixedWidth, fixedHeight. All of these attributes are optional and
default to 0

7.1.4.6.1 Queryable layers
A Layer is said to be "queryable" if the server supports the GetFeatureInfo operation on
that Layer. A server may support GetFeatureInfo on some of its layers but not on all. A
server shall issue a Service Exception (code="LayerNotQueryable") if GetFeatureInfo is
requested on a Layer that is not queryable.

Is there any way to add the queryable="1" attribute to a layer group?

-Jukka Rahkonen-

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160104/2791d837/attachment.html>


More information about the mapserver-users mailing list