Bug report #18315

Select by location: selection in the wrong layer

Added by Etienne MORO about 2 years ago. Updated about 2 years ago.

Status:Closed
Priority:High
Assignee:Victor Olaya
Category:Processing/QGIS
Affected QGIS version:2.18.17 Regression?:Yes
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:26205

Description

I have a project containing 2 different layers with similar names ('Communes-shp' and 'Communes par population') and the same source file for the 2 layers (communes-shp.shp). I try a select by location on the 'Communes-shp' layer where the features contain 'Chef-lieu' layer (a third layer). The result is not a selection in the 'Communes-shp' layer but the selection is done in the 'Communes par population' layer.
You'll find attached my project with the shp files to test the problem.

Select by location.zip (58.1 KB) Etienne MORO, 2018-03-02 02:29 PM

History

#1 Updated by Nyall Dawson about 2 years ago

  • Status changed from Open to Feedback

Please test with 3.0

#2 Updated by Etienne MORO about 2 years ago

In QGIS 3.00, there's no problem the result is in the correct layer.

#3 Updated by Giovanni Manghi about 2 years ago

  • Resolution set to fixed/implemented
  • Status changed from Feedback to Closed

#4 Updated by Etienne MORO about 2 years ago

  • Status changed from Closed to Reopened

I've just tested with 2.18.18, and there's still the same problem. I thought it was corrected, but it seems not.

#5 Updated by Alexander Bruy about 2 years ago

  • Status changed from Reopened to Closed

It was fixed in master which has all necessary code changes to make it work.

Also available in: Atom PDF