qgis-midvatten-plugin icon indicating copy to clipboard operation
qgis-midvatten-plugin copied to clipboard

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

Open HenrikSpa opened this issue 4 years ago • 1 comments

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 avatar Oct 04 '21 17:10 HenrikSpa

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.

HenrikSpa avatar Oct 05 '21 09:10 HenrikSpa