[Qgis-user] Placing random points

Árni Geirsson arni at alta.is
Fri Mar 24 01:13:33 PDT 2023


How about generating a large number of points into the N polygons, using
the tool available, then add an attribute to the points and generate
uniform random numbers into the attribute and keep only the n points with
the lowest random numbers?

Árni


On Thu, 23 Mar 2023 at 21:55, Andrea Giudiceandrea via QGIS-User <
qgis-user at lists.osgeo.org> wrote:

> Hi Sebastien,
> in addition to the suggestion given by Nyall Dawson, I would suggest you
> using the "Random points in layer bounds" algorithm: you just need to
> specify the total number of random points to be generated. The resulting
> layer will contain the specified number of points and such points will
> fall inside the polygons.
>
> It seems to me that the "Random points in extent" algorithm, suggested
> by Chris Hermansen, may not be suitable for your needs: while the
> resulting layer will contain the specified number of points, such points
> will fall inside the extent of the layer containing the polygons, so it
> is not guaranteed that such points will actually fall inside the polygons.
>
> Best regards,
>
> Andrea Giudiceandrea
> _______________________________________________
> QGIS-User mailing list
> QGIS-User at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230324/7e97e07a/attachment.htm>


More information about the QGIS-User mailing list