ninic

导航

2019年9月17日 #

python 读取矢量文件

摘要: #导入包 from osgeo import ogr #打开文件(False - read only, True - read/write) filename = "文件名.shp" ds = ogr.Open(filename, False) #获取第一个图层 layer = ds.GetLaye 阅读全文

posted @ 2019-09-17 17:29 ninic 阅读(3534) 评论(0) 推荐(1) 编辑

python 读hdf4文件,再转写成一个tif文件

摘要: 1.安装pyhdf包 (1)通过此链接查找并下载pyhdf包:https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame(根据自己的系统及python版本选择对应的pyhdf包) (2)在dos命令行下切换到包所在的文件夹,并运行pip install 包名 阅读全文

posted @ 2019-09-17 16:44 ninic 阅读(3548) 评论(0) 推荐(0) 编辑

python gdal 写GeoTiff文件

摘要: 1.gdal数据类型 (1)GDT_Byte(int8) (2)GDT_UInt16 (3)GDT_Int16 (4)GDT_UInt32 (5)GDT_Int32 (6)GDT_Float32 (7)GDT_Float64 2.写GeoTiff文件 from osgeo import gdal # 阅读全文

posted @ 2019-09-17 15:08 ninic 阅读(8889) 评论(0) 推荐(1) 编辑

python gdal 读取栅格数据

摘要: 1.gdal包简介 gdal是空间数据处理的开源包,其支持超过100种栅格数据类型,涵盖所有主流GIS与RS数据格式,包括Arc/Info ASCII Grid(asc),GeoTiff (tiff),Erdas Imagine Images(img),ASCII DEM(dem) 等格式。 2.安 阅读全文

posted @ 2019-09-17 13:04 ninic 阅读(14831) 评论(11) 推荐(0) 编辑