Prj 文件属性

此 ArcGIS 2.8 文档已 存档,并且不再对其进行更新。 其中的内容和链接可能已过期。 请参阅最新文档

摘要

Describe 函数可返回 Prj 文件的以下属性。

Prj 文件可返回 “PrjFile”dataType

属性

属性说明数据类型
spatialReference
(只读)

prj 文件的 SpatialReference 类实例

SpatialReference

代码示例

Prj 文件属性示例(独立脚本)

以下独立脚本显示了一些 prj 文件的 SpatialReference 类属性。

import arcpy

# Create a Describe Object from a prj file.
#
desc = arcpy.Describe("C:\data\mexico.prj")

# Print some properties of the SpatialReference class object.
#
SR = desc.spatialReference
print("Name:            " + SR.name)
print("Type:            " + SR.type)
print("isHighPrecision: " + str(SR.isHighPrecision))
print("scaleFactor:     " + str(SR.scaleFactor))

在本主题中