ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Prj File properties

  • Summary
  • Properties
  • Code sample

Summary

The Describe function returns the following properties for Prj Files.

A Prj File returns a dataType of "PrjFile".

Properties

PropertyExplanationData Type
spatialReference
(Read Only)

The SpatialReference class instance of the .prj file

SpatialReference

Code sample

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)

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal