[gdal-dev] ogr2ogr creates empty shape files

Even Rouault even.rouault at mines-paris.org
Thu Mar 1 13:30:59 EST 2012


Le jeudi 01 mars 2012 18:56:26, Wolfgang Lahr a écrit :
> 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?

No. But provided you have some programming skills available, you could easily 
patch ogr2ogr to do that

> 
> TIA
> 
> wolfgang
> 
> 
> 
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list