Re: [gdal-dev] ogr2ogr creates empty shape files

2012-03-01 Thread Even Rouault
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

Re: [gdal-dev] ogr2ogr creates empty shape files

2012-03-01 Thread Eli Adam
Wolfgang, > how would one prevent OGR2OGR from creating an empty target files > when a WHERE condition returns no records from the source files? This I know that there is a COUNT() that can be used in the SELECT part. I've never tried it in the WHERE part. You might be able to try that. > quest

[gdal-dev] ogr2ogr creates empty shape files

2012-03-01 Thread Wolfgang Lahr
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 manu