ArcGIS Python 坐标系信息

#############################################################

import arcpy

import os

from arcpy import env

import math

 

env.overwriteOutput = True

shp_sheet = arcpy.GetParameterAsText(0)
sr = arcpy.Describe(shp_sheet).spatialReference
arcpy.AddMessage("sr.type:"+sr.type)
arcpy.AddMessage("sr.datumName:"+sr.datumName)
arcpy.AddMessage("sr.name:"+sr.name)
arcpy.AddMessage("sr.PCSCode:"+str(sr.PCSCode))
arcpy.AddMessage("sr.PCSName:"+sr.PCSName)
arcpy.AddMessage("sr.projectionName:"+sr.projectionName)
arcpy.AddMessage("sr.projectionCode:"+str(sr.projectionCode))
arcpy.AddMessage("sr.GCSCode:"+str(sr.GCSCode))
arcpy.AddMessage("sr.GCSName:"+sr.GCSName)
arcpy.AddMessage("sr.spheroidName:"+sr.spheroidName)
arcpy.AddMessage("sr.type:"+sr.type)

投影信息如下:

sr.type:Projected
sr.datumName:
sr.name:Xian_1980_3_Degree_GK_Zone_35
sr.PCSCode:2359
sr.PCSName:Xian_1980_3_Degree_GK_Zone_35
sr.projectionName:Transverse_Mercator
sr.projectionCode:43006
sr.GCSCode:0
sr.GCSName:
sr.spheroidName:
sr.type:Projected

地理坐标系如下:

消息
执行: 脚本 Export_Output_2_矩形接幅表
开始时间: Wed May 08 19:40:33 2019
正在运行脚本 脚本...
sr.type:Geographic
sr.datumName:D_Xian_1980
sr.name:GCS_Xian_1980
sr.PCSCode:0
sr.PCSName:
sr.projectionName:
sr.projectionCode:0
sr.GCSCode:4610
sr.GCSName:GCS_Xian_1980
sr.spheroidName:Xian_1980
sr.type:Geographic
Completed script 脚本...
成功 在 Wed May 08 19:40:33 2019 (经历的时间: 0.00 秒)

 

上一篇:Zynq NOR FLASH 烧写失败


下一篇:ZYNQ7000 FSBL加载启动代码详解