[GRASS-user] Random points within a polygon?

hi,

I want to use v.random but I noticed it puts random points within the
region, can I limit this to a polygon?

Thanks

Gary
--
View this message in context: http://n2.nabble.com/Random-points-within-a-polygon-tp4759856p4759856.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Gary wrote:

I want to use v.random but I noticed it puts random points
within the region, can I limit this to a polygon?

Yes, see the v.random.cover addon script from wiki addons.

Also there are many options available from the R statistics "sp"
library. (see the R page in the grass wiki, once loaded do
library(sp); demo(gallery).

And of course the "spgrass6" R-GRASS interface to transfer data.

Hamish

On Thursday 18 March 2010, Hamish wrote:

Gary wrote:
> I want to use v.random but I noticed it puts random points
> within the region, can I limit this to a polygon?

Yes, see the v.random.cover addon script from wiki addons.

Also there are many options available from the R statistics "sp"
library. (see the R page in the grass wiki, once loaded do
library(sp); demo(gallery).

And of course the "spgrass6" R-GRASS interface to transfer data.

Here is an example of exactly what Hamish suggested:

http://casoilresource.lawr.ucdavis.edu/drupal/node/644

Note that you can substitute readOGR() with readVECT6() to read in a grass
vector file.

Cheers,
Dylan

--
Dylan Beaudette
Soil Resource Laboratory
http://casoilresource.lawr.ucdavis.edu/
University of California at Davis
530.754.7341

Brilliant! just what i need!

Thanks

Again :slight_smile:
--
View this message in context: http://n2.nabble.com/Random-points-within-a-polygon-tp4759856p4767962.html
Sent from the Grass - Users mailing list archive at Nabble.com.