opengisch / qgis-actions-for-relations

A QGIS plugin enhancing relations by adding useful actions
https://plugins.qgis.org/plugins/actions_for_relations/
0 stars 1 forks source link

Filters placed on table aren't respected in other tools. #5

Open mapninja opened 2 years ago

mapninja commented 2 years ago

After creating a filtered view on a table by walking across a relation with AfR, the resulting "filter" on the table isn't respected by other table tools.

For instance, if you click on Select All (features) in the resulting filtered table, ALL records (without regard to the filter) are selected.

Ideally, rather than a filter, the tool would create a selection, which could then be used to "walk" across other relations, with the tool.

Here is the workflow to reproduce this issue:

https://github.com/mapninja/Earthsys144/blob/master/Labs/Week_04/Relations_in_QGIS.md

phidrho commented 1 year ago

Hi @mapninja,

this behavior is not related to this plugin, but instead to QGIS itself. But I'm not sure whether it's a bug or feature - if you want to "Select all" should it be limited only to current listings in table or entire layer.

But lets examine another example, let's say you activate filter Show Features Visible On Map - table is constantly updating results while you pan and move around map, should than button Select all select only what's currently on screen or entire layer - entire layer seems better approach to me - which is currently by default.

You can open a QGIS bug report for discussion on this, or send and email to QGIS-Developer mailing list.

Ideally, rather than a filter, the tool would create a selection, which could then be used to "walk" across other relations, with the tool.

I wouldn't agree on this, maybe to add selection to filtered features by default, but not to replace filter with selection, because if you have currently active Select tool you can click anywhere on map by mistake and that means that you'll lose your analysis results, or if you deselect features by mistake using Deselect all tool. And maybe you would sometimes like to "walk" other relations for only some of the listed results, than you can manually select only that features.

With filter - you have your results permanent this way, until you decide to close table or remove filter by yourself when it's not needed anymore.

Hint: You can always select all currently visible features (ie filtered features) in table by clicking top left corner - it's one more click but it's not so bad:

select all currently in table