Ubuntu的遥感图像库GDAL使用

xiaoxiao2021-02-28  82

由于为了拼接图像(大于几个G的),简单研究了一下遥感图像库GDAL的python版。

首先是安装,

sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable sudo apt update sudo apt upgrade sudo apt install gdal-bin python-gdal python3-gdal 其次是使用教程,参考:http://www.osgeo.cn/python_gdal_utah_tutorial/ch01.html

拼图步骤:

一、创建Driver的Name类型

二、创建一个Driver

三、读取Band

四、写入writeArray数据

五、保留缓存,写入硬盘

六、清理申请的Driver

分割代码:

https://github.com/ClearLee1018/gdal_read_images/blob/master/convertTM2Tiff.py

转载请注明原文地址: https://www.6miu.com/read-32069.html

最新回复(0)