Bug report #12808

Select by location doesn't work when 'Use selected features only' checkbox is selected but no there is no selection

Added by Kilian Steinkohl almost 9 years ago. Updated almost 7 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Processing/QGIS
Affected QGIS version:master Regression?:
Operating System: Easy fix?:
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:20904

Description

When using 'Select by location' with 'Use selected features only' checked, the results are not as expected.
When trying to create a new selection based on the intersection of a polygon layer with an existing selection the progress bar starts to move infinitely from one side to the other and the current selection is cleared without creating the expected new selection.

Maybe this is a result of fixing bug report #10873 (8502d11). It seems that the current selection is cleared before the new selection is created. This is obviously contradictory if 'Use selected features only' is checked.

History

#1 Updated by Jakob Hvitnov almost 9 years ago

I am not able to reproduce this on 2.9.0
However the behavior you describe with the progress bar moving from side to side, can be triggered by enabling "use only selected features" while actually not having any selection in the input layer.
It seems the first issue has already been solved on 2.9.0, but it wouuld be a good idea to not have "use only selected features" availiable as an option if features are actually selected.

#2 Updated by Giovanni Manghi almost 9 years ago

  • Affected QGIS version changed from 2.8.2 to master
  • Target version set to Future Release - Lower Priority
  • Subject changed from Select by location doesn't work with 'Use selected features only' checkbox to Select by location doesn't work when 'Use selected features only' checkbox is selected but no there is no selection

However the behavior you describe with the progress bar moving from side to side, can be triggered by enabling "use only selected features" while actually not having any selection in the input layer.

exactly, this is the real issue.

#3 Updated by Kilian Steinkohl almost 9 years ago

You are correct, the tool is working as intended. My bug report was based on a misconception of the "use only selected features" checkbox. I thought the checkbox applied to the first layer (the layer from which features are selected), so I could narrow down an existing selection. In fact it applies to the second layer (the layer which is checked for intersections with the first one).
As a matter of fact, this is pretty obvious considering the GUI, but as I was expecting a different funcionality, it got me confused.

Concerning the issue with the progress bar, I think there is already a ticket (#6018).

#4 Updated by Saber Razmjooei almost 9 years ago

  • Status changed from Open to Closed

#5 Updated by Giovanni Manghi almost 7 years ago

The "ftools" category is being removed from the tracker, changing the category of this ticket to "Processing/QGIS" to not leave the category orphaned.

Also available in: Atom PDF