Hi,

Layer title and name are only the same if the title in the metadata is
not set (see metadata tab of a layer). If you set the title in the
metadata tab it will be different from the name in the GetCapabilities
response.

Naming the same layer twice: it's just bad practice. Authors should not
do that. Many plugins also rely on the fact that the same layer name
does not appear multiple times (or how would you distinguish layers
(e.g. in a combobox) if the same layer name is used multiple times?)

I would just tell users: don't do that. It's your own fault if you do it.

I wouldn't mind if you add the layer id in the GetProjectSettings
command (in addition to layer and title, not instead of), but I don't
think that the layer id's should be exposed in GetCapabilities.

Andreas

Am 04.04.2014 12:58, schrieb Ivan Minčík:
> Hi all,
> I wonder if value layer Name is correct in QGIS Mapserver GetCapabilities
> response. Currently both Name and Title are the same - it is a layer name
> as visible in QGIS.
> 
> Shouldn't it be more correct if the Name value will contain layer internal
> ID (for example roads20131111135915389) and Title will contain user visible
> value (for example Roads). It could also help solving problem when user
> will set the same name for multiple layers.
> 
> Could we provide a patch ?
> 
> 
> 
> 
> 
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
> 

_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to