jkall / qgis-midvatten-plugin

Midvatten plugin for QGIS
23 stars 8 forks source link

Obs_points (view_obs_points) is not always editable #339

Closed HenrikSpa closed 2 years ago

HenrikSpa commented 2 years ago

Using QGIS >3.16 the table obs_points is not always editable. The edit "pen" that turns on editing is not clickable (grey).

HenrikSpa commented 2 years ago

I've changed source for obs_points from view_obs_points to obs_points in latest commit for QGIS-versions above 3.16. I verified that the original bug that was the cause for the requirement for view_obs_points is no longer an issue using QGIS 3.16 in Windows and 3.22 in Ubuntu.

lmpuser commented 2 years ago

Hello, thank you for the advice, i'm facing this issue too.

So, to work with 3.16 version in Windows is the only way to manage at present, correct ? best regards Luca

HenrikSpa commented 2 years ago

Hi! Before the next official Midvatten version for QGIS which will have this fix, you can load the obs_points-table and apply the style manually:

1) In QGIS, click Layer > Add Layer > Add SpatiaLite Layer 2) Create a New connection to your database and then Connect 3) Select table _obspoints in the list and click Add Apply the style: 4) Right click the old obs_points layer in the layer list and choose Styles > Copy Style > All Style Categories 6) Select the newly added obs_points. 7) Right click the new obs_points layer in the layer list and choose Styles > Paste Style > All Style Categories 8) Remove the old obs_points layer from the layer list. Having more than one layer named obs_points in the layer list is not supported in the Midvatten plugin.

Regards, Henrik

HenrikSpa commented 2 years ago

Fixed in 1.6.10.