<?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 List Datasets in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674818#M52215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my opinion, the documentation screenshot you posted is a documentation bug, or the reflection of a software bug in documentation.&amp;nbsp; The behavior you see with arcpy.ListDatasets() is expected, and I would argue correct.&amp;nbsp; Datasets are container "data sets," e.g., feature dataset, raster dataset, mosaic dataset, parcel fabric, and others.&amp;nbsp; A feature class isn't a dataset, but in a general sense it is a "data set."&amp;nbsp; There is an Abbott and Costello skit in there somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where the bug, as I see it, comes into play is with the ArcPy Describe object.&amp;nbsp; When describing a feature class, the datasetType property and dataType property both return the same value.&amp;nbsp; That same is true when describing feature datasets.&amp;nbsp; Interestingly enough, the same is also true for topologies and every other dataset I have tried.&amp;nbsp; Which raises the question, why have two properties instead of just one?&amp;nbsp; One would think a non-dataset wouldn't support the datasetType property, but it does, and that causes confusion as to what exactly a dataset is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I won't even get started on "Geo."&amp;nbsp; I have been pushing for them to either clearly define it or remove it because its current implementation makes no sense at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2016 23:40:38 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2016-06-20T23:40:38Z</dc:date>
    <item>
      <title>ArcPy List Datasets</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674808#M52205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm an ArcPy neophyte/beginner - and this might be a stupid question, but I simply want to return a list of all the contents in a .gdb.&amp;nbsp; When I run the arcpy,listdatasets("*","Feature") function, it appears to work (no errors reported), but I do not 'see' anything.&amp;nbsp; I&amp;nbsp; used it with the 'print' function as well (using the example code provided in the help - copied below)&amp;nbsp; - but I still don't see anything.&amp;nbsp; Where does it go?&amp;nbsp; I only need to see it print to screen so I can copy/paste it....&lt;/P&gt;&lt;P&gt;B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="kn" style="color: blue; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="nn" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="n" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="o" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;env&lt;/SPAN&gt;&lt;SPAN class="o" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;workspace&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="o" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="s" style="color: #a31515; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;"c:/data"&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="c" style="color: green; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;# Print to the Interactive window all the feature datasets in the&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="c" style="color: green; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;# workspace that start with the letter &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="c" style="color: green; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="n" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;datasets&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="o" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="n" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="o" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;ListDatasets&lt;/SPAN&gt;&lt;SPAN class="p" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #a31515; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;"C*"&lt;/SPAN&gt;&lt;SPAN class="p" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="s" style="color: #a31515; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;"Feature"&lt;/SPAN&gt;&lt;SPAN class="p" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="k" style="color: blue; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="n" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;dataset&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="ow" style="color: blue; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="n" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;datasets&lt;/SPAN&gt;&lt;SPAN class="p" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="color: blue; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print&lt;/SPAN&gt;&lt;SPAN class="p" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;dataset&lt;/SPAN&gt;&lt;SPAN class="p" style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 12px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 02:21:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674808#M52205</guid>
      <dc:creator>BrianEddy</dc:creator>
      <dc:date>2016-06-20T02:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy List Datasets</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674809#M52206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which Python IDE are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 04:18:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674809#M52206</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-06-20T04:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy List Datasets</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674810#M52207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think what you want is ListFeatureClasses&amp;nbsp; &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/ListFeatureClasses/03q300000023000000/" title="http://resources.arcgis.com/en/help/main/10.2/index.html#/ListFeatureClasses/03q300000023000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;"List all feature classes in a geodatabase, including any within feature datasets" which is shown on that page, but I used the "raw" path name instead&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
import os

arcpy.env.workspace = r"c:\_temp"

datasets = arcpy.ListDatasets(feature_type='feature')
datasets = [''] + datasets if datasets is not None else []

for ds in datasets:
&amp;nbsp; for fc in arcpy.ListFeatureClasses(feature_dataset=ds):
&amp;nbsp;&amp;nbsp;&amp;nbsp; path = os.path.join(arcpy.env.workspace, ds, fc)
&amp;nbsp;&amp;nbsp;&amp;nbsp; print path&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you are new to python and I'm assuming the forums, I'll suggest a couple other links to get you started on the right foot.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/migration-blogpost/1070" target="_blank"&gt;Posting Code blocks in Esri GeoNet&lt;/A&gt;​&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this shows how you can format you python code in the forum to make it easier for you and others to follow&lt;/LI&gt;&lt;LI&gt;Suggest that when you start using python to use the&amp;nbsp;&amp;nbsp; r:"c:\youpath" formatiin.&amp;nbsp; It is a personal choice of course, but it typically is easier to read.&amp;nbsp; There are many thread on the subject, but &lt;A href="https://community.esri.com/migration-blogpost/55463" target="_blank"&gt;Filenames and file paths in Python&lt;/A&gt;​ is a good starting point&lt;/LI&gt;&lt;LI&gt;in fact, &lt;A href="https://community.esri.com/migrated-users/3116" target="_blank"&gt;Dan Patterson&lt;/A&gt;​ a lot of other good info on his blog &lt;A href="https://community.esri.com/migration-blogpost/55413" target="_blank"&gt;The ...py... links&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;You may want to move your post to the &lt;A href="https://community.esri.com/space/2145" target="_blank"&gt;Python&lt;/A&gt;​ area...if you need help with that, one of us can help.&amp;nbsp; But that would be a good place to post these types of questions since more monitor that location&lt;/LI&gt;&lt;LI&gt;If you find posts helpful, you can mark them as such, and then choose the once that best answers your question and mark it correct.&amp;nbsp; It help everyone when questions are closed out.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I hope this help, but if not, reply with what issues you are having, version you are using, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:27:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674810#M52207</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2021-12-12T04:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy List Datasets</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674811#M52208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may be listing the wrong type of object ... see the list available&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/listdatasets.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/listdatasets.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;ListDatasets—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, install an IDE like pythonwin or pyscripter, the builtin IDE isn't great&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In interactive mode with one shapefile in pythonwin&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy
&amp;gt;&amp;gt;&amp;gt; arcpy.env.workspace = "f:/temp"
&amp;gt;&amp;gt;&amp;gt; ds = arcpy.ListFeatureClasses()
&amp;gt;&amp;gt;&amp;gt; for d in ds:
...&amp;nbsp; print(d)
...
x.shp
&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt; print(len(ds))
1
&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In arcmap's IDE&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy
&amp;gt;&amp;gt;&amp;gt; arcpy.env.workspace = "F:/temp"
&amp;gt;&amp;gt;&amp;gt; d = arcpy.ListFeatureClasses()
&amp;gt;&amp;gt;&amp;gt; for i in d:
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(i)
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
x.shp
&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt; print(len(d))
1
&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;P&gt;If nothing prints out nothing was found, so you should really check for it before you run through any loops&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:27:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674811#M52208</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T04:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy List Datasets</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674812#M52209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rebecca - some good points, I'll be sure to follow....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 19:27:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674812#M52209</guid>
      <dc:creator>BrianEddy</dc:creator>
      <dc:date>2016-06-20T19:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy List Datasets</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674813#M52210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan. It worked.&amp;nbsp; I'm a bit confused tho' - if there are different functions for features, rasters and tables, then what is a 'Dataset'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 19:28:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674813#M52210</guid>
      <dc:creator>BrianEddy</dc:creator>
      <dc:date>2016-06-20T19:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy List Datasets</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674814#M52211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="searchresult-title" style="padding-bottom: 0.3125rem; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 1.95313rem; color: #007ac2;"&gt;dataset&lt;/P&gt;&lt;OL style="list-style-position: inside; font-size: 0.9375rem; list-style-type: none;"&gt;&lt;LI&gt;&lt;SPAN style="margin-bottom: 0.775rem;"&gt;&lt;SPAN class="dictionary-taxonomy"&gt;[data management]&lt;/SPAN&gt; Any collection of related data, usually grouped or stored together.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;A href="http://support.esri.com/sitecore/content/support/Home/other-resources/gis-dictionary/term/dataset" title="http://support.esri.com/sitecore/content/support/Home/other-resources/gis-dictionary/term/dataset"&gt;Esri Support GIS Dictionary&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 19:34:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674814#M52211</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-06-20T19:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy List Datasets</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674815#M52212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brian... a good place to bookmark is just the documentation, then you can navigate to Arcpy to find the syntax for methods, properties and the like.&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/documentation/" title="http://desktop.arcgis.com/en/documentation/"&gt;Documentation | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;There is one for ArcMap and for Pro which are more or less the same.&amp;nbsp; Also Geoprocessing has a link to Tool Reference should you want to incorporate the functionality of an ArcToolbox tool directly within a script. &lt;/P&gt;&lt;P&gt;Every link (almost) has scripting syntax and then you can go to my Py Links blog post where I keep a running list of changes to arcmap and pro as they would affect script functionality.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 19:58:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674815#M52212</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-06-20T19:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy List Datasets</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674816#M52213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are working on listing geographic data, I suggest using the &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-data-access/walk.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcPy Data Access Walk &lt;/A&gt;function.&amp;nbsp; The ArcPy Walk function mimics the form and function of Python's &lt;A href="https://docs.python.org/2/library/os.html#os.walk" rel="nofollow noopener noreferrer" target="_blank"&gt;os.walk&lt;/A&gt; function, the standard way of listing file system contents.&amp;nbsp; ArcPy Walk can even be coupled with ArcPy Describe to print the geodatabase contents and data type:&lt;/P&gt;&lt;P&gt;import os&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;gdb = #path to geodatabase
walk = arcpy.da.Walk(gdb)
for dirpath, dirnames, filenames in walk:
&amp;nbsp;&amp;nbsp;&amp;nbsp; if dirpath != gdb:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(dirpath)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "{:&amp;lt;30s}{}".format(os.path.relpath(dirpath, gdb), desc.datatype)
&amp;nbsp;&amp;nbsp;&amp;nbsp; for file in filenames:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filepath = os.path.join(dirpath, file)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(filepath)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "{:&amp;lt;30s}{}".format(os.path.relpath(filepath, gdb), desc.datatype)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:27:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674816#M52213</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-12T04:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy List Datasets</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674817#M52214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FWIW, I've often found arcpy's definition of "dataset" a little confusing. For example, the arcpy.Describe() "Dataset type" property will return any of these:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/208401_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I use arcpy.ListDatasets() on a workspace with a bunch of tables and a single &lt;EM&gt;feature&lt;/EM&gt; dataset, only the feature dataset is returned. I do agree with &lt;A href="https://community.esri.com/migrated-users/3420"&gt;Joshua Bixby&lt;/A&gt; that arcpy.da.Walk() is the most consistent way to list everything (with the added benefit of being able to "drill down" into feature datasets).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to summarize, my concept (and please correct me if I am mistaken!) is that a "dataset" in ArcGIS is any of the things listed in the graphic above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Micah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 22:21:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674817#M52214</guid>
      <dc:creator>MicahBabinski</dc:creator>
      <dc:date>2016-06-20T22:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy List Datasets</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674818#M52215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my opinion, the documentation screenshot you posted is a documentation bug, or the reflection of a software bug in documentation.&amp;nbsp; The behavior you see with arcpy.ListDatasets() is expected, and I would argue correct.&amp;nbsp; Datasets are container "data sets," e.g., feature dataset, raster dataset, mosaic dataset, parcel fabric, and others.&amp;nbsp; A feature class isn't a dataset, but in a general sense it is a "data set."&amp;nbsp; There is an Abbott and Costello skit in there somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where the bug, as I see it, comes into play is with the ArcPy Describe object.&amp;nbsp; When describing a feature class, the datasetType property and dataType property both return the same value.&amp;nbsp; That same is true when describing feature datasets.&amp;nbsp; Interestingly enough, the same is also true for topologies and every other dataset I have tried.&amp;nbsp; Which raises the question, why have two properties instead of just one?&amp;nbsp; One would think a non-dataset wouldn't support the datasetType property, but it does, and that causes confusion as to what exactly a dataset is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I won't even get started on "Geo."&amp;nbsp; I have been pushing for them to either clearly define it or remove it because its current implementation makes no sense at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 23:40:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674818#M52215</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-06-20T23:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy List Datasets</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674819#M52216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Geo... what about toolbox and tool ? whats'up with that?&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/dataset-properties.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/dataset-properties.htm"&gt;Dataset properties—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 00:05:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674819#M52216</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-06-21T00:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy List Datasets</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674820#M52217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ha, yeah, forgot about those.&amp;nbsp; The many lives of datasets; unfortunately, the meaning is context specific, and sometimes the context only seems to be in the developers' heads.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 03:12:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674820#M52217</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-06-21T03:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy List Datasets</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674821#M52218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joshua - this is extremely helpful! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 13:08:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674821#M52218</guid>
      <dc:creator>BrianEddy</dc:creator>
      <dc:date>2016-06-22T13:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy List Datasets</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674822#M52219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess my original question wasn't so stupid afterall.&amp;nbsp; It's been a long while since I dabbled in this kind of stuff - interesting to see some things haven't changed much when it comes to defining classes/objects in libraries like ArcPy/Python....I thought it would have been much cleaner by now &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 13:11:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674822#M52219</guid>
      <dc:creator>BrianEddy</dc:creator>
      <dc:date>2016-06-22T13:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy List Datasets</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674823#M52220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Dan.&amp;nbsp; I don't know how often I'll be here - I'm not really working with ArcPy/Python as much as I'd like, rather, only use it for scripting/batch processing when I have something large to run (usu. raster analyses/models).&amp;nbsp; Great to have this forum - and great to see you staying on top of it all for us! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 13:14:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-list-datasets/m-p/674823#M52220</guid>
      <dc:creator>BrianEddy</dc:creator>
      <dc:date>2016-06-22T13:14:36Z</dc:date>
    </item>
  </channel>
</rss>

