<?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 to access .GDB folder on local machine from JAVA Runtime API? in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-access-gdb-folder-on-local-machine-from/m-p/1126680#M2550</link>
    <description>&lt;P&gt;It depends on where the gdb came from.&amp;nbsp; If it's a Runtime geodatabase for offline purposes it will certainly work.&lt;/P&gt;&lt;P&gt;If it's a geodatabase straight from ArcGIS Pro, then you will have issues.&lt;/P&gt;&lt;P&gt;If you explain a little about the workflow you are trying to achieve I'll point you in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Dec 2021 14:55:29 GMT</pubDate>
    <dc:creator>MarkBaird</dc:creator>
    <dc:date>2021-12-16T14:55:29Z</dc:date>
    <item>
      <title>How to access .GDB folder on local machine from JAVA Runtime API?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-access-gdb-folder-on-local-machine-from/m-p/1126592#M2549</link>
      <description>&lt;P&gt;Hi, I want to access a local .gdb folder from the java runtime API. Is it possible to do it directly, if no then what is to be done? I'm using the below code to access the GDB file(folder). I also tried putting the GDB into a zip file but the result was same:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;File geodatabaseFile = &lt;SPAN&gt;new &lt;/SPAN&gt;File(&lt;SPAN&gt;"C:&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;Users&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;gaura&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;Desktop&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;GeoDBSamples&lt;/SPAN&gt;&lt;SPAN&gt;\\&lt;/SPAN&gt;&lt;SPAN&gt;Delemont_ele" &lt;/SPAN&gt;+&lt;BR /&gt;        &lt;SPAN&gt;".gdb"&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;Geodatabase geodatabase = &lt;SPAN&gt;new &lt;/SPAN&gt;Geodatabase(geodatabaseFile.getAbsolutePath())&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;geodatabase.loadAsync()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;System.&lt;SPAN&gt;out&lt;/SPAN&gt;.println(geodatabase.getInternal().getLoadStatus().name())&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;geodatabase.addDoneLoadingListener(() -&amp;gt; {&lt;BR /&gt;    System.&lt;SPAN&gt;out&lt;/SPAN&gt;.println(&lt;SPAN&gt;"Loading GDB..."&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;})&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;while &lt;/SPAN&gt;(geodatabase.getLoadStatus() != LoadStatus.&lt;SPAN&gt;LOADED&lt;/SPAN&gt;) {&lt;BR /&gt;    &lt;SPAN&gt;if &lt;/SPAN&gt;(geodatabase.getLoadStatus() == LoadStatus.&lt;SPAN&gt;FAILED_TO_LOAD &lt;/SPAN&gt;|| geodatabase.getLoadStatus() == LoadStatus.&lt;SPAN&gt;NOT_LOADED&lt;/SPAN&gt;) {&lt;BR /&gt;        &lt;SPAN&gt;break;&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;System.&lt;SPAN&gt;out&lt;/SPAN&gt;.println(&lt;SPAN&gt;"GDB Loading Status: " &lt;/SPAN&gt;+ geodatabase.getLoadStatus())&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;if &lt;/SPAN&gt;(&lt;SPAN&gt;null &lt;/SPAN&gt;!= geodatabase.getLoadError()) {&lt;BR /&gt;    System.&lt;SPAN&gt;out&lt;/SPAN&gt;.println(&lt;SPAN&gt;"GDB Load Error Cause: " &lt;/SPAN&gt;+ geodatabase.getLoadError().getMessage())&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if &lt;/SPAN&gt;(geodatabase.getLoadStatus() == LoadStatus.&lt;SPAN&gt;LOADED&lt;/SPAN&gt;) {&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;var &lt;/SPAN&gt;tables = geodatabase.getGeodatabaseAnnotationTables()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    for &lt;/SPAN&gt;(GeodatabaseFeatureTable gdbFT : tables) {&lt;BR /&gt;        gdbFT.addDoneLoadingListener(() -&amp;gt; {&lt;BR /&gt;            System.&lt;SPAN&gt;out&lt;/SPAN&gt;.println(&lt;SPAN&gt;"Loading GeoDB FT..."&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;        })&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;        while &lt;/SPAN&gt;(gdbFT.getLoadStatus() != LoadStatus.&lt;SPAN&gt;LOADED&lt;/SPAN&gt;) {&lt;BR /&gt;            &lt;SPAN&gt;if &lt;/SPAN&gt;(gdbFT.getLoadStatus() == LoadStatus.&lt;SPAN&gt;FAILED_TO_LOAD &lt;/SPAN&gt;|| gdbFT.getLoadStatus() == LoadStatus.&lt;SPAN&gt;NOT_LOADED&lt;/SPAN&gt;) {&lt;BR /&gt;                &lt;SPAN&gt;break;&lt;BR /&gt;&lt;/SPAN&gt;            }&lt;BR /&gt;        }&lt;BR /&gt;        System.&lt;SPAN&gt;out&lt;/SPAN&gt;.println(&lt;SPAN&gt;"GDB FT Load Status: " &lt;/SPAN&gt;+ gdbFT.getLoadStatus())&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;        if &lt;/SPAN&gt;(gdbFT.getLoadStatus() == LoadStatus.&lt;SPAN&gt;LOADED&lt;/SPAN&gt;) {&lt;BR /&gt;            System.&lt;SPAN&gt;out&lt;/SPAN&gt;.println(&lt;SPAN&gt;"Fields GDB FT: " &lt;/SPAN&gt;+ gdbFT.getFields())&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;            System.&lt;SPAN&gt;out&lt;/SPAN&gt;.println(&lt;SPAN&gt;"Geometry Type GDB FT :  " &lt;/SPAN&gt;+ gdbFT.getGeometryType())&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Console Output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Loading GDB...&lt;BR /&gt;GDB Loading Status: FAILED_TO_LOAD&lt;BR /&gt;GDB Load Error Cause: No data.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 08:43:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-access-gdb-folder-on-local-machine-from/m-p/1126592#M2549</guid>
      <dc:creator>RobertSchweikert</dc:creator>
      <dc:date>2021-12-16T08:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to access .GDB folder on local machine from JAVA Runtime API?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-access-gdb-folder-on-local-machine-from/m-p/1126680#M2550</link>
      <description>&lt;P&gt;It depends on where the gdb came from.&amp;nbsp; If it's a Runtime geodatabase for offline purposes it will certainly work.&lt;/P&gt;&lt;P&gt;If it's a geodatabase straight from ArcGIS Pro, then you will have issues.&lt;/P&gt;&lt;P&gt;If you explain a little about the workflow you are trying to achieve I'll point you in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 14:55:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-access-gdb-folder-on-local-machine-from/m-p/1126680#M2550</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2021-12-16T14:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to access .GDB folder on local machine from JAVA Runtime API?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-access-gdb-folder-on-local-machine-from/m-p/1127575#M2553</link>
      <description>&lt;P&gt;Hi Mark , I'm not sure about the GDB type that I am going to get in future from my client. I will get that soon. Meanwhile can you tell me how to access it if it is from ArcGIS Pro? Also what kind of GDB should I ask the client for (technical name) if I need to access it directly from the Java API?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 11:14:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-access-gdb-folder-on-local-machine-from/m-p/1127575#M2553</guid>
      <dc:creator>RobertSchweikert</dc:creator>
      <dc:date>2021-12-20T11:14:21Z</dc:date>
    </item>
  </channel>
</rss>

