genRandomPntsByGrd: Generate random points based on distance constraints

View source: R/genRandomPntsByGrd.R

genRandomPntsByGrdR Documentation

Generate random points based on distance constraints

Description

This function generate random points inside polygons based on distance constraints. The function is based on spatstat::rSSI.

Usage

genRandomPntsByGrd(x, r, field, env.grass, do.PointsOnSurface = TRUE,
  dist, save.path = NULL, quiet = TRUE, seed = 12345)

Arguments

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

Value

Randomly sampled points of class sf


raff-k/Lslide documentation built on March 29, 2022, 6:52 p.m.