qgis-midvatten-plugin
qgis-midvatten-plugin copied to clipboard
Stratigraphy symbology possible bug where W levels layer is not added to QGIS
For some reason, if 'h_tocags' in wlvls_layer.fields().names() returned False even though the view w_lvls_last_geom had the column wlvls_layer.fields().names() did indeed not have 'h_tocags'.
I deleted the view manually and had stat symbology recreate it which solved the issue in the affected database.
I've tried commiting to database after each sql command when adding the views and it didn't change anything. I also tried closing the database after the view change and before layer creation and no change.
tables_columns-function gets all columns, including h_tocags, but the created layer still doesn't get that field.