<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Devs,<br>
Hi Marco,<br>
<br>
With some QGIS-Server user feedbacks, we think that it will be
usefull to add an OGC Web Service (WMS, WFS, WCS) Name to metadata
layers.<br>
<br>
We think that we need to add an input to specify a OGC Web Service
Name because a lot of users use QgsMapLayer.name() as a title.
QgsMapLayer.name() is used by user as a title because it's the label
in the QGIS legend and in the composer legend. <br>
<br>
An other point is that currently if the user activates 'Use layer id
as name' in the Project Properties and does not set the title in the
layer metadata, the QgsMapLayer.name() will be used as the OGC Web
Service Title.<br>
<br>
In the WMS implementation specification, The Name is a text string
used for machine-to-machine communication while the Title is for the
benefit of humans. For example, a dataset might have the descriptive
Title “Maximum Atmospheric Temperature” and be requested using the
abbreviated Name “ATMAX”.<br>
In the WFS, the Name has to be a valid XML Tag name and Tag names
cannot contain any of the characters <code>!"#$%&'()*+,/;<=>?@[\]^`{|}~</code>,
nor a space character, and cannot start with <code>-</code>, <code>.</code>,
or a numeric digit.<br>
The QgsMapLayer.id() can be a valid OGC Web Service, but it is too
long and it's not an abbbreviated Name.<br>
<br>
I propose to add a Short Name in the layer metadata which will:<br>
* be stored as a WMSName element<br>
* accessible through QgsMapLayer.shortName()<br>
* be used as OGC Web Service Name if it has been set and 'Use layer
id as name' has not been checked<br>
<br>
Remarks are wellcome.<br>
<br>
René-Luc D'Hont<br>
</body>
</html>