#rstats #rspatial and other #geospatial folks, I am pleased to announce the {centerline} package! It's a small but powerful tool that can find a centerline of closed polygons.
It has both {terra} and {sf} support and works pretty well, as far as its maintainer (i.e., me) sees. The very first devel version is out, and I'm curious to hear any feedback. Its even doesn't have any logo yet
https://github.com/atsyplenkov/centerline
GitHub - atsyplenkov/centerline: An R package to retrieve the centerline of polygons

An R package to retrieve the centerline of polygons - atsyplenkov/centerline

GitHub
@atsyplenkov Nice. What are likely applications of this? What do you intend to use it for?
@adriangadientbruegger thanks for kind words. Originally, I developed it for finding a landslide runout distance, i.e. connect initiation and terminal points. In my dreams I want to replicate the {collapse_dual_lines} from ArcGIS, a very handy tool for road and river analysis
@atsyplenkov Looks very cool! And you seem to use the latest features of ggplot2 to make a text follow a line! Isn't this similar or the same that @tylermorganwall was showing recently with https://github.com/tylermorganwall/raybevel ?
GitHub - tylermorganwall/raybevel: 3D Bevels, Rooftops, Inset Polygons, and Straight Skeletons in R

3D Bevels, Rooftops, Inset Polygons, and Straight Skeletons in R - GitHub - tylermorganwall/raybevel: 3D Bevels, Rooftops, Inset Polygons, and Straight Skeletons in R

GitHub
@Lluis_Revilla cheers, mate. I haven't seen the @tylermorganwall package yet. {raybevel} looks way more promising and sophisticated! Regarding the text location, I've just used {geomtextpath} package which is here for years
@Lluis_Revilla I just took a closer look at the {raybevel}package and the skeleton algorithm implemented there may be very useful and more robust than the voronoi polygons I used. Thanks for the heads up!
@atsyplenkov wow ! That's exactly what I was looking for. I'll definitely try it and make any useful comment I can.
@atsyplenkov that GIF is worth a thousand words. Great visual explanation of what the package does and how it works