<?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: How can I get the database for a layer based on the CIMFeatureDatasetDataConnection (GetDataConnection)? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-the-database-for-a-layer-based-on/m-p/877116#M5473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//assume that the first layer of the map is a FeatureLayer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var featLayer = MapView.Active.Map.GetLayersAsFlattenedList()[0] as FeatureLayer;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; await QueuedTask.Run(() =&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var fc = ((FeatureLayer)featLayer).GetFeatureClass();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var gdb = fc.GetDatastore() as Geodatabase;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Do something with the gdb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2015 22:01:09 GMT</pubDate>
    <dc:creator>CharlesMacleod</dc:creator>
    <dc:date>2015-08-17T22:01:09Z</dc:date>
    <item>
      <title>How can I get the database for a layer based on the CIMFeatureDatasetDataConnection (GetDataConnection)?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-the-database-for-a-layer-based-on/m-p/877115#M5472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if it's possible to get the actual geodatabase through the BasicFeatureLayer.GetDataConnection() method, which (can) return a CIMFeatureDatasetDataConnection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found, that when working with a filegdb, I can get the path for the fgdb. The path I can use in return to create a new Geodatabase object. If I try to do the same with an enterprise gdb, I can retrieve only the connection string. Even though I can use the connection string to create a new ConnectionProperies object, the object can not be used to open a Geodatabase. If I try this, I can some type of time-out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm now wondering, if there's an easier way to get the underlying Geodatabase object for a feature layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2015 17:11:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-the-database-for-a-layer-based-on/m-p/877115#M5472</guid>
      <dc:creator>ChristophSpoerri</dc:creator>
      <dc:date>2015-08-16T17:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the database for a layer based on the CIMFeatureDatasetDataConnection (GetDataConnection)?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-the-database-for-a-layer-based-on/m-p/877116#M5473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//assume that the first layer of the map is a FeatureLayer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var featLayer = MapView.Active.Map.GetLayersAsFlattenedList()[0] as FeatureLayer;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; await QueuedTask.Run(() =&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var fc = ((FeatureLayer)featLayer).GetFeatureClass();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var gdb = fc.GetDatastore() as Geodatabase;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Do something with the gdb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 22:01:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-the-database-for-a-layer-based-on/m-p/877116#M5473</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2015-08-17T22:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the database for a layer based on the CIMFeatureDatasetDataConnection (GetDataConnection)?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-the-database-for-a-layer-based-on/m-p/877117#M5474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charles,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the info. This was exactly what I was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Aug 2015 12:25:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-get-the-database-for-a-layer-based-on/m-p/877117#M5474</guid>
      <dc:creator>ChristophSpoerri</dc:creator>
      <dc:date>2015-08-23T12:25:56Z</dc:date>
    </item>
  </channel>
</rss>

