Arcgis之栅格数据转投影转换(84转2000)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Arcgis之栅格数据转投影转换(84转2000)相关的知识,希望对你有一定的参考价值。

参考技术A 案例:将栅格(.tif)格式数据的投影信息由84坐标系转换为2000坐标系

场景: 想要将data.tif格式数据的投影信息转换为2000坐标系并输出为data_srs.tif

脚本:Python脚本示范

def ProjectionTransformation_WGS84To2000(src_data, dst_data):

    arcpy.env.workspace = r'C:/Users/Administrator/Documents/ArcGIS/Default.gdb'

    # src_sr = arcpy.SpatialReference("WGS 1984")

    src_sr = arcpy.SpatialReference("WGS 1984 UTM Zone 48N")

    # dst_sr = r"prj/China Geodetic Coordinate System 2000.prj"

    dst_sr = arcpy.SpatialReference("CGCS2000 3 Degree GK CM 114E")

    print(src_sr.name, dst_sr.name)

    # 创建投影转换

    CustomGeoTransformation = "GEOGTRAN[METHOD['Geocentric_Translation'],PARAMETER['X_Axis_Translation',''],PARAMETER['Y_Axis_Translation',''],PARAMETER['Z_Axis_Translation','']]"

    arcpy.CreateCustomGeoTransformation_management("WGS84_TO_CGCS2000",

                                                   src_sr,

                                                   dst_sr,

                                                   CustomGeoTransformation)

    arcpy.ProjectRaster_management(src_data,

                                   dst_data,

                                   dst_sr,

                                   "BILINEAR",

                                   "#",

                                   "WGS84_TO_CGCS2000",

                                   "#",

                                   src_sr)

ProjectionTransformation_WGS84To2000(r'data.tif', r'data_srs.tif')

Arcgis之栅格数据转换

参考技术A 案例1:栅格(tif)数据转.img格式数据

场景: 想要将 data1.tif、data2.tif 格式数据转成 .img 格式数据

脚本:Python脚本示范

def RasterToOtherFormat(datalist, output, format):

    arcpy.env.workspace = r'C:/Users/Administrator/Documents/ArcGIS/Default.gdb'

arcpy.RasterToOtherFormat_conversion(datalist, output, format)

RasterToOtherFormat("data1.tif, data2.tif", "output", "IMAGINE")

以上是关于Arcgis之栅格数据转投影转换(84转2000)的主要内容,如果未能解决你的问题,请参考以下文章

wgs84和cgcs2000坐标转换

arcgis坐标转换

GGA数据转成wgs84

Arcgis之栅格数据转矢量数据

arcgis 坐标系未定义 导出 84坐标系

怎样用ARCGIS把wgs84坐标转成cgcs2000坐标?