View source: R/genRandomPntsByGrd.R
genRandomPntsByGrd | R Documentation |
This function generate random points inside polygons based on distance constraints. The function is based on spatstat::rSSI.
genRandomPntsByGrd(x, r, field, env.grass, do.PointsOnSurface = TRUE, dist, save.path = NULL, quiet = TRUE, seed = 12345)
x |
object of class sf |
r |
rsater layer object |
field |
field of x object for rasterisation |
env.grass |
setting for GRASS GIS initiation |
do.PointsOnSurface |
if TRUE than points on surface are generated for missed objects. Default: TRUE |
dist |
minimum distance between points |
save.path |
full path to store the result. Default: NULL |
quiet |
no outputs in console. Default: TRUE |
seed |
number to determine the randomness. Default: 12345 |
... |
additional parameters for spatstat::rSSI-function |
Randomly sampled points of class sf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.