Re: [Qgis-user] QgsVectorFileWriter

2009-01-29 Thread Borys Jurgiel
In this way, it would be better to save in a temporary shapefile first, and if the process finishes successfully, remove the destination shapefile and copy the temporary shp to the new location. hmm, I don't know about this... Firstly, it's only useful to do this if you're

Re: [Qgis-user] QgsVectorFileWriter

2009-01-22 Thread Lionel Roubeyrie
Hi Carson, Le mercredi 21 janvier 2009 à 16:48 +, Carson Farmer a écrit : In this way, it would be better to save in a temporary shapefile first, and if the process finishes successfully, remove the destination shapefile and copy the temporary shp to the new location. hmm, I don't

[Qgis-user] QgsVectorFileWriter

2009-01-21 Thread Möri Cedric
Hi list in a python plugin im using QgsVectorFileWriter.writeAsShapefile to write a shapefile to the disk. The first time I use a certain file name/path (e.g /tmp/foo.shp), it works properly. If I try to rerun the script, it fails saying: ERROR 1: /tmp/foo.shp is not a directory. It looks

Re: [Qgis-user] QgsVectorFileWriter

2009-01-21 Thread Carson Farmer
Cedric, Hi list in a python plugin im using QgsVectorFileWriter.writeAsShapefile to write a shapefile to the disk. The first time I use a certain file name/path (e.g /tmp/foo.shp), it works properly. If I try to rerun the script, it fails saying: ERROR 1: /tmp/foo.shp is not a directory.

Re: [Qgis-user] QgsVectorFileWriter

2009-01-21 Thread Lionel Roubeyrie
In this way, it would be better to save in a temporary shapefile first, and if the process finishes successfully, remove the destination shapefile and copy the temporary shp to the new location. Le mercredi 21 janvier 2009 à 14:27 +, Carson Farmer a écrit : Cedric, Hi list in a python

Re: [Qgis-user] QgsVectorFileWriter

2009-01-21 Thread Carson Farmer
In this way, it would be better to save in a temporary shapefile first, and if the process finishes successfully, remove the destination shapefile and copy the temporary shp to the new location. hmm, I don't know about this... Firstly, it's only useful to do this if you're concerned about