Feature request #3572
Handling of symbology load error on project load
|Assigned to:||-||% Done:||
|Category:||Project Loading / Saving|
|Target version:||Future Release - Nice to have|
|Platform version:||Pull Request or Patch supplied:||No|
This is a proposed patch to change the behaviour of QGis if a layer fails to load because it cannot process the symbology definition in the project file (eg because a renderer plugin is missing).
The current behaviour is to fail to load the layer. The attached patch changes this to instead use a default symbology.
Neither is ideal ... I think it would be better to load a default symbology and report to the user that the original symbology could not be loaded - preferably with a reason why. However that raises a bigger question about how to handle errors when loading the project file.
At the moment if the symbology doesn't load, the layer fails, and the user is presented with the bad layers handler. This allows them to reselect the file used by the layer. However this is really confusing if the file is correct and exists, but the symbology cannot be loaded ... it confused me anyway!
With this patch the layer loads, but the symbology reverts to a default definition - not what the user would expect, but the best that can be done.
Updated by Giovanni Manghi over 5 years ago
- Target version changed from Version 1.7.0 to Version 1.7.4
Updated by Chris Crook over 5 years ago
- Assigned to deleted (
- Pull Request or Patch supplied set to No
This fix can be improved a little by adding a log message to record the missing renderer - now that log messages are user viewable this is at least a start to making the failure more readily understandable.
Updated by Giovanni Manghi almost 5 years ago
- Target version changed from Version 1.7.4 to Version 2.0.0
Updated by Pirmin Kalberer over 4 years ago
- Target version changed from Version 2.0.0 to Future Release - Nice to have
Updated by Médéric RIBREUX over 1 year ago
- Status changed from Open to Feedback
Hello, bug triage...
test done on QGIS 2.13 with Vector field rendere: when the plugin is uninstalled and a project tries to use it, there is an error dialog box telling that the layer is unhandled (saying not why but there is an error message).
Perhaps we should add a more explicit error message telling to the user that a renderer is missing for this layer (and if possible with the name of the renderer).
Also available in: Atom