Hello Renaud,

To create a random set of locations in a SpatialPolygonsDataFrame, did 
you try to use the function *spsample*() from package sp?
See: 
http://www.dpi.inpe.br/gilberto/tutorials/software/R-contrib/sp/html/spsample.html
In your case, you would specify type="random".

Cheers,
Emmanuel


Le 18/06/2011 20:50, lancelot a écrit :
> Dear all,
>
> How can I draw a random set of locations within the borders of a 
> SpatialPolygonsDataFrame? I'd like something similar to function 
> runifpoint in package spatstat.
>
> All the best,
>
> Renaud


-- 
*Emmanuel Blondel*
GIS Consultant

Geographic Information Systems
in Agronomy - Environment -Fisheries
Email: emmanuel.blondel1@gmail.com - Emmanuel.Blondel@fao.org
Phone: +33 (0) 6 45 97 87 52

	[[alternative HTML version deleted]]

