From a5b909ff5bb9c1bc360fe59b4babd2055cb33737 Mon Sep 17 00:00:00 2001 From: olivroy <52606734+olivroy@users.noreply.github.com> Date: Wed, 3 Apr 2024 08:22:13 -0400 Subject: [PATCH 1/3] Update perimeter.R --- R/perimeter.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/perimeter.R b/R/perimeter.R index 001f9dd..413a0e6 100644 --- a/R/perimeter.R +++ b/R/perimeter.R @@ -19,6 +19,7 @@ st_perimeter_lwgeom = function(x) { #' @keywords internal #' @name perimeter-deprecated #' @param x object of class \code{sf}, \code{sfc} or \code{sfg} +#' @export st_perimeter = function(x) { .Deprecated("sf::st_perimeter or lwgeom::st_perimeter_lwgeom") # for back compatibility From ef789789adaa5209f4b8fb0386c9508b88a24f76 Mon Sep 17 00:00:00 2001 From: olivroy <52606734+olivroy@users.noreply.github.com> Date: Wed, 3 Apr 2024 08:23:25 -0400 Subject: [PATCH 2/3] Update NAMESPACE --- NAMESPACE | 1 + 1 file changed, 1 insertion(+) diff --git a/NAMESPACE b/NAMESPACE index 4029e30..04601ec 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -45,6 +45,7 @@ export(st_geohash) export(st_is_polygon_cw) export(st_linesubstring) export(st_minimum_bounding_circle) +export(st_perimeter) export(st_perimeter_2d) export(st_perimeter_lwgeom) export(st_snap_to_grid) From 98f2f43ed4cfcff14f738b851567d0661bf4be08 Mon Sep 17 00:00:00 2001 From: olivroy <52606734+olivroy@users.noreply.github.com> Date: Wed, 3 Apr 2024 08:26:26 -0400 Subject: [PATCH 3/3] Create perimeter-deprecated.Rd --- man/perimeter-deprecated.Rd | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 man/perimeter-deprecated.Rd diff --git a/man/perimeter-deprecated.Rd b/man/perimeter-deprecated.Rd new file mode 100644 index 0000000..a3e0dff --- /dev/null +++ b/man/perimeter-deprecated.Rd @@ -0,0 +1,17 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/deprec.R +\name{perimeter-deprecated} +\alias{perimeter-deprecated} +\alias{st_perimeter} +\title{compute perimeter from polygons or other geometries} +\usage{ +st_perimeter(x) +} +\arguments{ +\item{x}{object of class \code{sf}, \code{sfc} or \code{sfg}} +} +\description{ +Deprecated. +Use \code{sf::st_perimeter()} or \code{st_perimeter_lwgeom()} instead. +} +\keyword{internal}