【发布时间】:2015-08-05 06:59:55
【问题描述】:
我想使用 c# 或 python 将我的 png 转换为 GeoTif ,我需要什么?我怎么能实现它? (我可以使用 arcpy)
谢谢。
【问题讨论】:
标签: python arcgis arcpy geotiff
我想使用 c# 或 python 将我的 png 转换为 GeoTif ,我需要什么?我怎么能实现它? (我可以使用 arcpy)
谢谢。
【问题讨论】:
标签: python arcgis arcpy geotiff
使用 Python 和 ArcPy 调用Raster to Other Format 工具:
import arcpy
arcpy.env.workspace = "/path/to/directory"
arcpy.RasterToOtherFormat_conversion("in_images/myimage.png","out_images","TIFF")
这当然假设您的 PNG 已经进行了地理参考。如果没有,您需要先对其进行地理配准。这通常使用 ArcMap 的Georeferencing toolbar 完成,因为它需要人工干预。
【讨论】: