dtcc.Raster.burn_polygons(poly_values: tuple, all_touched: bool = True) → Raster Burn polygons into a raster. Parameters:¶ raster : RasterThe input raster. poly_values : tuple¶A tuple of (polygon, value) pairs to burn into the raster. all_touched : bool, optional¶Whether to rasterize all pixels touched by the polygon, or just those whose center is within the polygon. Defaults to True. Returns:¶ A new raster with the polygons burned in. Return type:¶ Raster