【问题标题】:How to convert png to GeoTif如何将 png 转换为 GeoTiff
【发布时间】:2015-08-05 06:59:55
【问题描述】:

我想使用 c# 或 python 将我的 png 转换为 GeoTif ,我需要什么?我怎么能实现它? (我可以使用 arcpy)

谢谢。

【问题讨论】:

    标签: python arcgis arcpy geotiff


    【解决方案1】:

    使用 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 完成,因为它需要人工干预。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-01
      • 2021-11-02
      • 1970-01-01
      • 2019-09-19
      • 2019-02-02
      相关资源
      最近更新 更多