clean_slivers {tlocoh} | R Documentation |
Remove 'slivers' from a SpatialPolygons* object
clean_slivers(sp, status = TRUE, min_nodes = 3)
sp |
A SpatialPolygons or SpatialPolygonsDataFrame object |
status |
Show messages. T/F |
min_nodes |
The minimum number of unique nodes a polygon must have to *not* be labeled a sliver and deleted. |
As defined here, a 'sliver' is polygon or hole that has < min_nodes
(default=3) unique nodes
(perhaps due to a data type conversion or rounding error).
This seems to be a particularly common type of geometry error that
crops in when unioning hulls into isopleths.
Returns a list with two elements:
sp - the (cleaned) SpatialPolygons* object results - a dataframe of the polygon and Polygon indices of removed slivers