Hi Chris,

Thanks for your help. I used all your suggestions and a combination of them and 
what works best for me seems to be the layer bounds approach even though my 
polygons are very irregular in shape. Luckily number of points I need to create 
is not so big, so I can check that they all fall inside polygons.

Have a good day,

Sébastien

> Le 25 mars 2023 à 04:16, chris hermansen via QGIS-User 
> <qgis-user@lists.osgeo.org> a écrit :
> 
> Andrea and list,
> 
> On Fri, Mar 24, 2023 at 5:00 PM Andrea Giudiceandrea via QGIS-User 
> <qgis-user@lists.osgeo.org <mailto:qgis-user@lists.osgeo.org>> wrote:
>> > Thomas Sebastien sebasapp at hotmail.com <http://hotmail.com/>
>> > Fri Mar 24 03:32:25 PDT 2023
>> 
>> > what works best for what I’m trying to achieve is dissolving the polygons 
>> > and placing random points in layer bounds
>> 
>> Hi Sebastien,
>> AFAIK, you don't need to dissolve the polygons before using them as 
>> input of the "Random points in layer bounds" algorithm: such algorithm 
>> correctly places the total chosen number n of random points even if the 
>> input N features/polygons are not dissolved.
>> 
> I believe I was the one who suggested the layer bounds approach.
> 
> Thomas Sebastian, you do not need to dissolve the polygons if you are only 
> interested in placing the random points within the layer bounds as Andrea 
> says.  If you have a non-rectangular dataset then your layer bounds could 
> result in points being placed outside the polygons in your dataset; you 
> should do the dissolve and place the points within the dissolved polygon.  If 
> like me you live in a rectangular / map-sheet-ish world then by all means 
> work in the layer bounds.
> 
> 
> -- 
> Chris Hermansen · clhermansen "at" gmail "dot" com
> 
> C'est ma façon de parler.
> _______________________________________________
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to