This tool can be used to create a new raster with the same spatial extent as an input vector file (base
). The user must specify the name of the base file, the value that the new grid will be filled with (out_val
; NoData if unspecified), and the data type (data_type
flag; options include 'double', 'float', and 'integer'). It is also necessary to specify a value for the optional grid cell size (cell_size
) input parameter.
new_raster_from_base_raster, raster_cell_assignment
def new_raster_from_base_vector(self, base: Vector, cell_size: float, out_val: float = float('nan'), data_type: str = "float") -> Raster: ...