[R-sig-Geo] keep just one polygon for each element

Leonardo Monasterio leonardo.monasterio at gmail.com
Tue Mar 3 15:15:44 CET 2015


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.

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list