gdal, gdalconst from affine import Affine ds = gdal.Open(ファイルパス, gdalconst.GA_ReadOnly) if ds is None: raise FileNotFoundError(errno.ENOENT, None,ファイルパス) geotransform = ds.GetGeoTransform() affine = Affine.from_gdal(*geotransform) original_image = ds.GetRasterBand(1).ReadAsArray() col, row = ~affine * (float(経度), float(緯度)) original_image[int(row)][int(col)]