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 @ l...@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
_______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer