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

Rainer M Krug r.m.krug at gmail.com
Thu Nov 4 14:28:56 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/04/2010 05:49 PM, Hamish wrote:
> Rainer wrote:
>> Just another idea - an iterative approach in a script,
>> which is using v.random and to discard all points outside
>> the polygon and to repeat it until you have the number of
>> random points you need. This could be made faster, by using a
>> MASK based on the polygon which has been grown to
>> encapsulate the whole polygon, and to use on this setup
>> r.random, also iterative.
> 
> 
> see the v.random.cover script already in grass-Addons for this.
> :-)

I always love to find out if my ideas have already been implemented in
GRASS or other software - it never happened to me with proprietary software.

> 
> r.random points would be not-as-random, as results will all be
> aligned to the raster grid, possibly introducing aliasing
> problems.

True - I haven't considered that.

Thanks,

Rainer

> 
> 
> Hamish
> 
> 
> 
>       


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:        +33 - (0)9 53 10 27 44
Cell:       +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:      Rainer at krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzS+2cACgkQoYgNqgF2egrB1ACfQsY4hgnFJ2YZNEoStezQicQT
uM4Anj8HhsIEHKwl69+S7EAJY+I+cjU2
=8wWS
-----END PGP SIGNATURE-----


More information about the grass-user mailing list