Converts a lulc_data_t table (with coordinates) to a SpatRaster.
Useful for spatial analysis and validation that requires raster format.
Arguments
- lulc_data
A
lulc_data_tobject or data.table with columns: id_coord, id_lulc, (optionally id_period)- coords_t
A coords_t object with coordinate information. Must have
epsgand optionallyresolutionattributes.- resolution
Numeric, raster resolution in CRS units. If NULL, attempts to infer from coords_t attributes or data spacing.