Is this a coincidence?? Just last week we discussed this in #qgis and spacedman 
started a python plugin for this same functionality... it's great it's done 
already! I offer myself to test if you'd like... if I can get my hands on a 
compiled version that is.

Duarte

-----Mensagem original-----
De: Marco Hugentobler [mailto:marco.hugentob...@sourcepole.ch]
Enviada: terça-feira, 7 de Junho de 2011 17:48
Para: qgis-developer@lists.osgeo.org
Assunto: [Qgis-developer] Embedding of layers and legend groups from other 
projects

Hi devs

Recently, I implemented support for embedding layers and legend groups from
other project files. Like this, it is no longer necessary to repeat legend
arrangements. Just embed groups and/or layers from other project files as
references (Layer->embed layers and groups, then select a project file and mark
the entities to embed). The reference can be absolute / relative depending on
the project setting.

The code is contained in my github clone (g...@github.com:mhugent/Quantum-
GIS.git). I'm planning to do some testing before pushing to the main repo. If
you have some feedback, let me know.

One issue that I'm already aware of is the problem to embed several groups
with the same name. Solution might be to generate a unique group id (similarly
to the layer id), but this does not work for referencing old project files.

Regards,
Marco

--
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland
marco.hugentob...@sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee

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

Reply via email to