[gdal-dev] Export multiple tables from GPKG to PG

matteo matteo.ghetta at gmail.com
Wed Dec 23 23:54:47 PST 2020


Hi Even,

thanks for the reply.

> You could possibly do that in 2 steps:
> - use ogr2vrt to create a VRT from your source GeoPackage and rename layers as
> you wish
> https://github.com/OSGeo/gdal/blob/master/gdal/swig/python/samples/ogr2vrt.py


OK so I've to download this file and run it to build a vrt file (if I 
don't want to create it by myself).
> - and then use ogr2ogr to convert that VRT to PG, with -gt unlimited to do
> that in a single transaction

so the parameter is literally ì:

ogr2ogr ...... -gt unlimited

?

Thanks!

Matteo


More information about the gdal-dev mailing list