Bug report #18380

Unable to embed layer groups from other project. But able to import specific layer from a group

Added by Etiënne Thomassen over 6 years ago. Updated over 6 years ago.

Status:Closed
Priority:High
Assignee:Matthias Kuhn
Category:Project Loading/Saving
Affected QGIS version:3.1(master) Regression?:Yes
Operating System:Windows 10 Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:26270

Description

On previous versions of QGIS I was able to import entire layer groups and their layers and symbology from other project files. Now when I do the same I get the layer names in the layer tree, but nothing appears.

It does work when I select a specific layer from the parent project file, but it does not when I want embed an entire layer group.

source_project_ext.qgs - QGIS3 project file with layesr from gpkg and online services (47.8 KB) Etiënne Thomassen, 2018-03-19 08:48 PM

embed.gpkg - 3 polygon layers within geopackage (152 KB) Etiënne Thomassen, 2018-03-19 08:48 PM

step1_source_project_ext.PNG - The source project file (63.3 KB) Etiënne Thomassen, 2018-03-19 08:52 PM

step3_result_ext_1.PNG - Layer order different, some layers invisible (17 KB) Etiënne Thomassen, 2018-03-19 08:52 PM

step2_new_project_select_embed.PNG - I close and reopen QGIS and select all layers (161 KB) Etiënne Thomassen, 2018-03-19 08:52 PM

step4_result_ext_2.PNG - Zoom to extent (might be a feature, but seem strange) (75.6 KB) Etiënne Thomassen, 2018-03-19 08:53 PM

step5_result_ext_3.PNG - Enabling the layers in the group does not make them visible (75.8 KB) Etiënne Thomassen, 2018-03-19 08:59 PM

step6_result_ext_3.PNG - Moving the group does make them visible (74.2 KB) Etiënne Thomassen, 2018-03-19 08:59 PM

Associated revisions

Revision 96f74269
Added by Matthias Kuhn over 6 years ago

Load layers within embedded groups

Fix #18380

History

#1 Updated by Giovanni Manghi over 6 years ago

  • Category changed from Symbology to Project Loading/Saving
  • Priority changed from Low to High
  • Regression? changed from No to Yes

#2 Updated by Richard Duivenvoorde over 6 years ago

Hi, can you please add some minimal projects, so it is easier for people here to reproduce?

You could either add some tiny datasets, or else work with online services?

#3 Updated by Giovanni Manghi over 6 years ago

  • Status changed from Open to Feedback

#4 Updated by Etiënne Thomassen over 6 years ago

I have enclosed a project file and a geopackage with 3 tables which are referenced from the project file.

Thanks to making these files, I now have additional feedback. I added screenshots of the steps I take.

Remarks:
- embedding layers from another project does not preserve the order of the layer(groups)
- layer groups embedded from another project are inactive after importing
- activating them does not make them visible
- moving a layer group seems to activate them and enables me to either make them visible. Or they appear after moving them when I already activated the layer

HTH!

#5 Updated by Etiënne Thomassen over 6 years ago

  • Status changed from Feedback to Open

Added feedback a few days ago, but I think I also need to set the status to 'open'?

#6 Updated by Jan Lippmann over 6 years ago

i can confirm. embedded layer and groups from other projects appears in the project (layertree) in which the groups/layer loaded in, BUT no layer data and no symbology appear. no embedded layer appear in the snap options.

affected version is 3.0.1

this problem do not accure with actual master.

OS:Win 7 64bit


QGIS-Version
3.0.1-Girona
QGIS-Codeversion
a86bec25eb
Kompiliert gegen Qt
5.9.2
Laufendes Qt
5.9.2
Kompiliert mit GDAL/OGR
2.2.4
Läuft mit GDAL/OGR
2.2.4
Kompiliert mit GEOS
3.5.0-CAPI-1.9.0
Läuft mit GEOS
3.5.0-CAPI-1.9.0 r4084
PostgreSQL-Client-Version
9.2.4
SpatiaLite-Version
4.3.0
QWT-Version
6.1.3
QScintilla2-Version
2.10.1
PROJ.4-Version
493

#7 Updated by Jan Lippmann over 6 years ago

can someone else confirm that issue? i think it's a regression and should be fixed in the next point release 3.0.2

thanks! :-)

#8 Updated by Marco Bernasocchi over 6 years ago

Still present in 3.0.3

#9 Updated by Marco Bernasocchi over 6 years ago

Still present in master https://github.com/qgis/QGIS/commit/2e5e20eb54

the workaround of moving the group is also still working

#10 Updated by Matthias Kuhn over 6 years ago

  • Assignee set to Matthias Kuhn

#11 Updated by Matthias Kuhn over 6 years ago

  • Affected QGIS version changed from 3.0.0 to 3.1(master)
  • Pull Request or Patch supplied changed from No to Yes

#12 Updated by Anonymous over 6 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF