Join GitHub today
storing qml file in the postgis table comments #14477
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.
Author Name: Giuseppe Sucameli (@brushtyler)
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.
Author Name: Rhys Stewart (@rhysallister)
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.
Author Name: Médéric RIBREUX (Médéric RIBREUX)
I think that this feature is now completely integrated into QGIS PostgreSQL provider and Spatialite too. For PostgreSQL, style is stored into a dedicated table (layer_styles).
We can close this feature request !