Function produces the Convex Hull of the given geometry, the smallest convex polygon that contains all subgeometries
gConvexHull(spgeom, byid=FALSE, id = NULL)
sp object as defined in package sp
Logical determining if the function should be applied across subgeometries (TRUE) or the entire object (FALSE)
Character vector defining id labels for the resulting geometries, if unspecified returned geometries will be labeled based on their parent geometries' labels.
Returns the convex hull as a SpatialPolygons object.