clean_slivers: Clean slivers

Description Usage Arguments Details Value

Description

Remove 'slivers' from a SpatialPolygons* object

Usage

1
clean_slivers(sp, status = TRUE, min_nodes = 3)

Arguments

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.

Details

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.

Value

Returns a list with two elements:

sp - the (cleaned) SpatialPolygons* object results - a dataframe of the polygon and Polygon indices of removed slivers


tlocoh documentation built on May 2, 2019, 5:27 p.m.