st_circle_center: Get the centroid of the maximum inscribed circle

View source: R/center.R

st_circle_centerR Documentation

Get the centroid of the maximum inscribed circle

Description

Returns the centroid of the largest inscribed circle for each shape

Usage

st_circle_center(shp, tolerance = 0.01, epsg = 3857)

Arguments

shp

An sf dataframe

tolerance

positive numeric tolerance to simplify by. Default is 0.01.

epsg

numeric EPSG code to planarize to. Default is 3857.

Value

An sf dataframe where geometry is the circle center of each shape in shp

Examples

data(towns)
st_circle_center(towns)


christopherkenny/geomander documentation built on Feb. 18, 2024, 7:58 p.m.