Projection File properties

Diese ArcGIS 3.0-Dokumentation wurde archiviert und wird nicht mehr aktualisiert. Inhalt und Links sind möglicherweise veraltet. Verwenden Sie die aktuelle Dokumentation.

Zusammenfassung

The Describe function returns the following properties for projection files.

For a projection file, the Describe dataType property returns a value of "PrjFile".

Eigenschaften

EigenschaftErläuterungDatentyp
spatialReference
(Schreibgeschützt)

The SpatialReference class instance of the projection file.

SpatialReference

Codebeispiel

Projection file properties example

The following stand-alone script displays some SpatialReference class properties for a projection 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))