Skip to content
Prev 22392 / 29559 Next

keep just one polygon for each element

Dear all,

I have a quite detailed SpatialPolygon of thousands of municipalities. Most
elements are formed by just one polygon, but some - thanks to islands or
rivers- are formed by multiple ones. These tiny polygons are useless to me.

Question: Is there a way create a SpatialPolygon formed by the largest
polygon of each element?

I've checked this:
http://www.r-bloggers.com/simplifying-polygon-shapefiles-in-r/

But it is not exactly what I am looking for.

Yours thankfully,

Leo.