win10,py3.7 64位
GDAL使用uci的非官方版本,在gdalplugins下已有ogr_filegdb.dll,
下載FileGDB_API_1_5_1-VS2017.zip,將FileGDBAPI.dll(注意區分x86和x64)復制到gdal20X.dll同級目錄,
此時通過ogrinfo.exe --formats 顯示filegdb可讀寫
此時應該已能使用。
僅有以上還不夠,還需
編輯 python install/virtualenv dir]\Lib\site-packages\osgeo\__init__.py .
# uncomment the next line to enable plugins
os.environ['GDAL_DRIVER_PATH'] = os.path.join(os.path.dirname(__file__), 'gdalplugins')
如果是py27,可嘗試低版本的filegdbapi。