Version 11 (modified by 13 years ago) ( diff ) | ,
---|
FileGDB
Build GDAL with FileGDB Support
Download the API/SDK
- http://resources.arcgis.com/content/geodatabases/10.0/file-gdb-download (you will need an 'ESRI Global Account')
Compile
Windows (Visual Studio 2008)
You will have to compile filegdb as a plugin for GDAL:
- Compile GDAL with the FGDB section commented
- Now edit your nmake.opt so it contains something like the following (pay attention to the FGDB_SDK path):
FGDB_ENABLED = YES FGDB_PLUGIN = YES FGDB_SDK = $(GDAL_HOME)\..\FileGDB_API_VS2008_1_0Final FGDB_INC = $(FGDB_SDK)\include FGDB_LIB = $(FGDB_SDK)\lib\FileGDBAPI.lib
- Next, cd to the /ogr/ogrsf_frmts/filegdb directory
- Execute the following:
nmake /f makefile.vc plugin
A file named ogr_FileGDB.dll should be generated.
- You will also need the file: FileGDB_API_VS2008_1_0Final/bin/FileGDBAPI.dll
Testing the driver
To test if the driver is been loaded, make sure ogr_FileGDB.dll and FileGDBAPI.dll are found in your path, and then execute the following (look for "FileGDB" in the results):
.\> ogrinfo --formats Supported Formats: -> "FileGDB" (read/write) -> "ESRI Shapefile" (read/write) -> "MapInfo File" (read/write) -> "UK .NTF" (readonly) -> "SDTS" (readonly) -> "TIGER" (read/write) -> "S57" (read/write) -> "DGN" (read/write) -> "VRT" (readonly) -> "REC" (readonly)
And if you have a sample file:
.\> ogrinfo sample.kmz INFO: Open of `sample.kmz' using driver `LIBKML' successful. 1: 0
Attachments (1)
-
test_fgdb.gdb.zip
(99.1 KB
) - added by 13 years ago.
Small test fgdb with points, lines, polygons.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.