[QGIS-Developer] Questions wrt. problems with empty layers
Lars I. Nielsen, LIFA A/S
lin at LIFA.DK
Thu May 9 04:36:14 PDT 2019
Hi developers.
I asked this question on the user's list, so far without any answers, but have been advised to ask here as well.
I'm working with a number of projects, which statically open a fixed number of layers. All layers are fetched using WFS / WFS-T.
Each layer has an extensive rule based styling, and an extensive field/attribute dialog setup. This is saved in the project files.
Our plugin changes the data provider filter for many layers, when the user works with the data. These filter expressions are also saved in the project, of course.
Our problem is, that if the user accidently chooses a work area (= new data provider filter), which contain no data in any layer, those layers lose all styling etc. And it's apparently impossible to recover these styles etc. by changing the filter back.
So basically the user's project is unrecoverably trashed at this point in time.
A - Is this a correct description of how QGIS handles "no-data" layers ?
B - Are there any standard ways to handle this in QGIS (using metadata or otherwise) in an automated fashion (i.e. not manually) ?
C - If the answers to A and B are yes and no resp., are there any plans to remedy this unnecessarily serious problem ?
Might it not be solved simply by adding an (optional?) layer metadata key, that stores the last used topology, and revert to this if no data are found on the layer ?
Using 3.4.5 x64 (Danish)
Med venlig hilsen
Lars I. Nielsen, LIFA A/S
GIS-konsulent, FME Certified Professional
[Beskrivelse: http://website.lifa.dk/lsp.gif]
T
6313 6800
@
lin at lifa.dk
D
6313 6849
W
www.lifa.dk<http://www.lifa.dk>
M
2492 4866
CVR
20937289
[Beskrivelse: C:\Users\lin\AppData\Roaming\Microsoft\signatures\21x21-Images-Get-L749-l8.png]<https://www.linkedin.com/company/lifa-a-s/>
Følg os på LinkedIn og læs de seneste nyheder fra LIFA A/S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190509/5d94bddd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 8192 bytes
Desc: image001.gif
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190509/5d94bddd/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 1204 bytes
Desc: image002.png
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190509/5d94bddd/attachment-0001.png>
More information about the QGIS-Developer
mailing list