On 1 Apr 2014 22:25, "remissssss" <rgenev...@free.fr> wrote: > > Hi all, > I got some trouble trying to open a .kml file into R. Usually, the readOGR > package works great for it but here I get a message error that I can't > understand. > > When I'm typing this : > myfile <-readOGR(dsn="/windows/landuse.kml",layer="agricultural use") > > I get the following error : > Error in ogrInfo(dsn = dsn, layer = layer, encoding = encoding, use_iconv = > use_iconv) : > Multiple incompatible geometries: 6:7
Maybe the file mixes topological types? Maybe contains any two of points lines polygons, or some other type not supported. Can you provide the file? Please use R-SigGeo for this topic rather than this one. Cheers, Mike > > It seems that the file is read, since I get different parameters on it while > using OGRSpatialRef() or ogrListLayers() > > Someone would have any idea to solve the "incompatible geometry" error ? > > Thanks for help! > > > > -- > View this message in context: http://r.789695.n4.nabble.com/trouble-using-readOGR-function-tp4687937.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.