pub fn write_block<T: RasterType>(
writer: &ParallelGeoTiffWriter,
data: ArrayView3<'_, T>,
window: ReadWindow,
) -> Result<()>Expand description
Writes a single block’s data (all bands) to the pre-created GeoTIFF.
This method is thread-safe: it acquires the writer’s mutex, opens the dataset on first call (then reuses it), writes all bands to the specified window, and returns. The dataset stays open for subsequent writes.
§Arguments
data- 3D array with shape (bands, rows, cols)window- The read window defining where this block belongs in the output