CoordinateTransform.py
613 Bytes
# coding=utf-8
#author: 4N
#createtime: 2021/8/9
#email: nheweijun@sina.com
# from osgeo import osr
# class CoordinateTransform:
#
# def transform:
# origin = osr.SpatialReference()
# origin.ImportFromWkt(image.GetProjection())
# target = osr.SpatialReference()
#
#
# target = origin.CloneGeogCS()
# band_count = image.RasterCount
# band: Band = image.GetRasterBand(1)
# count = band.GetOverviewCount()
# tran = osr.CoordinateTransformation(origin, target)
#
# nodatavalue = band.GetNoDataValue()