centerline: Extract Centerline from Closed Polygons

Generates skeletons of closed 2D polygons using Voronoi diagrams. It provides methods for 'sf', 'terra', and 'geos' objects to compute polygon centerlines based on the generated skeletons. Voronoi, G. (1908) <doi:10.1515/crll.1908.134.198>.

Getting started

Package details

AuthorAnatoly Tsyplenkov [aut, cre, cph] (ORCID: <https://orcid.org/0000-0003-4144-8402>)
MaintainerAnatoly Tsyplenkov <atsyplenkov@fastmail.com>
LicenseMIT + file LICENSE
Version0.2.4
URL https://centerline.anatolii.nz https://github.com/atsyplenkov/centerline
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("centerline")

Try the centerline package in your browser

Any scripts or data that you put into this service are public.

centerline documentation built on Sept. 9, 2025, 5:38 p.m.