Ok Thanks Marco for your work and help. Michael
2014-02-19 10:44 GMT+01:00 Marco Hugentobler < marco.hugentob...@sourcepole.ch>: > Hi Andreas and Michael > > Working on the embedded group bug right now btw. > > > >For layers, there is the layerIsEmbeded method of the QgsProject class, > but what about groups ? > > There is no such method for groups, because QgsProject does not know > anything about groups. Only the legend knows about groups, and there is a > C++ method QgsLegend::groupEmbedded, but without python bindings in the > legend interface. > > > Regards, > Marco > > > On 19.02.2014 10:07, kimaidou wrote: > > Hi, > > Another question regarding the embeded groups. Is there any way to tell if > a group is an embeded group with python bindings ? For layers, there is the > layerIsEmbeded method of the QgsProject class, but what about groups ? > > Cheers > > Michael > > > 2014-02-19 9:57 GMT+01:00 kimaidou <kimai...@gmail.com>: > >> Thanks Adreas for your prompt answer. >> >> 2014-02-19 9:47 GMT+01:00 Andreas Neumann <a.neum...@carto.net>: >> >> Hi Michael, >>> >>> It is a known issue and Marco Hugentobler is working on it (hopefully >>> still in time for 2.2). >>> >> >> >> Ok. thanks Marco. >> >> >> >>> >>> BTW: you will not be able to rearrange the order of individual layers if >>> you embed a whole group - only the group at a whole. >> >> >> Exactly. I just tried only because of the issue. I won't need it if >> groups and layers are embedded correctly. >> >> >> >>> But the order >>> within the embedded group should be correct once the bug is fixed. If >>> you want to reorder embedded groups or layers you will have to embed >>> them individually several times. >>> >> >> This is what I did to avoid the bug after I discovered it. I recreated >> a group and sub groups with individual embeded layers in them. Then I use >> QGIS project templates to save this state and create new projects with the >> same group. >> >> >> Michael >> >> >> >> >>> >>> Andreas >>> >>> Am 19.02.2014 08:41, schrieb kimaidou: >>> > Hi list, >>> > >>> > Yesterday I played a little bit with the feature "Embed layers or >>> groups". >>> > I works well for single layers, but it seems to behave randomly for >>> groups. >>> > For example, embedding a group containing sub-groups and layers does >>> not >>> > produce the right result in my case : the group is imported, but only >>> > contains the sub-group. All the layers from parent project origninally >>> > contained in the group root are imported in the root of the legend in >>> the >>> > child project. Second problem : the layers are imported with reverse >>> order >>> > compared to their order in the parent project. >>> > >>> > Espected behaviour : >>> > >>> > * imported group >>> > -- * sub-group >>> > ---- * layer A >>> > ---- * layer B >>> > -- * layer 1 >>> > -- * layer 2 >>> > >>> > Actual "buggy" behaviour : >>> > >>> > * layer 2 >>> > * layer 1 >>> > * imported group >>> > -- * layer B >>> > -- * layer A >>> > >>> > And I cannot move the layers 1 and 2 afterwards in the "imported >>> group" as >>> > the embedded groups are read-only. >>> > >>> > Has anyone seen this happen ? >>> > I would be happy to report a bug in hub.qgis.org >>> > >>> > Michael >>> > >>> > >>> > >>> > _______________________________________________ >>> > 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 >>> >> >> > > > _______________________________________________ > Qgis-developer mailing > listQgis-developer@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/qgis-developer > > > > -- > Dr. Marco Hugentobler > Sourcepole - Linux & Open Source Solutions > Weberstrasse 5, CH-8004 Zürich, switzerlandmarco.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 >
_______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer