ogr2ogr in a bash script to merge multiple
gpkg files. What I'm doing basically looks like this:
ogr2ogr -f 'gpkg' -append merged.gpkg input_file_1.gpkg ogr2ogr -f 'gpkg' -append merged.gpkg input_file_2.gpkg ogr2ogr -f 'gpkg' -append merged.gpkg input_file_3.gpkg
So all the
input_file_x.gpkg end up in
merged.gpkg. This works fine, except a new vector layer is created for every input file, which I want to avoid. As far as I understand it, the
-append flag should take care of this.
-append: Append to existing layer instead of creating new
All of the input files look identical in terms of attributes and geometry type.