[GRASS-user] Re: Constrain the output of v.random

Markus Metz markus.metz.giswork at googlemail.com
Thu Nov 4 06:10:16 EDT 2010


On Thu, Nov 4, 2010 at 11:00 AM, leonidas <leonidas_liakos at yahoo.gr> wrote:
>
> I need the defined "Number of points to be created" to be inside the
> polygons. If I follow your method some of them will remain out of the
> polygons. I need to get 10 points that will fall inside the polygons NOT to
> define 10 points and then select only the points that they are in polygons.

You could first convert the polygons to a raster map and then use
r.random to generate the defined "Number of points to be created" as
vector points using the rasterized polygons as cover map.

Markus M


More information about the grass-user mailing list