Maybe you could just use ogrinfo to extract the layers, and then iterate over those using a bash for loop.
Brad
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev