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

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