jkall / qgis-midvatten-plugin

Midvatten plugin for QGIS
23 stars 8 forks source link

Filter on data w_qual_lab rows for Piper diagram #329

Open StefanoMenichetti opened 3 years ago

StefanoMenichetti commented 3 years ago

Good morning at all, I've a question, it is possible to filter data on w_qual_lab table before to run piper diagram ? I've tried to filter the attribute table but do not work because obviously "select" acts direcly on db table. I have several samples and I want to limit Piper diagram to few dates Someone can give me a guess ?

Thank you very much, you're great for this plugin :-)

HenrikSpa commented 3 years ago

Hi and thanks for the kind words:)

You're correct that the Piper plot gets the data directly from the database so filtering the w_qual_lab vector layer does nothing.

Unfortunately the Piper plot doesn't currently have any way to filter data.

What you could do however is to make a copy of the database and delete all dates that you don't need. It's a bit rough but does the job.

StefanoMenichetti commented 3 years ago

Ok thank you for quick answer, I'll try with the R hydrogeo package, reading data directly on midvatten spatalite db by Rsqlite package. At soon, Stefano