[R-sig-Geo] Handling invalid geometries from the ‘mapdata’ package

Karl Ove Hufthammer karl at huftis.org
Mon Mar 28 15:04:30 CEST 2011


Roger Bivand wrote:

>> pls1 <- lapply(pls, checkPolygonsHoles)
> Error in RGEOSBinPredFunc(spgeom1, spgeom2, byid, "rgeos_equals") :
> TopologyException: side location conflict at 78.9364 33.4081
> 
> then I can reproduce it, and will examine whether it can be handled - the
> checkPolygonsHoles() function also uses GEOS, but probably should warn
> after failing try(gEquals(...)).
> 
> Was this your error?

Yes.

I also eventually managed to get a segfault when trying various stuff like 
this, but it may have been unrelated. (At least, I can’t reproduce it.)

-- 
Karl Ove Hufthammer



More information about the R-sig-Geo mailing list