def setThematic(imageFile):
# Use GDAL to open the dataset
ds = gdal.Open(imageFile, gdal.GA_Update)
# Itearte through the image bands
for bandnum in range(ds.RasterCount):
# Get the image band
band = ds.GetRasterBand(bandnum+1)
# Define the meta-data for the LAYER_TYPE
band.SetMetadataItem('LAYER_TYPE', 'thematic')
# This is the first part of the script to
# be executed.
ruleBasedClassifier.py 文件源码
python
阅读 18
收藏 0
点赞 0
评论 0
评论列表
文章目录