dst_band->RasterIO(GF_Write, 0, 0, quad1_scans, quad1_pixels, outarr[0], quad1_scans, quad1_pixels, GDT_Float32, 0, 0);
时间: 2024-06-12 22:07:09 浏览: 11
This line of code is using the RasterIO function to write data to a raster band in the destination dataset.
GF_Write: This is a flag indicating that we want to write data to the band.
0, 0: These are the starting pixel and line values in the band where we want to write the data.
quad1_scans, quad1_pixels: These are the width and height of the data we want to write (in pixels and lines).
outarr[0]: This is the array of data we want to write to the band. It must be the same size as quad1_scans * quad1_pixels.
quad1_scans, quad1_pixels: These are the width and height of the data we want to write (in pixels and lines).
GDT_Float32: This is the data type of the data we are writing. In this case, it is 32-bit floating point data.
0, 0: These are the x and y offsets in the source data where we want to start reading the data. Since we are writing data, these values are not used.
相关推荐
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![xlsx](https://img-home.csdnimg.cn/images/20210720083732.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)