Sunday 21 August 2016

python - How to Open a File Geodatabase with ogr?




Possible Duplicate:
How to access feature classes in File Geodatabases with python and gdal?




I have installed:


python-2.7.msi


GDAL-1.9.1.win32-py2.7.exe


import ogr
driver = ogr.GetDriverByName("FileGDB")
print driver

I receive None


Do I need to install something extra to open GDB?



Answer




Looks like you'll need to build GDAL with FileGDB support.


http://trac.osgeo.org/gdal/wiki/FileGDB


An alternative is to use OSGEO4W. It automatically takes care of all your dependencies under Windows.


https://trac.osgeo.org/osgeo4w/


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...