nets draw-samples¶
Creates a random uniform sample of points based on the extent of a polygon or raster.
usage: nets draw-samples [-h] [-o path] [--per-sqkm count] [-n count] [--bbox]
[--of driver] [--crs CRS]
extent
positional arguments:
extent Raster or vector file to draw samples from within.
optional arguments:
-o path Path to the output point-format vector (default: None)
--per-sqkm count Number of samples to raw per square kilometer.
Mutually exclusive to -n. (default: 2.0)
-n count, --n-samples count
Number of samples to draw. Mutually exclusive to
--per-sqkm. (default: None)
--bbox Draw samples from the extent bounding box instead of
from within valid data locations. (default: False)
--of driver Output vector driver format. (default: GPKG)
--crs CRS Output vector coordinate reference system. (default:
None)