Random Points in Polygons behaves unexpectedly #58737
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
What is the bug or the crash?
Although the on-screen description of this feature explains that a point is created for every feature in the source layer, the principle of least surprise would suggest that when the number of points to create is specified by a field that polygons with a null or zero value for the given value should be skipped. Otherwise one can end up with incorrect results if one does not notice this counter-intuitive behavior and removes the null entries. If there is some need for null points, it should be via checkbox which is unchecked by default if a field is used for the point count.
Steps to reproduce the issue
Select a polygon layer with a sparse numeric field and use said field as the point count for this tool.
Versions
Grenobile
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: