Feature request #3717
allow loading vector legend from text file
|Pull Request or Patch supplied:||No||Resolution:||duplicate|
|Easy fix?:||No||Copied to github as #:||13776|
It would be nice to be able to load a vector legend/style from a text file. This could include categorised, graduated or rules-based legends.
As an example, imagine receiving a vector file of land use classes with an information about the colors these classes should be displayed in. It would be nice to be able to just take this information, massage it into the necessary text file format and load it. Currently this is possible for raster palettes, but (apparently) not for vector legends.
#3 Updated by mlennert - about 9 years ago
- Status changed from Closed to Feedback
- Resolution deleted (
Replying to [comment:1 jef]:
You can already save the layer symbology to .qml files.
I'm am conscious of that possibility, but it does not really respond to the idea developed above. It is not an easy taks to create a .qml file from scratch when you have a list of codes and colors as input. What I was aiming at was some sort of mecanism to allow me to tell QGIS "I would like all polygons filled with a color and a black border brush of width XYZ, and you can find all the codes and their corresponding colors in RGB in the following text file".
I think this is a note too rare use case (e.g. downloading shapefiles of land use classes with an accompanying file giving the class to color key).
Reopening the ticket as it is (IMHO) not invalid...
#4 Updated by Micha Silver almost 9 years ago
- Pull Request or Patch supplied set to No
- Assignee deleted (
+1 for this suggestion.
FAO Geonetwork and the Africover project both distribute Land Cover data with standardized coloring for each land cover class in an excel file with R-G-B columns. It would be great to be able to convert those columns somehow directly into a qml...