Bug report #12154

Select by location does not work for feature completly within the selection feature

Added by Marie Silvestre about 9 years ago. Updated almost 7 years ago.

Status:Closed
Priority:Severe/Regression
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 #:20347

Description

When trying to select features in layer A that intersect features in layer B, the tool "Select by Location" (from menu "Vector / Research Tools") does not work in one particular case : when a feature in layer B is completely within a feature in layer A. The checkbox "Include input features completely within the selection features" has no effect. (see test layers attached)

This was working in QGIS 2.4 but not since 2.6...
This is working fine via the processing menu in 2.4, 2.6 and master.

test_layers.tar.gz - Test layers A and B (1.08 KB) Marie Silvestre, 2015-02-08 08:01 AM

Associated revisions

Revision dc156c8d
Added by Martin Dobias about 9 years ago

Fix #12154 - select by location not working when A covers B

The combination of touches+overlaps+contains is not enough if input layer
(where selection should be done) is completely within selection layer.

I have reintroduced "intersects" predicate and made it default.

The processing toolbox has an improved (fixed?) version but fTools
were not adapted at the same time

History

#1 Updated by Giovanni Manghi about 9 years ago

  • Target version set to Version 2.8
  • Category changed from Vectors to 44
  • Priority changed from Normal to Severe/Regression

as far I can see on my qgis master it doesn't work in Processing either.

Anyway is a regression as is was working on qgis 2.4

#2 Updated by Martin Dobias about 9 years ago

  • Status changed from Open to Closed

#3 Updated by Marie Silvestre about 9 years ago

Thanks, it's now working perfectly but there is a typo on the word "intersect" in the fTools "Select by location" dialog: it is written "Include input features that insersect the...".
(I hope it's the right place to report it...)

#4 Updated by Martin Dobias about 9 years ago

Well spotted - thanks! Fixed in 53f534

#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