qgis-midvatten-plugin
qgis-midvatten-plugin copied to clipboard
selection method for compact water quality report
The compact water quality report is useful although the selection method could be more intuitive and harmonized with the plugin interface and usage overall.
Why not apply the same method as counts for most views and reports?
obsid selection should be based on the selected features in the obs_points layer (or else the currently selected layer if there is a field obsid).
To filter the dates I suggest a simple solution of two date input fields "from" and "to" (as in calculate water levels..., calculate logger w level... , custom plot xmin and xmax, etc)
If there actually is a need for some complex filters, nested sql clause etc, then I would prefer to let the user write this clause directly in a line edit/input form in the pop-up. E.g.
"obsid" in ('Rb1','Rb2') and ("date_time" like '2018-02%' or "date_time" in ('2017-01-01','2016-01-01') or "date_time" < '1900')
(Thereby avoiding the need for creating temporary views in the db or using partly malfunctioning db browser interactions.)