[gdal-dev] ogr2ogr creates empty shape files

Wolfgang Lahr bgiv at gmx.de
Thu Mar 1 12:56:26 EST 2012


Hello list,

how would one prevent OGR2OGR from creating an empty target files
when a WHERE condition returns no records from the source files? This
question came up during a batch process where dozens or even hundreds of files
are converted and further processed. Is there an option besides of
manually deleting those files?

TIA

wolfgang





More information about the gdal-dev mailing list