<?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: Getting feature classes in feature dataset in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-feature-classes-in-feature-dataset/m-p/774106#M750</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah my apologies &lt;A href="https://community.esri.com/migrated-users/294844"&gt;Alex Zlotin&lt;/A&gt;‌ missed your tag!&lt;BR /&gt;&lt;A href="https://community.esri.com/migrated-users/327767"&gt;Victor Tey&lt;/A&gt;&amp;nbsp;May have done some work in the Pro SDK space I’ve tagged him.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jun 2020 01:53:04 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-06-26T01:53:04Z</dc:date>
    <item>
      <title>Getting feature classes in feature dataset</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-feature-classes-in-feature-dataset/m-p/774103#M747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given a geodatabase and a feature dataset name, what is the proper way to get the names of all feature classes contained in the feature dataset? I can get the list of FeatureClassDefinitions of all feature classes in the geodatabase, open each feature class, call GetFeatureDataset method and see if the feature dataset name of the feature class&amp;nbsp; matches the input&amp;nbsp;&lt;SPAN&gt;feature dataset name. This looks like a very costly operation though. Thanks.&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2020 00:36:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-feature-classes-in-feature-dataset/m-p/774103#M747</guid>
      <dc:creator>AlexZlotin1</dc:creator>
      <dc:date>2020-06-26T00:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting feature classes in feature dataset</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-feature-classes-in-feature-dataset/m-p/774104#M748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/294844"&gt;Alex Zlotin&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could run a quick Python script once you set your workspace to your feature dataset. See links below.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-functions/listfeatureclasses.htm" title="https://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-functions/listfeatureclasses.htm"&gt;ListFeatureClasses—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/functions/listfeatureclasses.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/functions/listfeatureclasses.htm"&gt;ListFeatureClasses—ArcPy Functions | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2020 00:45:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-feature-classes-in-feature-dataset/m-p/774104#M748</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-06-26T00:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting feature classes in feature dataset</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-feature-classes-in-feature-dataset/m-p/774105#M749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please note that I am trying to achieve this in Pro SDK, not Python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2020 01:48:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-feature-classes-in-feature-dataset/m-p/774105#M749</guid>
      <dc:creator>AlexZlotin1</dc:creator>
      <dc:date>2020-06-26T01:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting feature classes in feature dataset</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-feature-classes-in-feature-dataset/m-p/774106#M750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah my apologies &lt;A href="https://community.esri.com/migrated-users/294844"&gt;Alex Zlotin&lt;/A&gt;‌ missed your tag!&lt;BR /&gt;&lt;A href="https://community.esri.com/migrated-users/327767"&gt;Victor Tey&lt;/A&gt;&amp;nbsp;May have done some work in the Pro SDK space I’ve tagged him.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2020 01:53:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-feature-classes-in-feature-dataset/m-p/774106#M750</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-06-26T01:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting feature classes in feature dataset</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-feature-classes-in-feature-dataset/m-p/774107#M751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;Look here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Geodatabase#obtaining-list-of-defintions-from-geodatabase" rel="nofollow noopener noreferrer" target="_blank"&gt;ProSnippets Geodatabase Obtaining List of Defintions from Geodatabase&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Geodatabase#obtaining-related-definitions-from-geodatabase" rel="nofollow noopener noreferrer" target="_blank"&gt;ProSnippets Geodatabase, Obtaining related definitions from geodatabase&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;piecing the bits together gives you what you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;//From the snippets...&lt;/SPAN&gt;

IReadOnlyList&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;FeatureDatasetDefinition&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; featureDatasetDefinitions &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; geodatabase&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetDefinitions&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;FeatureDatasetDefinition&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;bool&lt;/SPAN&gt; electionRelatedFeatureDatasets &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; featureDatasetDefinitions&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Any&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;definition &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; definition&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Contains&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Election"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;and&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;

FeatureDatasetDefinition featureDatasetDefinition &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; geodatabase&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetDefinition&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;FeatureDatasetDefinition&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"LocalGovernment.GDB.Address"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
IReadOnlyList&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;Definition&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; datasetsInAddressDataset &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; geodatabase&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetRelatedDefinitions&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;featureDatasetDefinition&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; DefinitionRelationshipType&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DatasetInFeatureDataset&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;



&lt;SPAN class="comment token"&gt;//put it together and you get...&lt;/SPAN&gt;
IReadOnlyList&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;Definition&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; fdsList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gdb&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetDefinitions&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;DatasetType&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FeatureDataset&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//get all the feature classes...&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;foreach&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; fdsDef &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; fdsList&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; defsInDataset &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gdb&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetRelatedDefinitions&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fdsDef&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; DefinitionRelationshipType&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DatasetInFeatureDataset&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
                
    &lt;SPAN class="keyword token"&gt;foreach&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; def &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; defsInDataset&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;//Or use LINQ .Where( d =&amp;gt; d.DatasetType ...&lt;/SPAN&gt;
       &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;def&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DatasetType &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; DatasetType&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FeatureClass&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
         &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; etc &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;

‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:40:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-feature-classes-in-feature-dataset/m-p/774107#M751</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2021-12-12T08:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting feature classes in feature dataset</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-feature-classes-in-feature-dataset/m-p/774108#M752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Charles! I saw the snippet but overlooked the GetRelatedDefinitionsMethod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2020 17:53:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-feature-classes-in-feature-dataset/m-p/774108#M752</guid>
      <dc:creator>AlexZlotin1</dc:creator>
      <dc:date>2020-06-26T17:53:56Z</dc:date>
    </item>
  </channel>
</rss>

