[Qgis-user] qgis-web-client - switching

flavio rigolon flavio.rigolon at gmail.com
Fri Mar 21 00:01:03 PDT 2014


Hi Andreas

> This is a QGIS server issue with the cache. The "unique" index in the
> layer cache is the layer id QGIS automatically generated. If you just
> copy projects and do not change the id of the layer then there is
> "first-come, first-served".
>
> The solution is either:
>
> * Do not copy layers or projects but link them (use the embedded groups
> and layers) - this is my own approach. It also saves you a lot of work
> if you need to do changes in the first layers
>
> * Open the qgs files in the text editor and use find-and replace. Make
> sure that the same layer id isn't used multiple times in your projects
>
> * harder: write a plugin that "randomizes" these layer ids and make them
> thus unique
>
> * even harder: change the QGIS server layer cache that the id is a
> combination of the project name and the layerid - or ask/pay someone to
> do so.
>
> Hope this helps.

Thank you very much: I'll try with the first and/or second solution for now.
I'll send feedback early

thanks again
ciao
flavio

-- 
/"\  ASCII Ribbon Campaign
\ /  Respect for low technology.
 X  Keep e-mail messages readable by any computer system.
/ \  Keep it ASCII.



More information about the Qgis-user mailing list