Feature request #4565
storing qml file in the postgis table comments
|Pull Request or Patch supplied:||No||Resolution:|
It would be very cool if the postgis provider had the option to save the style for a layer/table (the qml file) in the comments of a table. And then optionally load the layer with the associated qml file.
#2 Updated by Giuseppe Sucameli almost 6 years ago
Why storing it in the comment of the table? And how to make it working with tables with more geometry columns? Maybe using the comment of geometry field instead?
IMHO would be better a new metadata table containing the relation between table + geomcol and the style.
#3 Updated by Rhys Stewart almost 6 years ago
The comments of the geometry field would even be better, I honestly didn't realize that fields could have comments!!!!
I prefer storing it in the table rather than a separate metatable because I think it would be easier to export/dump/backup individual tables complete with the style in the table or field comments as opposed to exporting the table in question plus the metadata table.