Bug report #18380
Unable to embed layer groups from other project. But able to import specific layer from a group
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.
Associated revisions
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
- File step5_result_ext_3.PNG added
- File step6_result_ext_3.PNG added
- File step4_result_ext_2.PNG added
- File step3_result_ext_1.PNG added
- File step2_new_project_select_embed.PNG added
- File step1_source_project_ext.PNG added
- File embed.gpkg added
- File source_project_ext.qgs added
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
Applied in changeset qgis|96f7426946b31c54d72bacd19953657d191f54b4.