I’m sure there’s a better way out there, but I struggled to find a way to dissolve polygons that touched/overlapped each other (the special case being buffers). For example, using the osmdata package, we can download the polygons representing hospital buildings in Bern, Switzerland. library(osmdata) library(rgdal) ; library(maptools) ; library(rgeos) q0