2

Background:

At 3.28.10 I have installed the ESRI FileGDB driver, using the advanced OSGEO4W install. This allows me to write a vector layer to a new ESRI File Geodatabase (FGDB), using Export > Save Features As...

However, I am unable to write any additional layers to an existing FGDB because the Export dialog box does not allow me to enter the name of an existing FGDB. As a result, I am only able to create new FGDBs that contain just a single layer.

The Export dialog window has two options for saving to a FGDB, as shown in the screenshot:
ESRI File Geodatabase
ESRI FileGDB

Selecting either option results in the same single-layer FGDB output.

enter image description here

Question:

How to export additional layers to an existing File Geodatabase?

2
  • 2
    Slightly off topic -- but you shouldn't install the filegdb driver on newer qgis versions. The out of the box install comes with the full featured openfilegdb driver, which has full support now for editing and creating gdbs and none of the issues of the filegdb driver!
    – ndawson
    Commented Sep 12, 2023 at 21:22
  • XLNT! That's good to know.
    – Stu Smith
    Commented Sep 13, 2023 at 1:03

1 Answer 1

4

The Export - Save Features As... has probably a bug in the file selector. It really does not allow to select an existing file geodatabase. Maybe it is because the gdb is actually a directory, not a file.

As a workaround I managed to add layers into an existing gdb by writing the name of the gdb from the keyboard.

enter image description here

ogrinfo layers.gdb
INFO: Open of `layers.gdb'
      using driver `OpenFileGDB' successful.
Layer: new_scratch_layer (Multi Polygon)
Layer: new_scratch_layer2 (Multi Polygon)
2
  • 2
    Alternatively to typing it you could select the file gdb folder in the file selector, copy the path in the address bar hit cancel then paste in the right box. This way you don't need to remember long path...
    – J.R
    Commented Sep 12, 2023 at 20:32
  • I've submitted a bug report at: github.com/qgis/QGIS/issues/54566
    – Stu Smith
    Commented Sep 12, 2023 at 20:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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