outerRing: Remove holes from polygon

Description Usage Arguments Value

Description

Returns the largest ring from a single polygon feature, retaining original ID value.

@details Finds the biggest ring of a SpatialPolygons* object and uses that ring to create a new SpatialPolygons object with the same ID value. This can be used to clean up holes/overlap within polygons, or to remove small polygons within a multipart polygon

Usage

1

Arguments

poly

A SpatialPolygons* object. The feature may have multiple rings. If an object with multiple shapes is passed, the function is iterated over all entries.

Value

SpatialPolygon


ECCC-MSC/Basin-Delineation documentation built on June 9, 2019, 7:29 p.m.