jkall / qgis-midvatten-plugin

Midvatten plugin for QGIS
23 stars 8 forks source link

Stratigraphy symbology possible bug where W levels layer is not added to QGIS #337

Open HenrikSpa opened 2 years ago

HenrikSpa commented 2 years ago

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.

HenrikSpa commented 2 years ago

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.