Hi Pablo, If you really want to get into an FGDB, and you don't mind a bit of a hack, you can do so using the ArcGIS Explorer SDK (see http://resources.arcgis.com/content/arcgis-explorer/1500/download). The ESRI.ArcGISExplorer.Data namespace has a Geodatabase class that you can use to retrieve data from an FGDB. Should be quite sufficient for converting into another format. I'm no expert in this (I just stumbled on this stuff last week), and when I tried to make use of the Geodatabase class in a console app, it told me some licence wasn't initialized. It seems you can only use these classes as part of the ArcGIS Explorer UI. Fortunately, they have this notion of an Extension, which is a non-UI element that gets executed when the Explorer UI starts up. I found that you can use the Geodatabase class from there. If converting the data is all you want to do, you can then kill the UI before it really gets going by calling System.Windows.Forms.Application.Exit. The little test class I played with is attached. Steve Stanton
--- On Fri, 26/11/10, Pablo Carreira <pablotcarre...@hotmail.com> wrote: From: Pablo Carreira <pablotcarre...@hotmail.com> Subject: RE: [OSGeo-Discuss] RE: ESRI File Geodatabase To: discuss@lists.osgeo.org Date: Friday, 26 November, 2010, 12:20 >From a lurker: IIRC, Access provided for some level of table export, >possibly including to CSV format. If so, the data cd be made available >outside the ESRI >confines. Worth investigation? AFAIK it is possible with the "Personal Database". But the "File Geodatabase" is a folder with a lot of strange files. ArcExplorer can open it and export to other formats: "Map Content" and "Layer Package" - useless. Regards. Pablo Torres Carreira Date: Fri, 26 Nov 2010 06:37:15 -0500 Subject: Re: [OSGeo-Discuss] RE: ESRI File Geodatabase From: shor...@gmail.com To: discuss@lists.osgeo.org >From a lurker: IIRC, Access provided for some level of table export, >possibly including to CSV format. If so, the data cd be made available >outside the ESRI confines. Worth investigation? AS On Fri, Nov 26, 2010 at 6:06 AM, Pablo Carreira <pablotcarre...@hotmail.com> wrote: What a pity. Thank you very much. Pablo Torres Carreira > From: kars...@terragis.net > To: discuss@lists.osgeo.org > CC: pablotcarre...@hotmail.com > Subject: RE: ESRI File Geodatabase > Date: Thu, 25 Nov 2010 11:48:08 -0800 > > Hi Pablo, > > No its not (yet) possible. The reason is that ESRI did not get their stuff > together to go ahead and publish the format specs (which they indicated they > would over two years ago now). You can use ESRI personal geodatabase (MS > access based) in ogr/gdal if support is compiled with it (mostly works on > windows, but not likely on Linux 64 bit systems) > Cheers > Karsten > > Karsten Vennemann > Principal > > Terra GIS LTD > www.terragis.net > > > Date: Thu, 25 Nov 2010 09:52:59 -0200 > > From: Pablo Carreira <pablotcarre...@hotmail.com> > > Subject: [OSGeo-Discuss] ESRI File Geodatabase > > To: <discuss@lists.osgeo.org> > > > > Hi, > > Is it possible to use or convert ESRI "File Database" with > > open source software? > > Regards. > > Pablo Torres Carreira > _______________________________________________ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss _______________________________________________ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss -----Inline Attachment Follows----- _______________________________________________ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss
using System; using ESRI.ArcGISExplorer.Data; namespace MyExtension { public class TestExtension : ESRI.ArcGISExplorer.Application.Extension { public override void OnStartup() { using (System.IO.StreamWriter sw = System.IO.File.CreateText(@"C:\Temp\FGDB.txt")) { Geodatabase gdb = new Geodatabase(@"C:\Users\sstanton\Data\Data.gdb"); sw.WriteLine("gdb opened"); foreach (Table t in gdb.GetTables()) { RowCollection rc = t.GetRows(); string msg = String.Format("Name={0} IsSpatial={1} GeomType={2} RowCount={3}", t.Name, t.IsSpatial, t.GeometryType, rc.Count); sw.WriteLine(msg); } } System.Windows.Forms.Application.Exit(); } } }
_______________________________________________ Discuss mailing list Discuss@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/discuss