<?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: Bug with TIN properties (arcpy) ? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/bug-with-tin-properties-arcpy/m-p/11666#M953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much for your answer ! I searched for hours...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Aug 2013 10:17:13 GMT</pubDate>
    <dc:creator>BenjaminKulling</dc:creator>
    <dc:date>2013-08-08T10:17:13Z</dc:date>
    <item>
      <title>Bug with TIN properties (arcpy) ?</title>
      <link>https://community.esri.com/t5/python-questions/bug-with-tin-properties-arcpy/m-p/11664#M951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm stuck with an annoying error, when I try to make use of TIN properties in the Python window in ArcCatalog, I have the following message: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;AttributeError: DescribeData spatialReference method does not exist&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(The original output is in french, the actual english version may differ)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the very simple code I use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env
env.workspace = "C:/temp/"
tin = "C:/temp/test"
SR = arcpy.Describe(tin).spatialReference&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone see an obvious mistake here? I'm VERY new to python scripting in ArcGIS &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcGIS 10.1 Help (&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018v0000000r000000" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018v0000000r000000&lt;/A&gt;&lt;SPAN&gt;) there is the following statement :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The Describe function returns the following properties for TINs. Dataset Properties are also supported.&lt;BR /&gt;A TIN returns a dataType of "Tin".&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm running ArcGIS Desktop Basic 10.1 (SP1) on Windows 7 Pro 64-bit ; and I've manually added C:\Python27\ArcGIS10.1 in PATH.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:29:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/bug-with-tin-properties-arcpy/m-p/11664#M951</guid>
      <dc:creator>BenjaminKulling</dc:creator>
      <dc:date>2021-12-10T20:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with TIN properties (arcpy) ?</title>
      <link>https://community.esri.com/t5/python-questions/bug-with-tin-properties-arcpy/m-p/11665#M952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No mistake, you are correct.&amp;nbsp; there is a bug in the describe function (on version 10.0, 10.1 and 10.2)&amp;nbsp; Hopefully they will address it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the tech support info if it helps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;[#NIM088547&amp;nbsp; Using the describe properties to pull the spatial reference on a TIN fails with AttributeError: DescribeData: Method SpatialReference does not exist.]

I added this incident to the list of affected users. In the bug report, I also added the properties extent, MExtent, and ZExtent to the list of unsupported dataset properties for TINs.

For a work-around, this is cumbersome, but you could create a new shapefile or feature class, setting the spatial reference to that of the TIN, then query the spatial reference properties of the new shapefile. For instance:

relPath = os.path.dirname (sys.argv[0]) # script path tin = os.path.join (relPath, "lido_TIN") arcpy.CreateFeatureclass_management (relPath, "abc.shp", "POINT", spatial_reference = tin) shp = os.path.join (relPath, "abc.shp") desc = arcpy.Describe (shp) arcpy.AddMessage ("spatialReference: " + str (desc.spatialReference.name)) arcpy.Delete_management (shp)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:29:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/bug-with-tin-properties-arcpy/m-p/11665#M952</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2021-12-10T20:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bug with TIN properties (arcpy) ?</title>
      <link>https://community.esri.com/t5/python-questions/bug-with-tin-properties-arcpy/m-p/11666#M953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much for your answer ! I searched for hours...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 10:17:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/bug-with-tin-properties-arcpy/m-p/11666#M953</guid>
      <dc:creator>BenjaminKulling</dc:creator>
      <dc:date>2013-08-08T10:17:13Z</dc:date>
    </item>
  </channel>
</rss>

