Converting kml to shape (readOGR)
Hi Paul, Here is the requested information:
sessionInfo()
R version 2.8.0 (2008-10-20) i386-pc-mingw32 locale: LC_COLLATE=Dutch_Netherlands.1252;LC_CTYPE=Dutch_Netherlands.1252;LC_MONETARY=Dutch_Netherlands.1252;LC_NUMERIC=C;LC_TIME=Dutch_Netherlands.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] rgdal_0.5-33 sp_0.9-29 loaded via a namespace (and not attached): [1] grid_2.8.0 lattice_0.17-17 Codes that produces the error:
kml <-readOGR(dsn=".",layer="Gebied2.kml")
Error in ogrInfo(dsn = dsn, layer = layer) : Cannot open layer and the traceback:
traceback()
3: .Call("ogrInfo", as.character(dsn), as.character(layer), PACKAGE = "rgdal")
2: ogrInfo(dsn = dsn, layer = layer)
1: readOGR(dsn = ".", layer = "Gebied2.kml")
And thnx for the remark on the list.
Henk
Henk Sierdsema
SOVON Vogelonderzoek Nederland / SOVON Dutch Centre for Field Ornithology
Rijksstraatweg 178
6573 DG Beek-Ubbergen
The Netherlands
tel: +31 (0)24 6848145
fax: +31 (0)24 6848122
-----Oorspronkelijk bericht-----
Van: Paul Hiemstra [mailto:p.hiemstra at geo.uu.nl]
Verzonden: dinsdag 6 januari 2009 12:15
Aan: Henk Sierdsema
CC: r-sig-geo at stat.math.ethz.ch
Onderwerp: Re: [R-sig-Geo] Converting kml to shape (readOGR)
Hi Henk,
We need more details to be able to solve your problem. What kind of
system are your using (sessionInfo() command)? Could you provide use
with a piece of code that reproduces the error. What was the exact error
and what piece of code generated the error (use traceback()).
cheers,
Paul
ps You replied to an earlier e-mail on the r-sig-geo list([R-sig-Geo]
semivariance analysis of categorical variable). This breaks the
threading and adds your e-mail to the thread of the above mentioned
e-mail. Sending a new e-mail makes a fresh new thread for your problem.
Henk Sierdsema wrote:
Hi, I've been trying to convert a vector kml-file to an ESRI shape with readOGR(), but I don't manage to read the kml-file. Can anyone help me with this? Thnx, Henk Sierdsema SOVON Vogelonderzoek Nederland / SOVON Dutch Centre for Field Ornithology Rijksstraatweg 178 6573 DG Beek-Ubbergen The Netherlands tel: +31 (0)24 6848145 fax: +31 (0)24 6848122
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +31302535773 Fax: +31302531145 http://intamap.geo.uu.nl/~paul