<?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: Feature Dataset - Workspace or not Workspace? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/feature-dataset-workspace-or-not-workspace/m-p/1318701#M72093</link>
    <description>&lt;P&gt;Of course it won't be. It didn't make sense in the first place. I just used it as the example of how people are confused by Feature Dataset capabilities of sometimes being Workspace and sometimes not.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2023 15:02:41 GMT</pubDate>
    <dc:creator>SzymAdamowski</dc:creator>
    <dc:date>2023-08-15T15:02:41Z</dc:date>
    <item>
      <title>Feature Dataset - Workspace or not Workspace?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-dataset-workspace-or-not-workspace/m-p/1318171#M72033</link>
      <description>&lt;P&gt;At some stage using different ArcGIS PRO tools and python functions I got confused: is Feature Dataset also a Workspace or not? I think now, after some reading I'm closer to understanding its dual nature (you see, not only light), but I'd appreciate further comments, corrections or maybe there's somewhere already definitive explanation of an issue that I've missed.&lt;/P&gt;&lt;P&gt;Let's start with definition of the workspace (source: &lt;A href="https://support.esri.com/en-us/gis-dictionary/workspace" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/gis-dictionary/workspace&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SzymAdamowski_0-1691932594277.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77997iC534204C4D50AE24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SzymAdamowski_0-1691932594277.png" alt="SzymAdamowski_0-1691932594277.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So clearly there are 2 definitions, not exactly fully overlapping. And to my understanding, Feature Dataset is workspace according to the definition [1] (stated explicitly), and is not workspace according to the definition [2]. Now let's move to practical consequences. Below is the structure of test geodatabase:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SzymAdamowski_1-1691932849764.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77998iBBA527125A3743C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SzymAdamowski_1-1691932849764.png" alt="SzymAdamowski_1-1691932849764.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It contains Geodatabase, which has 1 Feature Dataset (FD1), one feature class in FD1 (FeatInFD1) and one feature class directly in Geodatabase (FeatOutside). Let's apply some python tools.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.env.workspace=r'E:\GIS_DATA\ArcGIS\WIW\WIW.gdb' #obviously works, Geodatabase is a workspace according to both definitions
arcpy.ListWorkspaces() #FD1 feature dataset not listed, it is not Workspace in this meaning&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So apparently arcpy.ListWorkspaces uses [2] definition. Feature dataset is not returned,so it &lt;STRONG&gt;is not Workspace&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;And now something else:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.env.workspace=r'E:\GIS_DATA\ArcGIS\WIW\WIW.gdb\FD1' #hey, this time feature dataset is workspace!
arcpy.ListFeatureClasses() #it will return ['FeatInFD1']&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For &lt;EM&gt;arcpy.env.workspace&lt;/EM&gt; feature dataset &lt;STRONG&gt;is Workspace&lt;/STRONG&gt; in meaning of definition [1] - it can be set and used with arcpy.ListWhatever set of functions. Confusing? Well for me it was (and still is).&lt;/P&gt;&lt;P&gt;It looks like feature dataset is mostly treated in line with definition [2]. More examples:&lt;/P&gt;&lt;P&gt;- arcpy.Describe Workspace Properties will not work with feature dataset&lt;/P&gt;&lt;P&gt;- script tool will not accept feature dataset if script parameter Data Type is set to Workspace&lt;/P&gt;&lt;P&gt;On the other hand help of arcpy.Walk function states that: (&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/data-access/walk.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/data-access/walk.htm&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;dirnames&lt;/SPAN&gt; is a list of names of subdirectories and other workspaces in &lt;SPAN class=""&gt;dirpath&lt;/SPAN&gt;.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;filenames&lt;/SPAN&gt; is a list of names of nonworkspace contents in &lt;SPAN class=""&gt;dirpath&lt;/SPAN&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class=""&gt;and yes, feature dataset is returned in dirnames rather than filenames (so it is workspace this time). On the same side there is this error (&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-00826-00850-000838.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-00826-00850-000838.htm&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SzymAdamowski_3-1691934644613.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78000iF546D85861AAAD18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SzymAdamowski_3-1691934644613.png" alt="SzymAdamowski_3-1691934644613.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;It is only a bit of comfort to me that even Esri employees seemed to be confused sometimes (source: &lt;A href="https://community.esri.com/t5/geoprocessing-questions/feature-dataset-as-environment-workspace/m-p/467153/thread-id/15680" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/geoprocessing-questions/feature-dataset-as-environment-workspace/m-p/467153/thread-id/15680&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SzymAdamowski_2-1691934055168.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77999i4086E28233774F06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SzymAdamowski_2-1691934055168.png" alt="SzymAdamowski_2-1691934055168.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I know it might be too late to change conventions, functions names or attributes but it would be great to put some clear explanations somewhere in the help. Also I have a feeling that dual definition of Workspace could also affect other structures like toolboxes and raster dataset - these ones not tested though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Aug 2023 14:23:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-dataset-workspace-or-not-workspace/m-p/1318171#M72033</guid>
      <dc:creator>SzymAdamowski</dc:creator>
      <dc:date>2023-08-13T14:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Dataset - Workspace or not Workspace?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-dataset-workspace-or-not-workspace/m-p/1318185#M72034</link>
      <description>&lt;P&gt;&lt;A href="https://support.esri.com/en-us/bug/cannot-set-workspace-to-a-feature-dataset-when-the-work-nim089681" target="_self"&gt;NIM089681 from 2013 Will Not Be Addressed&lt;/A&gt;&lt;/P&gt;&lt;P&gt;resolution will not be addressed&lt;/P&gt;</description>
      <pubDate>Sun, 13 Aug 2023 20:30:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-dataset-workspace-or-not-workspace/m-p/1318185#M72034</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-08-13T20:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Dataset - Workspace or not Workspace?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/feature-dataset-workspace-or-not-workspace/m-p/1318701#M72093</link>
      <description>&lt;P&gt;Of course it won't be. It didn't make sense in the first place. I just used it as the example of how people are confused by Feature Dataset capabilities of sometimes being Workspace and sometimes not.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 15:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/feature-dataset-workspace-or-not-workspace/m-p/1318701#M72093</guid>
      <dc:creator>SzymAdamowski</dc:creator>
      <dc:date>2023-08-15T15:02:41Z</dc:date>
    </item>
  </channel>
</rss>

