Description Usage Arguments Details Value
Remove 'slivers' from a SpatialPolygons* object
1 | 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.