[R-sig-Geo] Generating Random Transects of Same Length
Pierre Racine
Pierre.Racine at sbf.ulaval.ca
Thu Feb 12 18:00:27 CET 2009
Hi,
Anybody knows a tool or algorythm (R, GRASS or ArcGIS Script, anything!)
to generate a number of random same length transects (e.g. 1000) within
the extent of a given polygon or raster?
I can't just create random point in the extent and joint hem two by two.
This would result in different length transects.
A simple algorythm would be:
-create a transect of a certain length from a random point and a random
angle
-reject any transect having an end falling outside the given extent
But there is chances that this takes years to run...
Thanks,
Pierre
Pierre.racine at sbf.ulaval.ca
More information about the R-sig-Geo
mailing list