[gdal-dev] ogr2ogr -sql on a dataset level

Mike mswope at gmail.com
Sun Aug 19 07:39:44 PDT 2018


I'm looking to see if there is a way to do a sql statement on a dataset
level instead of a layer level.

Basically, I have a bash script, and wish to merge a bunch of
esrifilegeodatabase.zip into a geopackage.

I can do something like this

ogr2ogr -F GPKG dest.gpkg -append -update $zip -sql "SELECT *, '$filen' as
filename FROM Layer"

However I'm curious if there is a way to do this without knowing beforehand
what layers are present?

While I can do this in python, I'm trying to do this as a bash shell
script.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180819/df365210/attachment.html>


More information about the gdal-dev mailing list