R/burn_sparse.R
materialise_chunk.RdExpands the sparse two-table representation into a dense coverage fraction matrix. Primarily for visualisation and testing.
materialise_chunk(x, id = NULL, type = c("matrix", "vector"))a "controlledburn" object from burn_sparse()
integer polygon id to materialise, or NULL (default) for all
character, one of "matrix" (default) or "vector"
A numeric matrix (nrow × ncol) or vector (length nrow*ncol) of coverage fractions. Values range from 0 (outside) to 1 (fully inside).