Bug report #19296

Random Selection tool doesn't work correctly on a filtered layer

Added by Carolyn Krause over 6 years ago. Updated over 6 years ago.

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

Description

The Random Selection tool, when used on a filtered layer, selects fewer features than specified. For example, if you tell the tool to select 10 features in an filtered layer, it selects fewer than 10 features. My guess is that this tool doesn't recognize when a layer is filtered, so it's choosing 10 features of the unfiltered layer.

I found this issue in QGIS 2.18.10, 3.0.2 and 3.0.3. There's a question on GIS Stackexchange where the OP had this issue in QGIS 2.18.19. https://gis.stackexchange.com/q/287737/81764

History

#1 Updated by Carolyn Krause over 6 years ago

Issue persists in version 3.2.0

#2 Updated by Nyall Dawson over 6 years ago

  • Status changed from Open to Closed

Fixed in master/backported to 3.2

Also available in: Atom PDF