support for named group layers using wms_layer_group
|Reported by:||Owned by:||mapserverbugs|
Currently, when using wms_layer_group, the group layers end up only with a <Title> in the WMS GetCapabilities, so they cannot be requested by a WMS client. We need support in order to be able to group layers together with mixed geometries (a POLYGON, LINE and POINT layer), under the strict condition that these layers have the same attributes. With this last condition I have to make 1 remark, since shapefiles normally have standard attributes like length or area which differ between geometry types. So the restriction would be: the layers share a common set of attributes as defined by the gml_include_items METADATA. The consequence of this would be: 1) there needs to be a mechanism to define a wms_layer_group as requestable (i.e. having a <Name> in the GetCapabilities). We could re-use the GROUP keyword for this, or introduce new metadata. The GROUP will define which level of the XPath expression is requestable, so in the case below you can request DIGITALTERRAIN. E.g.: "WMS_LAYER_GROUP" "/TOPOGRAPHY/DIGITALTERRAIN" .. GROUP "DIGITALTERRAIN" .. DATA "dt_points" .. DATA "dt_lines" .. DATA "dt_polygons" 2) The grouped layer needs to be queryable. The WMS GetFeatureInfo response will have 1 layer and multiple features if features exists in the point, line and polygon layer. 3) It should be possible to issue a GetLegendGraphic request for the group layer, Mapserver would need to create an image of all the legends of the sublayers of the group. Also, there should be a LegendURL advertized in the GetCapabilities. 4) It should be possible to assign a METADATAURL to the group layer. 5) When doing a DescribeLayer request, multiple typenames/queries can be returned (one for each sublayer). This is valid according to the schema, since 1 LayerDescription can have multiple queries. <!ELEMENT LayerDescription (Query*) >
Change History (8)
Note: See TracTickets for help on using tickets.