sample_from_polygons: Sample points from polygons

View source: R/utils.R

sample_from_polygonsR Documentation

Sample points from polygons

Description

Given a set of polygons, randomly sample points from within polygons.

Usage

sample_from_polygons(polygons, sampleRate)

Arguments

polygons

SpatVector object containing polygons

sampleRate

Number of points per square kilometer to sample

Value

SpatVector of sampled points


tabrasel/TerrainWorksUtils documentation built on June 1, 2025, 8:05 p.m.