在vc++中用GDAL读取tif文件中任意一点的高程值

时间:2020-12-13 07:41:26
【文件属性】:
文件名称:在vc++中用GDAL读取tif文件中任意一点的高程值
文件大小:9.27MB
文件格式:ZIP
更新时间:2020-12-13 07:41:26
GDAL,tif int main(int argc, char* argv[]) { int num_iamge_size=0; BYTE *pafScanblock1; //开辟缓存区 char *file_path_name="C:/webservices/data/srtm/chinaclip.tif"; GDALDataset *poDataset; //GDAL数据集 GDALAllRegister(); //注册所有的驱动 poDataset = (GDALDataset *) GDALOpen(file_path_name, GA_ReadOnly );

网友评论

  • 作用不大,仅仅测试点点
  • 读取tif格式的DEM文件,显示ERROR 4: `1114merge1.tif' does not exist in the file system, and is not recognised as a supported dataset name.请问是为什么?
  • 内容简单,作用不大
  • 可以直接运行,不过不知道是不是作者故意把RasterIO里的nRow和nCol用反了,其它都没问题。
  • 名不副实。