Bug report #16211

Random Extract within Subsets saving only one subset

Added by Nicolas Karasiak over 7 years ago. Updated over 7 years ago.

Status:Rejected
Priority:Normal
Assignee:Victor Olaya
Category:Processing/QGIS
Affected QGIS version:2.18.3 Regression?:No
Operating System:ubuntu 16.04 Easy fix?:No
Pull Request or Patch supplied:No Resolution:duplicate
Crashes QGIS or corrupts data:No Copied to github as #:24121

Description

Hello,

I noticed a bug with the Random Extract within subsets (the saving tool, not the selection within subset).

When I chose to keep 50% of each subset, it only keeps one subset. The tool selection within subset works great, but we can't save it in batch...

I use qgis 2.18.3 on ubuntu 16.04.

Here's the log of the processing tool : processing.runalg("qgis:randomextractwithinsubsets","/tmp/test.shp","level3",1,50,"memory:")

subset_bug.7z - sqlite of subset for testing. Only keep subset 1, but should keep 2 and 3 too. (244 KB) Nicolas Karasiak, 2017-02-21 04:40 AM


Related issues

Duplicates QGIS Application - Bug report #10734: Random selection should select only inside defined subsets Closed 2014-06-26

History

#1 Updated by matteo ghetta over 7 years ago

Confirmed also in master and linux machine.

Other data used to test are in tests/testdata/points with field id2. Only one feature as result.

#2 Updated by Giovanni Manghi over 7 years ago

  • Easy fix? set to No
  • Regression? set to No

#3 Updated by Alexander Bruy over 7 years ago

  • Description updated (diff)
  • Resolution set to duplicate
  • Status changed from Open to Rejected

Duplicates #10734

#4 Updated by Alexander Bruy over 7 years ago

  • Duplicates Bug report #10734: Random selection should select only inside defined subsets added

Also available in: Atom PDF