dissolve polygon in the shapefile

Dear R users,
I have one shape file, now I want to dissolve internal state boundaries. I did it, but still I could not dissolve the entire internal state boundaries.
(DOTS are appearing, see the attached plot).
Screenshot 2020-09-06 at 12.30.34 AM

For dissolving the internal boundaries, I used

m = st_read("NorthRegion.shp")
class(m)
(st_union(m$geom)) -> m1
as(st_geometry(m1), "Spatial") -> nc_sp
as(nc_sp, "SpatialPolygonsDataFrame") -> X1
class(X1)
plot(X1) 

please let me know how can I remove dots in the shape files?

I can not be absolutely certain without access to your "NorthRegion.shp" file, but for removing artefacts like yours I had good result with nngeo::st_remove_holes() in the past.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.

I am glad it did! :slight_smile:

Thank You so much. It worked.

1 Like