[Qgis-user] qgis-server vs layer id

Nathan Woodrow madmanwoo at gmail.com
Wed Apr 8 23:53:31 PDT 2015


Hey Burghardt,

As a workaround for now it's pretty easy to read the xml file and replace
the layer ids using Python.  QGIS doesn't care about the format of the id
as long as it's a strings so you could replace them all with a GUID if you
wanted.

- Nathan

On Thu, 9 Apr 2015 at 16:46 <Burghardt.Scholle at stadt.wolfsburg.de> wrote:

> Dear list,
>
> I enjoy working with templates for QGIS projects. This brings when working
> with QGIS Desktop many advantages, but leads to problems with the QGIS Web
> Client. When I save a project file under a different name, the id of the
> layer, unfortunately, is maintained. If I use both project files in the
> qgis-server, this creates problems with caching of layer. That is
> particularly evident when identical layer named differently or otherwise be
> symbolized.
> This topic is discussed on several occasions in the past [1,2] and has
> been referred to as "bug" or "limitation". In [2] it's said that the
> combination of project name and layer ID could be a solution for the
> problem. Up to and including version 2.8.1, the change has not yet been
> carried out. Is there an effort to change the creation of the layer ID in a
> future release?
>
> Kind regards
> Burghardt
>
> [1] http://osgeo-org.1560.x6.nabble.com/Qgis-server-returns-map-
> from-another-project-that-is-defined-in-URL-td5153101.html#a5153150
> [2] http://hub.qgis.org/issues/7956
>
> ***************
> mailto:burghardt.scholle at stadt.wolfsburg.de
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150409/7540bf01/attachment.html>


More information about the Qgis-user mailing list