Module sampling

Source
Expand description

Sampling and extraction methods. Sampling and extraction methods for RasterDataset.

This module contains methods for extracting values from raster blocks at vector points.

Functionsยง

assemble_block_results ๐Ÿ”’
Shared helper: assembles parallel block results into a BTreeMap. Generic over the key type (i16 or i64).
build_block_index_pipeline ๐Ÿ”’
Shared helper: builds the index-to-blocks pipeline. Returns (id_indices, blocks_to_process) from geometry data.
collect_points_for_block ๐Ÿ”’
Shared helper: collects pos/idx/pids for a given block ID.
make_rectangle ๐Ÿ”’
Shared helper: creates a Rectangle from buffer size.
sample_value ๐Ÿ”’
Samples a value from a 2D array at the given point using the specified method.
validate_buffer_size ๐Ÿ”’
Shared helper: validates buffer size against overlap size.