Ubuntu的遥感图像库GDAL使用

来源:互联网 发布:延边电视台网络 编辑:程序博客网 时间:2024/04/30 11:58

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

首先是安装,

sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstablesudo apt update sudo apt upgradesudo 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

原创粉丝点击