Re: [gdal-dev] Renaming multiple layers when loading gpkg into postgis

2024-03-07 Thread Even Rouault via gdal-dev
Richard, Tried to google for this, but asking here: is it only possible to rename one layer per ogr2ogr call? (while it is possible to load several layers) Not with ogr2ogr If so I will make my scripts do the loading one by one, but just want to check. or using https://github.com/OSGeo/

[gdal-dev] Renaming multiple layers when loading gpkg into postgis

2024-03-07 Thread Richard Duivenvoorde via gdal-dev
Hi, Loading a gpkg with multiple layers (from a zip) into Postgis is a breeze (all PG-stuff from env): ogr2ogr -overwrite -f PostgreSQL PG:"schemas=target" /vsizip//home/richard/data/data.zip/this.gpkg layer1 layer3 but now I want to rename those layers ogr2ogr -overwrite -f PostgreSQL PG: