Prj ファイル プロパティ

概要

Describe 関数は Prj ファイルに対して次のプロパティを返します。

Prj ファイルが返す dataType は PrjFile です。

プロパティ

プロパティ説明データ タイプ
spatialReference
(読み取り専用)

The SpatialReference class instance of the .prj file

SpatialReference

コードのサンプル

Prj File properties example (stand-alone script)

The following stand-alone script displays some SpatialReference class properties for a prj file.

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))

このトピックの内容