Sample a single SpatVector polygon at a target density in "samples / acre".

sample.by.poly(
  p,
  n.pts.per.ac = 1,
  min.samples = 5,
  sampling.type = "regular",
  p4s = NULL
)

Arguments

p

SpatVector containing a single polygon feature

n.pts.per.ac

numeric, sampling density in "points per acre"

min.samples

integer, enforced minimum number of samples per polygon

sampling.type

sampling.type character, sampling type passed to terra::spatSample()

p4s

output from terra::crs()

Value

SpatVector of sample points

Author

D.E. Beaudette