Bug report #106
symbology is lost when trying to update it after modifying fields
|Affected QGIS version:||Regression?:||No|
|Operating System:||Debian||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||worksforme|
|Crashes QGIS or corrupts data:||Copied to github as #:||10165|
1. add a grass vector layer (say "parcels") 2. properties -> symbology -> Legend type -> Unique value (Classification field: COVER_MAPS) 3. setup the symbology, ok, save project 4. exit qgis 5. in Grass replace 'meadow' within the COVER_MAPS in "parcels" layer with eg. 'pasture' (echo "UPDATE parcels SET COVER_MAPS='pasture' WHERE COVER_MAPS='meadow'" | db.execute) 6. qgis, open the project saved in #3907 7. select the layer added in #3905, properties -> symbology 8. the new value 'pasture' is not there, still 'meadow'... 9. Legend type -> Unique value (Classification field: COVER_MAPS) 10. 'pasture' appears, but all the symbology (colors, line widths etc.) previously setup in #3906 is lost! 11. could it be preserved please, only the now missing 'meadow' removed and new 'pasture' set to anything? Maciek
#1 Updated by Marco Hugentobler over 17 years ago
In Qgis, data source and layer symbolisation are independent of each other. Therefore, the changed fieldname is not updated in the symbology (and in my opinion, it should not be updated automatically). I think the best solution would be to let the user editing the (field) values in the unique value dialog, similar to the 'graduated symbol' dialog, where the user may double click on the value list and edit the individual entries without loosing the already inserted symbology.
I think this is a missing feature rather than a bug, so i try to adress it shortly after 0.8 is released.