I found several posts explaining how to import a .gdb file into PostGIS. Is exporting also possible? For example using ogr2ogr to generate a .gdb file from query result.

  • 2
    Biggest problem is probably with building GDAL with ESRI FileGDB SDK trac.osgeo.org/gdal/wiki/FileGDB. Once you have the driver it should be just ogr2ogr -f FileGDB -sql "select * from my_data" output.gdb PG:...
    – user30184
    Oct 5 '15 at 11:59

Yes its possible using the ogr2ogr package with gdal.

sudo apt-get -y install gdal-bin

ogr2ogr -f "PostgreSQL" PG:"host=localhost port=5432 dbname=osm user=postgres password=123" something.gdb -overwrite -progress --config PG_USE_COPY YES

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.