<?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: ArcPy Layer Class dataType values in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-layer-class-datatype-values/m-p/698487#M23142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;May be your solution is some combination of the describe object, more info &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Describe_object_properties/000v0000002n000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could try using the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;dataElementType&lt;/SPAN&gt;&lt;SPAN&gt; property?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This bit of python will give you all the data element types as long as they are not in a grouplayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;mxd = arcpy.mapping.MapDocument("CURRENT")
l = arcpy.mapping.ListLayers(mxd)
for al in l:
 d = arcpy.Describe(al)
 print d.dataelementtype&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 05:24:03 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2021-12-12T05:24:03Z</dc:date>
    <item>
      <title>ArcPy Layer Class dataType values</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-layer-class-datatype-values/m-p/698486#M23141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;On the Arcpy.mapping.Layer class help, it explains that ArcMap layers have a dataType property that stores a layer's source 'Type' like Shapefile, or Geodatabase, or SDE, Raster, etc.&amp;nbsp; I would like to see a full list of possible values for this dataType property but can't seem to find it in the help.&amp;nbsp; Anyone know where it is?&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Layer_properties/000v0000002t000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Layer_properties/000v0000002t000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For now, I mainly need to know how to specifically identify layers who sources are shapefile, personal geodatabase, file geodatabase, or SDE, since I'll need to handle each of these categories in different ways.&amp;nbsp; Also need to identify if a standalone table in an MXD is dbf, personal geodatabase, file geodatabase, or SDE.&amp;nbsp; Would be nice to be able to do this without having to create some complex string search on the layers datasource.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andrew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 13:40:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-layer-class-datatype-values/m-p/698486#M23141</guid>
      <dc:creator>AndrewRudin</dc:creator>
      <dc:date>2011-11-09T13:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy Layer Class dataType values</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-layer-class-datatype-values/m-p/698487#M23142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;May be your solution is some combination of the describe object, more info &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Describe_object_properties/000v0000002n000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could try using the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;dataElementType&lt;/SPAN&gt;&lt;SPAN&gt; property?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This bit of python will give you all the data element types as long as they are not in a grouplayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;mxd = arcpy.mapping.MapDocument("CURRENT")
l = arcpy.mapping.ListLayers(mxd)
for al in l:
 d = arcpy.Describe(al)
 print d.dataelementtype&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:24:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-layer-class-datatype-values/m-p/698487#M23142</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2021-12-12T05:24:03Z</dc:date>
    </item>
  </channel>
</rss>

