<?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: Load Layer from File Geodatabase (.gdb) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/load-layer-from-file-geodatabase-gdb/m-p/748206#M69206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just learned that while you have downloaded &amp;lt;FILENAME&amp;gt;.gdb.zip, you must create new folder&amp;gt; "&amp;lt;FILENAME&amp;gt;.gdb" &amp;gt;extract zip file to new folder.... THEN ArcMap will recognize the data.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you simply extract your data to a file without creating the destination folder with a .gdb extension, it will not be recognized.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2013 17:38:44 GMT</pubDate>
    <dc:creator>WilliamSinclair</dc:creator>
    <dc:date>2013-02-14T17:38:44Z</dc:date>
    <item>
      <title>Load Layer from File Geodatabase (.gdb)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/load-layer-from-file-geodatabase-gdb/m-p/748203#M69203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Below is a post I found on the old ESRI forum.&amp;nbsp; When I add a raster from my file geodatabase, I want it to programatically load the layer file as well.&amp;nbsp; Where do I insert the code below to do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=93&amp;amp;f=992&amp;amp;t=277233"&gt;http://forums.esri.com/Thread.asp?c=93&amp;amp;f=992&amp;amp;t=277233&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;I use a File Geodatabase with the name: &lt;BR /&gt;database.gdb &lt;BR /&gt;I have some layers in this gdb, which I want to load to ArcMap programmatically.(the database.gdb is a folder with files inside with extensions .freelist, .gdbindexes, .gdbtable, .gdbtablx and .spx) &lt;BR /&gt;Wherever I look in the forum I get code for an mdb Geodatabase. &lt;BR /&gt;How can I load a layer from a File Geodatabase? &lt;BR /&gt;&lt;BR /&gt;The following code didn't work. I get an automation error at the line pWorkspaceFactory.OpenFromFile("C:\ZZZ\database.gdb", 0) &lt;BR /&gt;It only works (I think) with mdb files &lt;BR /&gt;&lt;BR /&gt;Thank you&amp;nbsp; &lt;BR /&gt;&amp;nbsp; Dim pWorkspaceFactory As IWorkspaceFactory&lt;BR /&gt;Set pWorkspaceFactory = New FileGDBWorkspaceFactory&lt;BR /&gt;&lt;BR /&gt;'Open the Access Workspace&lt;BR /&gt;Dim pWorkspace As IFeatureWorkspace&lt;BR /&gt;Set pWorkspace = pWorkspaceFactory.OpenFromFile("C:\ZZZ\database.gdb", 0)&lt;BR /&gt;&lt;BR /&gt;'Open the featureclass&lt;BR /&gt;Dim pFeatureClass As IFeatureClass&lt;BR /&gt;Set pFeatureClass = pWorkspace.OpenFeatureClass("LayerName")&lt;BR /&gt;&lt;BR /&gt;'Create a new Feature Layer&lt;BR /&gt;Dim pFeatureLayer As IFeatureLayer&lt;BR /&gt;Set pFeatureLayer = New FeatureLayer&lt;BR /&gt;&lt;BR /&gt;'Set the feature class to the geodatabase featureclass&lt;BR /&gt;Set pFeatureLayer.FeatureClass = pFeatureClass&lt;BR /&gt;pFeatureLayer.Name = pFeatureClass.AliasName&lt;BR /&gt;&lt;BR /&gt;'Add the new layer to ArcMap&lt;BR /&gt;Dim pDoc As IMxDocument&lt;BR /&gt;Set pDoc = ThisDocument&lt;BR /&gt;Dim pMap As IMap&lt;BR /&gt;Set pMap = pDoc.FocusMap&lt;BR /&gt;pMap.AddLayer pFeatureLayer&lt;BR /&gt;&lt;BR /&gt;'Refresh the view and table of contents&lt;BR /&gt;pDoc.UpdateContents&lt;BR /&gt;pDoc.ActiveView.Refresh&lt;BR /&gt; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 12:37:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/load-layer-from-file-geodatabase-gdb/m-p/748203#M69203</guid>
      <dc:creator>BryanDeverot</dc:creator>
      <dc:date>2010-08-23T12:37:06Z</dc:date>
    </item>
    <item>
      <title>Unable to load gdbtable / gdbindexes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/load-layer-from-file-geodatabase-gdb/m-p/748204#M69204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am running the trial version of ArcGIS Desktop 10. I received a folder with .gdbtable , .gdbindexes, .freelist files. I've tried connecting the folder, importing the dataset, etc.. and I am failing bigtime. I've changed the extension on the folder to .gdb and tried importing that way. My goal is to convert the files to .dwg or .dxf for autocad, but I can't get to viewing. Any help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 21:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/load-layer-from-file-geodatabase-gdb/m-p/748204#M69204</guid>
      <dc:creator>johngibson1</dc:creator>
      <dc:date>2011-06-06T21:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Load Layer from File Geodatabase (.gdb)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/load-layer-from-file-geodatabase-gdb/m-p/748205#M69205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi John,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like the geodatabase you received may be corrupt - try requesting it again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tell the dataset creator to zip the entire geodatabase directory, from one level above the the files you're seeing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eg, if the file is called C:\data\FileName.gdb, they should open C:\data in Windows, right-click on FileName.gdb, and zip this. This will create a zip file containing FileName.gdb, which will contain the constituent files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should be able to preview the geodatabase in ArcCatalog, or add it to ArcMap using the Add Data option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 03:12:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/load-layer-from-file-geodatabase-gdb/m-p/748205#M69205</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2011-06-07T03:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Load Layer from File Geodatabase (.gdb)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/load-layer-from-file-geodatabase-gdb/m-p/748206#M69206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just learned that while you have downloaded &amp;lt;FILENAME&amp;gt;.gdb.zip, you must create new folder&amp;gt; "&amp;lt;FILENAME&amp;gt;.gdb" &amp;gt;extract zip file to new folder.... THEN ArcMap will recognize the data.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you simply extract your data to a file without creating the destination folder with a .gdb extension, it will not be recognized.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 17:38:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/load-layer-from-file-geodatabase-gdb/m-p/748206#M69206</guid>
      <dc:creator>WilliamSinclair</dc:creator>
      <dc:date>2013-02-14T17:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Load Layer from File Geodatabase (.gdb)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/load-layer-from-file-geodatabase-gdb/m-p/748207#M69207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; We are making a iOS application for offline viewing of map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We have .tpk file to show offline map and .gdb file for database to show related information of map layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But we are unable to read the .gdb file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Should the extension be something different? How should we add this file in our application?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And how can we read this file to get the data of layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sweety Singh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 06:53:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/load-layer-from-file-geodatabase-gdb/m-p/748207#M69207</guid>
      <dc:creator>SweetySingh</dc:creator>
      <dc:date>2014-04-04T06:53:47Z</dc:date>
    </item>
  </channel>
</rss>

