[MapServer-users] Suppress queryable=1 for wms_layer_group [SEC=OFFICIAL]

Rahkonen Jukka jukka.rahkonen at maanmittauslaitos.fi
Thu Jul 6 06:39:29 PDT 2023


Hi,

Do you use the same mapfile? There is a difference in GetCapabilities

<Layer queryable="1">
<Name>Radar</Name>
<Title>Radar</Title>

If layer has just a title but no name it is not queryable, nor does it support GetMaps. This applies to group layers as well. But it may be that since version 7.2 it is not possible to configure a WMS group without a name https://mapserver.org/ogc/wms_server.html.

-Jukka Rahkonen-




Lähettäjä: MapServer-users <mapserver-users-bounces at lists.osgeo.org> Puolesta Kathleen Hirst
Lähetetty: torstai 6. heinäkuuta 2023 8.29
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [MapServer-users] Suppress queryable=1 for wms_layer_group [SEC=OFFICIAL]

Hi,

In the previous version of Mapserver when using wms_layer_group, the groups were not queryable in the GetCapabilities. In following examples, the configuration is

LAYER>METADATA> OWS_LAYER_GROUP "/Radar/Australia"


Version 6.4.2

<Layer>
<Title>Radar</Title>
<Layer>
<Title>Australia</Title>
<Layer queryable="1" opaque="0" cascaded="0">
<Name>IDR00009</Name>
<Title>Radar Offline | Australia</Title>
<Abstract>Radar Offline | Australia</Abstract>
<CRS>EPSG:4283</CRS>


In the latest version 8.0.0, all the groups are queryable

<Layer queryable="1">
<Name>Radar</Name>
<Title>Radar</Title>
<Layer queryable="1">
<Name>Australia</Name>
<Title>Australia</Title>
<Layer queryable="1" opaque="0" cascaded="0">
<Name>IDR00009</Name>
<Title>Radar Offline | Australia</Title>
<Abstract>Radar Offline | Australia</Abstract>
<CRS>EPSG:4283</CRS>

Is there a way to not have the group queryable, as it is causing issues with some web applications eg picking up the wrong layer within a group or listing the group as well as the layer

Thanks

Kathleen













-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230706/1971bbe9/attachment.htm>


More information about the MapServer-users mailing list