[R-sig-Geo] writeOGR

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Mon Aug 27 13:28:07 CEST 2012


On Mon, Aug 27, 2012 at 11:56 AM, Frazier, Tyler James
<tyler.j.frazier at tu-berlin.de> wrote:
> Is it possible to set writeOGR so it overwrites existing files, or at least prompts?
>
> i.e.
>
> writeOGR(towns,".","towns",driver="ESRI Shapefile")

?writeOGR

overwrite_layer: default FALSE, if TRUE and ‘check_exists=TRUE’, delete
          the existing layer of the same name from the data source
          before writing the new layer; this will delete data and must
          be used with extreme caution, its behaviour varies between
          drivers, and accommodates changes that may appear in GDAL 1.8

?

Barry



More information about the R-sig-Geo mailing list