[R-sig-Geo] How to implement Org2Org "-dcso NameField=..." in rgdal, writeOGR() KML

2010-01-01 Thread Noli Sicad
Hi, I would like to minic this Org2Ogr command (below) to write shapefile to KML. How do I do this in rgdal, " -dcso NameField=Name_2" Org2Ogr command: ~ Org2Org -f KML NZL_3.kml NZL_adm3.shp -dcso NameField=Name_2 ~ Rgdal ~~ library(rgdal) mymap<-readOGR("NZL_adm3.sh

Re: [R-sig-Geo] POSIX* objects and writeOGR()

2010-01-01 Thread Roger Bivand
On Thu, 31 Dec 2009, Agustin Lobo wrote: Thanks! I see that creating a temporary SPDF with that variable casted as character is the only way to run writeOGR(). Would it be possible adding an option i.e. POSIXtoCHAR=T to writeOGR() so that such a conversion is automated? POSIXt *is* converted