<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AttributeError: DescribeData: Method spatialReference does not exist in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/attributeerror-describedata-method/m-p/93425#M7304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did "provide feedback" prior to posting this.&amp;nbsp; My previous test used 10.2.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Feb 2016 17:59:34 GMT</pubDate>
    <dc:creator>RandyBurton</dc:creator>
    <dc:date>2016-02-20T17:59:34Z</dc:date>
    <item>
      <title>AttributeError: DescribeData: Method spatialReference does not exist</title>
      <link>https://community.esri.com/t5/python-questions/attributeerror-describedata-method/m-p/93423#M7302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was experimenting with the following code provided on the &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-functions/prj-file-properties.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Prj File properties documentation page&lt;/A&gt; using Desktop 10.3.1 and received an attribute error message.&amp;nbsp; With version 10.2 the code ran without error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;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:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " + SR.name
print "Type:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " + SR.type
print "isHighPrecision: " + str(SR.isHighPrecision)
print "scaleFactor:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " + str(SR.scaleFactor)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears that with version 10.3, you should reference the shape file (shp) and not the projection (prj) file for Describe to work properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:34:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attributeerror-describedata-method/m-p/93423#M7302</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2021-12-10T23:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: DescribeData: Method spatialReference does not exist</title>
      <link>https://community.esri.com/t5/python-questions/attributeerror-describedata-method/m-p/93424#M7303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just test with 10.2.2 and received an error with that too.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; Python Shell, prompt 1, line 7&lt;/P&gt;&lt;P&gt;AttributeError: DescribeData: Method spatialReference does not exist&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I suggest going to the&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" height="73" src="https://community.esri.com/legacyfs/online/187007_pastedImage_2.png" style="width: 131px; height: 72.5372px;" width="131" /&gt;&lt;/P&gt;&lt;P&gt;on the help page so they can update the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Feb 2016 17:15:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attributeerror-describedata-method/m-p/93424#M7303</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-02-20T17:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: DescribeData: Method spatialReference does not exist</title>
      <link>https://community.esri.com/t5/python-questions/attributeerror-describedata-method/m-p/93425#M7304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did "provide feedback" prior to posting this.&amp;nbsp; My previous test used 10.2.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Feb 2016 17:59:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attributeerror-describedata-method/m-p/93425#M7304</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2016-02-20T17:59:34Z</dc:date>
    </item>
  </channel>
</rss>

