makeCircle: Create the minimum circle containing the points

Description Usage Arguments Value See Also

View source: R/makeGrid.r

Description

This function is based on the function shotGroups::getMinCircle() that uses the Skyum algorithm based on the convex hull. http://www.cs.au.dk/~gerth/slides/sven14.pdf

Usage

1
makeCircle(spdf, crs = NULL)

Arguments

spdf

an object of class ‘sf’ or ‘SpatialPointsDataFrame’ with defined CRS.

crs

a number defining a projected CRS. It is very important that the selected CRS is accurate in the study area. This is not the CRS for the argument 'spdf' which should be defined internally. This is the CRS used to make a flat circle. Some UTM variant is recommended. See getUTMproj

Value

a polygon object of class ‘sf’ with geodesic coordinates in WGS84 (ESPG:4326).

See Also

getUTMproj


BIRDS documentation built on June 27, 2021, 1:06 a.m.