https://issues.qgis.org/https://issues.qgis.org/favicon.ico2014-09-18T12:45:52ZQGIS Issue TrackingQGIS Application - Bug report #11215: "Random points inside polygons (variable)" progress error halts algorithmhttps://issues.qgis.org/issues/11215?journal_id=554052014-09-18T12:45:52Zd d
<ul></ul><p>Perhaps a "better" solution is:</p>
<p><code>total = (pointCount / 100.0) * 100</code></p>
<p>This appears to avoid the issue with dividing by 0 without having to add a constant. The algorithm runs with the above modification, but as before, use at own risk.</p> QGIS Application - Bug report #11215: "Random points inside polygons (variable)" progress error halts algorithmhttps://issues.qgis.org/issues/11215?journal_id=554072014-09-18T22:49:43ZAlexander Bruy
<ul><li><strong>OS version</strong> deleted (<del><i>Mint 17 (Ubuntu 14.04)</i></del>)</li><li><strong>Operating System</strong> deleted (<del><i>Linux</i></del>)</li><li><strong>Category</strong> changed from <i>Python plugins</i> to <i>94</i></li></ul><p>Please provide sample dataset, I can't reproduce this with my test data.</p> QGIS Application - Bug report #11215: "Random points inside polygons (variable)" progress error halts algorithmhttps://issues.qgis.org/issues/11215?journal_id=554122014-09-19T04:17:01Zd d
<ul><li><strong>File</strong> <a href="/attachments/download/7830/vector.7z">vector.7z</a> added</li></ul><p>Alexander Bruy wrote:</p>
<blockquote>
<p>Please provide sample dataset, I can't reproduce this with my test data.</p>
</blockquote>
<p>I've attached an example file ("vector.7z") that produces the error I reported.</p>
<p>For the Number Field, use the "SAMP300" column (or "SAMP100", "SAMP30", "SAMP10" columns). Each of these columns is integer-based. I also use a minimum distance of 1000. You should get the same error as I reported. Modifying your script as I suggested appears to fix the problem, but it might have unintended consequences.</p> QGIS Application - Bug report #11215: "Random points inside polygons (variable)" progress error halts algorithmhttps://issues.qgis.org/issues/11215?journal_id=554132014-09-19T08:07:51ZAlexander Bruy
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Fixed in changeset <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/cc307578eb83bd454b389d0e5f8c3e68021cc4fe" title="[processing] avoid division by zero in random points alg (fix #11215)">cc307578eb83bd454b389d0e5f8c3e68021cc4fe</a>.</p> QGIS Application - Bug report #11215: "Random points inside polygons (variable)" progress error halts algorithmhttps://issues.qgis.org/issues/11215?journal_id=554142014-09-19T08:10:05ZAlexander Bruy
<ul><li><strong>Resolution</strong> set to <i>fixed/implemented</i></li></ul> QGIS Application - Bug report #11215: "Random points inside polygons (variable)" progress error halts algorithmhttps://issues.qgis.org/issues/11215?journal_id=620772015-06-07T02:32:00ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Category</strong> changed from <i>94</i> to <i>Processing/Core</i></li></ul>