- the
raybevel
package was removed from CRAN on October 22, 2024. It is not a core dependency, but it is crucial for some functions in thecenterline
pkg. To maintainraybevel::skeletonize
accessibility for thecnt_skeleton
function,raybevel
is temporarily installed from GitHub.
geom_cnt_*
function family for plotting centerlines with ggplot2
- Switched from
rlang
tocheckmate
for type checks - Web-only vignettes to reduce package size
- Website launched with some vignettes.
- Added a new argument to the
cnt_skeleton()
function —method
. It should be either"voronoi"
or"straight"
. Depending on it, the generating skeleton method will change.
- CRAN first submission
- Major refactoring of all core functions which led to a more stable results
- Test coverage increased
- Fix #2
- Fix #5
- Two times increase in centerline guessing due to a change in the search algorithm.
- Centerline guessing now occurs by calculating the longest path between skeleton nodes, rather than polygon nodes as it was previously. As a result, the final output is smoother at the edges.
- Fix #1
- Fix #3
- Got rid of the
rmapshaper
dependency. Similar performance achieved only withgeos
in the backend. - Full
geos
support. - More tests covering
cnt_skeleton
have been added. - Transition from
SpatVector
togeos_geometry
and vice versa now happens faster through thewk
package, not throughsf
as before.
cnt_path_guess
performs 1.25 times faster due to a wiser usage of theigraph
andgeos
packages. Thetidygraph
dependency has been removed.- Now, the
cnt_path
family returns oneLINESTRING
, not a collection ofLINESTRINGS
.
- New function added
cnt_path_guess
which returns the longest centerline based on polygon only
- Twofold speed increase by converting from
terra
objects togeos
overwk
package norsf
as it was earlier. - Added ability to densify the input polygon through
geos::geos_densify
- Core functionality is added through the
cnt_skeleton
function - Super easy routing is implemented with
cnt_path
function, which can be applied in cases with predefined starting and ending points