rasterize_like¶
- rasterize_like(like, polygons, values, nodata=-1)[source]¶
Rasterize polygon values like the given raster array.
This function uses
rasterio.features.rasterize()
under the hood and extends its functionality to:handle non-numeric data (such as arrays of string values), and
allow rasterizing multiple channels at once