<?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: Obtaining Featureclass names From SDE file path for adding to map in .net SDK in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1392214#M11200</link>
    <description>&lt;P&gt;The following should work. Could you pls try?&lt;/P&gt;&lt;P&gt;The &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic14577.html" target="_self"&gt;SQLSyntax parses&lt;/A&gt; the fully qualified dataset name to the db, owner, and dataset names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;IReadOnlyList&amp;lt;FeatureClassDefinition&amp;gt; featureClassDefinitions = geodatabase.GetDefinitions&amp;lt;FeatureClassDefinition&amp;gt;();
List&amp;lt;FeatureClassDefinition&amp;gt; filteredDefinitions = featureClassDefinitions.Where(def =&amp;gt;
{
SQLSyntax sqlSyntax = geodatabase.GetSQLSyntax();
(string dbName, string ownerName, string tableName) = sqlSyntax.ParseTableName(def.GetName());

return ownerName == "your_owner_name";
}).ToList();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Mar 2024 22:57:43 GMT</pubDate>
    <dc:creator>Aashis</dc:creator>
    <dc:date>2024-03-06T22:57:43Z</dc:date>
    <item>
      <title>Obtaining Featureclass names From SDE file path for adding to map in .net SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1391672#M11197</link>
      <description>&lt;P&gt;hi &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133" target="_blank"&gt;@GKmieliauskas&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882" target="_blank"&gt;@Wolf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;how can I filter the following featureNameslist in the geodatabase created using Oracle SDE which don't have access to user:&lt;/P&gt;&lt;P&gt;Geodatabase geodatabase = new Geodatabase(new DatabaseConnectionFile(new Uri("path to sde")));&lt;/P&gt;&lt;P&gt;var featureNameslist = geodatabase.GetDefinitions&amp;lt;FeatureClassDefinition&amp;gt;().Select(def =&amp;gt; def.GetName()).ToArray();&lt;/P&gt;&lt;P&gt;Just like in the catalog&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 06:28:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1391672#M11197</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2024-03-06T06:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining Featureclass names From SDE file path for adding to map in .net SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1392214#M11200</link>
      <description>&lt;P&gt;The following should work. Could you pls try?&lt;/P&gt;&lt;P&gt;The &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic14577.html" target="_self"&gt;SQLSyntax parses&lt;/A&gt; the fully qualified dataset name to the db, owner, and dataset names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;IReadOnlyList&amp;lt;FeatureClassDefinition&amp;gt; featureClassDefinitions = geodatabase.GetDefinitions&amp;lt;FeatureClassDefinition&amp;gt;();
List&amp;lt;FeatureClassDefinition&amp;gt; filteredDefinitions = featureClassDefinitions.Where(def =&amp;gt;
{
SQLSyntax sqlSyntax = geodatabase.GetSQLSyntax();
(string dbName, string ownerName, string tableName) = sqlSyntax.ParseTableName(def.GetName());

return ownerName == "your_owner_name";
}).ToList();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 22:57:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1392214#M11200</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2024-03-06T22:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining Featureclass names From SDE file path for adding to map in .net SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1392370#M11203</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/221628"&gt;@Aashis&lt;/a&gt;&amp;nbsp;for the reply,&lt;/P&gt;&lt;P&gt;The purpose to list feature classes from SDE is to add selected feature class to map. There are multiple owners in the sde, how will I know that which owner has access to the connected user of the SDE? Just like Catalog shows the accessible list of enterprise feature classes.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;IReadOnlyList&amp;lt;FeatureClassDefinition&amp;gt; featureClassDefinitions = geodatabase.GetDefinitions&amp;lt;FeatureClassDefinition&amp;gt;();
List&amp;lt;string&amp;gt; allOwnerNames = featureClassDefinitions.Select(def =&amp;gt;
{
    SQLSyntax sqlSyntax = geodatabase.GetSQLSyntax();
    (string dbName, string ownerName, string tableName) = sqlSyntax.ParseTableName(def.GetName());

    return ownerName;
}).ToList();

List&amp;lt;string&amp;gt; distinctOwnerNames = allOwnerNames.Distinct().ToList();&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 07 Mar 2024 06:54:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1392370#M11203</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2024-03-07T06:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining Featureclass names From SDE file path for adding to map in .net SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1392421#M11206</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/221628"&gt;@Aashis&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;how will I know that which owner has access to the connected user of the SDE?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 10:54:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1392421#M11206</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2024-03-07T10:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining Featureclass names From SDE file path for adding to map in .net SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1392558#M11207</link>
      <description>&lt;P&gt;I am presuming that you are trying to find the connected user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;DatabaseConnectionProperties connectionProperties= geodatabase.GetConnector() as DatabaseConnectionProperties;
string user = connectionProperties.User;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic6945.html" target="_self"&gt;DatabaseConnectionProperties &lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 14:50:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1392558#M11207</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2024-03-07T14:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining Featureclass names From SDE file path for adding to map in .net SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1392678#M11209</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/221628"&gt;@Aashis&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the reply. But the user and owner are not same.&amp;nbsp; Any user can have access to multiple owners.&lt;/P&gt;&lt;P&gt;In Catalog, it is filtered correctly, do you know any way to filter that?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 17:22:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1392678#M11209</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2024-03-07T17:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining Featureclass names From SDE file path for adding to map in .net SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1393344#M11215</link>
      <description>&lt;P&gt;In ArcGIS, &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-oracle/user-accounts-groups.htm" target="_self"&gt;user accounts determine who owns what data&lt;/A&gt;. User accounts also provide a way to control what type of access a person or client application has to a database or geodatabase and its datasets. ArcGIS generally recommends that the owner and schema have matching names.&lt;/P&gt;&lt;P&gt;The Catalog UI does the following -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// Get the currently logged user
DatabaseConnectionProperties connectionProperties= geodatabase.GetConnector() as DatabaseConnectionProperties;
string user = connectionProperties.User;

// Filter feature classes based on the user
IReadOnlyList&amp;lt;FeatureClassDefinition&amp;gt; featureClassDefinitions = geodatabase.GetDefinitions&amp;lt;FeatureClassDefinition&amp;gt;();
List&amp;lt;FeatureClassDefinition&amp;gt; filteredDefinitions = featureClassDefinitions.Where(def =&amp;gt;
{
	SQLSyntax sqlSyntax = geodatabase.GetSQLSyntax();
	(string dbName, string ownerName, string tableName) = sqlSyntax.ParseTableName(def.GetName());

	return ownerName == user;
}).ToList();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you find something else, please log a bug from tech support for further investigation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 14:34:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1393344#M11215</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2024-03-11T14:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Obtaining Featureclass names From SDE file path for adding to map in .net SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1394014#M11218</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/221628"&gt;@Aashis&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the reply,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;User accounts may have access to different owner's table which may not be owned by the user. In that case &lt;STRONG&gt;how to filter out only those tables&lt;/STRONG&gt; from the below &lt;STRONG&gt;featureClassDefinitions&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;IReadOnlyList&amp;lt;FeatureClassDefinition&amp;gt; featureClassDefinitions = geodatabase.GetDefinitions&amp;lt;FeatureClassDefinition&amp;gt;();&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The Catalog UI displays only accessible feature classes with or without List only object owned by connecting user checkbox.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 11:14:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/obtaining-featureclass-names-from-sde-file-path/m-p/1394014#M11218</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2024-03-11T11:14:26Z</dc:date>
    </item>
  </channel>
</rss>

