1

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?

Vince
  • 20,017
  • 15
  • 45
  • 64
Stu Smith
  • 8,252
  • 8
  • 35
  • 84
  • 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 Sep 12 '23 at 21:22
  • XLNT! That's good to know. – Stu Smith Sep 13 '23 at 01:03

1 Answers1

3

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)
user30184
  • 65,331
  • 4
  • 65
  • 118
  • 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 Sep 12 '23 at 20:32
  • I've submitted a bug report at: https://github.com/qgis/QGIS/issues/54566 – Stu Smith Sep 12 '23 at 20:42