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
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to