def georeference(self, scene, center):
if "latitude" not in scene and "longitude" not in scene:
if type(self.pScene) is TransverseMercator:
scene['latitude'] = self.pScene.lat
scene['longitude'] = self.pScene.lon
scene['altitude'] = 0
elif type(self.pScene) is not None:
wgs84 = Proj(init="EPSG:4326")
latlon = transform(self.pScene, wgs84, center[0], center[1], center[2])
scene['latitude'] = latlon[0]
scene['longitude'] = latlon[1]
scene['altitude'] = latlon[2]
评论列表
文章目录