[Qgis-developer] QGIS Server: using same layer name in different projects
Andreas Neumann
a.neumann at carto.net
Thu Jun 19 01:12:32 PDT 2014
Hi Luca,
It is a known issue.
It is not an issue about the layer name, but of layer ids. You have to
make sure that layer ids in all of your projects are unique.
You probably copy/pasted projects and this does not upgrade the layerid.
It is not a problem to have two or more identical layer names, but the
layer ids have to be unique.
I agree that this is suboptimal and should be resolved in an upcoming
version. The layercache should have both the project name and the
layerid to form a unique identifier from both attributes.
Someone needs to either work on it or found this improvement.
Andreas
Am 19.06.2014 07:59, schrieb Luca Manganelli:
> Hi,
>
> I discovered that if you use QGIS Server along two different project
> that share the same layer name.
>
> I.e.:
>
> first project:
> "roads" layer name ---> I use the postgis table name "roads",
> filtered by highways
>
> second project:
> "roads" layer name ---> I use the postgis table name "roads", with
> no filter (all road types)
>
> If you first visit with Qgis Web Client the first project, then the
> second you see only highways.
> I think that this is due to QGIS Server WMS caching, or am I wrong?
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
More information about the Qgis-developer
mailing list