打开QGIS对AIG文件进行检查
坐标系统unamed
发现我的AIG文件的坐标系统无法识别,也就是说明没有EPSG编号,但是该文件在QGIS中能够正常加载。...我是通过gdal读取tiff文件,然后使用下面代码获取的。...return dataset, gcs, pcs, extend, shape
def lonlat_to_xy(gcs, pcs, lon, lat):
'''
经纬度坐标转换为投影坐标...return coordinates[0], coordinates[1], coordinates[2]
def xy_to_lonlat(gcs, pcs, x, y):
'''
投影坐标转换为经纬度坐标...return row, col
except:
return -1, -1
def rowcol_to_xy(extend, row, col):
'''
图像坐标转换为投影坐标