Skip to content
Prev 5026 / 29559 Next

Generating Random Transects of Same Length

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