![]() ![]() Any guidance in this area would be really helpful. # I tried using rgeos::gBuffer to avoid RGEOSBinTopology Exception but it did not worked out. ![]() b) plot(e) erase parts of lines with polygons r <- raster(extent(p) +c(-.1.1. TopologyException: Input geom 1 is invalid: Self-intersection at or near point 1.1197332302192855 47.203098020153668 at 1.1197332302192855 47.203098020153668 library(raster)įields <- gBuffer(fields, byid=TRUE, width=0) # Expands the given geometry to include S4 method for signature SpatialPolygons,SpatialPolygons erase(x, y. All raster cells with centers within the erase polygons will be assigned a value of NODATA. I am using raster package erase function as per my previous post solution for clipping and dissolving overlapping polygons - Dissolve Overlapping Polygons using difference and union in Rįor some of the polygons I am getting below error with erase funtion:Įrror in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false, : ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |