[Qgis-developer] [QGIS Server] Add short name to layers, groups and project
René-Luc Dhont
rldhont at gmail.com
Tue Dec 8 03:25:36 PST 2015
Hi Marco, Devs and QGIS server users,
I published a pull-request to 'Add short name to layers, groups and
project' https://github.com/qgis/QGIS/pull/2549
A number of elements have both a <Name> and a <Title>. 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”.
User can already set title for layers, groups and project. OWS name is
based on the name used in layer tree. This name is more a label for
humans than a name for machine-to-machine communication.
To add the capability to users to define Name as a text string for
machine-to-machine communication, this pull-request adds:
* short name line edits to layers properties
* WMS data dialog to layer tree group
* short name line edits to project properties
* add a regexp validator "^[A-Za-z][A-Za-z0-9\._-]*" to short name line edit
If a short name has been set for layers, groups and project it is used
by QGIS Sever as the OWS name.
Add a short name lets not need to create a specific project for web
publishing. This will have an impact for QGIS Web Client and Lizmap. But
will be usefull to publishing more normalize OGC Web Services (ISO and
INSPIRE).
Marco, can you review the code ?
Test and feedback are welcomes.
Regards,
René-Luc
More information about the Qgis-developer
mailing list