我需要知道如何创建虚拟栅格。我迭代了一个文件夹,其中包含一些二进制栅格(1,0)。我使用numpy.concatenate将这些栅格添加到一个numpy数组中。然后,我想创建一个虚拟栅格,使用连接的栅格数作为此栅格将拥有的波段数。), dimension)
rasterio/_io.pyx in rasterio._io.DatasetWriterBa
我正在使用rasterio将点的geopandas数据帧转换为geotif栅格。为此,我使用以下python代码: with rasterio.open("somepath/rasterized.tif", 'w+', **meta) as out: out.write_band(2, burned)
out_arr1