spatiallyStratifiedSample
Spatially stratified sampling of a DataFrame containing spatial data.
DataFrame containing spatial data to be sampled. Must contain a geometryColumn column.
SpatiallyStratifiedSampling rate between 0 and 1
Number of partitions to divide the data into. If not a perfect square, the number of
partitions in each dimension will be rounded to the nearest integer.
Column containing the geometry data. Default is “geometry”
Seed for sampling the data
Parameters
Dataset[Row]
DataFrame containing spatial data to be sampled. Must contain a geometryColumn column.
Double
SpatiallyStratifiedSampling rate between 0 and 1
Int
Number of partitions to divide the data into. If not a perfect square, the number of partitions in each dimension will be rounded to the nearest integer.
String
Column containing the geometry data. Default is “geometry”
Long
Seed for sampling the data

