Perform sampling at a constant density over all polygons within a SpatialPolygonsDataFrame object.

constantDensitySampling(x, polygon.id='pID', parallel=FALSE, cores=NULL, 
n.pts.per.ac=1, min.samples=5, sampling.type='regular')

Arguments

x

a SpatialPolygonsDataFrame object in a projected CRS with units of meters

polygon.id

name of attribute in x that contains a unique ID for each polygon

parallel

invoke parallel back-end

cores

number of CPU cores to use for parallel operation

n.pts.per.ac

requested sampling density in points per acre (results will be close)

min.samples

minimum requested number of samples per polygon

sampling.type

sampling type

Value

a SpatialPointsDataFrame object

Author

D.E. Beaudette

Note

This function expects that x has coordinates associated with a projected CRS and units of meters.

See also