Tuesday 2 June 2015

merge - Dissolve overlapping polygons in R


Is there an analogue of ArcGIS Dissolve function in R? I need to dissolve the overlapping polygons and create a single part object.


I was trying to use gUnionCascaded, but it creates a multipart object. Is there a function in R to do Multipart to singlepart?



Answer



Have you tried unionSpatialPolygons() from the maptools package?



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...