<?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 ArcGIS Pro SDK 2.0: Open Geodatabase by path in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-0-open-geodatabase-by-path/m-p/730564#M144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With ArcGIS Pro SDK 1.4 I could do this:&lt;/P&gt;&lt;PRE class="line-numbers language-csharp"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Geodatabase&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;geodatabasePath&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;geodatabasePath&lt;/SPAN&gt; can be path of FGDB or SDE file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I know that now there are constructor overloads for FGDB and SDE. But the problem is that I don't know which database type will be presented by&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;geodatabasePath&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I create an instance of the Geodatabase by path that can be either path of FGDB or SDE file? Or maybe there is some method that can say what geodatabase type presented by a path?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jul 2017 07:35:00 GMT</pubDate>
    <dc:creator>MaxMax2</dc:creator>
    <dc:date>2017-07-03T07:35:00Z</dc:date>
    <item>
      <title>ArcGIS Pro SDK 2.0: Open Geodatabase by path</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-0-open-geodatabase-by-path/m-p/730564#M144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With ArcGIS Pro SDK 1.4 I could do this:&lt;/P&gt;&lt;PRE class="line-numbers language-csharp"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Geodatabase&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;geodatabasePath&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;where &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;geodatabasePath&lt;/SPAN&gt; can be path of FGDB or SDE file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I know that now there are constructor overloads for FGDB and SDE. But the problem is that I don't know which database type will be presented by&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;geodatabasePath&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I create an instance of the Geodatabase by path that can be either path of FGDB or SDE file? Or maybe there is some method that can say what geodatabase type presented by a path?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 07:35:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-0-open-geodatabase-by-path/m-p/730564#M144</guid>
      <dc:creator>MaxMax2</dc:creator>
      <dc:date>2017-07-03T07:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro SDK 2.0: Open Geodatabase by path</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-0-open-geodatabase-by-path/m-p/730565#M145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max&lt;/P&gt;&lt;P&gt;This is a peace of code from snippets (look at notes):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2Fesri%2Farcgis-pro-sdk%2Fwiki%2FProSnippets-Raster" target="_blank"&gt;https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Raster&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV data-pjax-container=""&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN&gt;// Create a FileGeodatabaseConnectionPath using the path to the gdb. 
// Note: This can be a path to a .sde file.&lt;/SPAN&gt;&lt;SPAN&gt;FileGeodatabaseConnectionPath&lt;/SPAN&gt; &lt;SPAN&gt;geodatabaseConnectionPath&lt;/SPAN&gt; = &lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;FileGeodatabaseConnectionPath&lt;/SPAN&gt;(&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;Uri&lt;/SPAN&gt;(&lt;SPAN&gt;&lt;SPAN&gt;@"C:\Temp\rasters.gdb"&lt;/SPAN&gt;&lt;/SPAN&gt;));&lt;SPAN&gt;// Create a new Geodatabase object using the FileGeodatabaseConnectionPath.&lt;/SPAN&gt;&lt;SPAN&gt;Geodatabase&lt;/SPAN&gt; &lt;SPAN&gt;geodatabase&lt;/SPAN&gt; = &lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;Geodatabase&lt;/SPAN&gt;(&lt;SPAN&gt;geodatabaseConnectionPath&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:51:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-2-0-open-geodatabase-by-path/m-p/730565#M145</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2021-12-12T16:51:30Z</dc:date>
    </item>
  </channel>
</rss>

