[QGIS-Developer] WMS GetCapabilities NAME tag for groups

Tomas Straupis tomasstraupis at gmail.com
Mon May 1 23:40:38 PDT 2023


Hello

  QGIS Server is providing a GetCapabilities document for a service.
This document besides different stuff describes all layers provided.
Layer description includes NAME and TITLE tags. These layers can then
later be specified in GetMap LAYERS parameter by the value provided in
layers NAME tag (not TITLE, as that could have spaces, national
characters etc.).

 Now if we have a group of layers in QGIS project, say:
  G1
  * L1
  * L2

  GetCapabilities would list all three, which is fine. But all of them
would have a NAME tag meaning that then we could request G1 in a
LAYERS parameter together with L1 and L2 (like LAYERS=G1,L1,L2) which
would produce doubles of layer L1 and L2 (f.e. double labels, but I
assume this would also mean double symbology).

  OGC WMS standard states* that if we do not want some layer - for
example a group - to be specified in a LAYERS parameter, we should not
be providing NAME tag for that layer (only TITLE, so that group can be
displayed in a tree).

  QGIS has a specific possibility to specify detailed parameters for a
group (different name, title, description).

  QUESTION: what should be the right direction for QGIS here?
  a) project level setting of name tag for groups: provide / not
provide name tag
  b) group level setting (extending existing group details dialog) to
control name tag behaviour

  What should be the default behaviour:
  a) provide NAME tag for groups (this would be consistent the with
current behaviour, but to me this is not what most users would want?)
  b) not provide NAME tag for groups

  Thank you

* OGC WMS: Part 7.2.4.6.3 in this document:
https://portal.ogc.org/files/?artifact_id=14416

-- 
Tomas


More information about the QGIS-Developer mailing list