Ability to set a layergroup as root layer

Description

This improvement suggestion wants to solve 2 issues which are less optimal

  • In WMS capabilities the service title is repeated as title of the service and as title of the root layer, in common WMS clients both levels are displayed, having the same title

  • There is no option to sort the layers in a WMS capabilities root layer, if a wms client adds all layers at once, the layers are added alphabetically, and not as desired, eg polygon, line, point

If we allow to set a layergroup as rootlayer, layers in that group can be sorted and the rootlayer will have a proper title

requirements:

  • only 1 layergroup can be set as rootlayer

  • other layergroups should be of type container-tree, named-tree

  • layers not in any group are not displayed in capabilities

Environment

None

Activity

Show:
Ian Turton
February 3, 2017, 11:52 AM

I think that ordering of layers is a client issue and as such having capabilities in alphabetical order is fine.

Paul van Genuchten
February 3, 2017, 1:46 PM

Hi Ian, I tend to agree that for most use cases layer order may not be an issue. But see for example this service
http://geoservices.rijkswaterstaat.nl/luchtfotografie_ecologie?request=getcapabilities&service=wms
if you open it in qgis you'll notice that it puts the most recent data on top, which is nice, so people don't need to search for the most common layers.

Paul van Genuchten
February 3, 2017, 9:15 PM

as discussed on mailinglist setting a layergroup as rootlayer is quite impactfull and will not fully cover the case (the order will not be available in WFS/WCS). My suggestion would be to close this issue and create new issues for layer-order and unability to change rootlayer title.

Andrea Aime
February 4, 2017, 10:21 AM

Hi Paul, I've closed this ticket, but let's keep the discussion on the list alive.

Won't Fix

Assignee

Unassigned

Reporter

Paul van Genuchten

Triage

None

Fix versions

None

Affects versions

None

Components

Priority

Medium
Configure