Skip to content

Problem with writeOGR()

2 messages · Michael Sumner, Agustin Lobo

#
My guess is that it's the logical column.

Try

gpsori1$UTM.Ch <- as.character(gpsori1$UTM.Ch)
writeOGR(gpsori1, dsn="MATA20090729",
layer="MATA20090729gps1",driver="ESRI Shapefile")
On Thu, Nov 5, 2009 at 9:35 AM, Agustin Lobo <aloboaleu at gmail.com> wrote:
#
Thanks, that was it.
The problem comes from the csv input file having a column with "T"
from the utm zone (31T). Just setting:
 > gpsori1[,3]<-"T"

solves the problem and I can go on:
 > coordinates(gpsori1) <- cbind(gpsori1$UTM.East, gpsori1$UTM.North)
 > writeOGR(gpsori1, dsn="THOME20090729", layer="THOME20090729gps1",driver="ESRI 
Shapefile")

Agus
Michael Sumner wrote:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alobolistas.vcf
Type: text/x-vcard
Size: 260 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20091105/96b3e832/attachment.vcf>