sp_convex_hull: Function to create the smallest convex polygon that contains...

View source: R/sp_convex_hull.R

sp_convex_hullR Documentation

Function to create the smallest convex polygon that contains all input geometries.

Description

sp_convex_hull is a simple wrapper for rgeos::gConvexHull.

Usage

sp_convex_hull(sp, features = FALSE)

Arguments

sp

Spatial object.

features

Should the individual polygons of the features contained within sp be calculated? Default is FALSE.

Author(s)

Stuart K. Grange

Examples

## Not run: 
# Create a boundary-polygon containing all points
sp_boundary_polygon <- sp_convex_hull(sp_points)

## End(Not run)


skgrange/gissr documentation built on Feb. 24, 2024, 2:55 p.m.