zoukankan      html  css  js  c++  java
  • 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 秒)

  • 相关阅读:
    运算符重载
    简单函数template max
    const static extern
    python 关闭垃圾回收
    Easy and cheap cluster building on AWS backup
    [转] Maven更新父子模块的版本号, mvn versions:set
    [转] ansible批量执行命令展示
    HBase 批量删除表 disable_all drop_all
    自动添加 ssh key 到远程主机的脚本,应用sshpass和ssh-copy-id
    MongoDB ver 4 几个常用命令
  • 原文地址:https://www.cnblogs.com/gisoracle/p/10834081.html
Copyright © 2011-2022 走看看