makeCircle: Create the minimum circle containing the points

View source: R/makeGrid.r

makeCircleR Documentation

Create the minimum circle containing the points

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

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


Greensway/BIRDS documentation built on Oct. 19, 2023, 2:35 a.m.