Re: [gdal-dev] Using -overwrite to create empty feature class

2012-02-04 Thread Donovan Cameron
I will definitely not recommend it then. Seems I got lucky in this case scenario. Thanks. Donovan On Fri, Feb 3, 2012 at 3:19 PM, Even Rouault wrote: > Le vendredi 03 février 2012 22:59:36, Donovan Cameron a écrit : > > FYI > > > > Further testing with -overwrite given your explanation > > *o

Re: [gdal-dev] Using -overwrite to create empty feature class

2012-02-03 Thread Even Rouault
Le vendredi 03 février 2012 22:59:36, Donovan Cameron a écrit : > FYI > > Further testing with -overwrite given your explanation > *ogr2ogr -overwrite output.shp output.shp -progress* > ...works as well but only if the files are in the same output directory Overwriting the source file with itself

Re: [gdal-dev] Using -overwrite to create empty feature class

2012-02-03 Thread Donovan Cameron
FYI Further testing with -overwrite given your explanation *ogr2ogr -overwrite output.shp output.shp -progress* ...works as well but only if the files are in the same output directory But it does report a dbf error: *ERROR 1: fread(631) failed on DBF file.* But I can still open the output for ap

Re: [gdal-dev] Using -overwrite to create empty feature class

2012-02-01 Thread Even Rouault
Le mercredi 01 février 2012 22:22:42, Donovan Cameron a écrit : > Afternoon List. > > I am trying to generate an empty feature (shp or gml) from a template that > retains both the attribute-table schema and map projection. > > I can't get the *-overwrite *flag to work, it just copies the entire >

[gdal-dev] Using -overwrite to create empty feature class

2012-02-01 Thread Donovan Cameron
Afternoon List. I am trying to generate an empty feature (shp or gml) from a template that retains both the attribute-table schema and map projection. I can't get the *-overwrite *flag to work, it just copies the entire feature (ie, makes a duplicate): *ogr2ogr -overwrite -f "GML" geoname.gml /vs