diff --git a/NAMESPACE b/NAMESPACE index e484e9a..c69e995 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -46,6 +46,7 @@ export(st_geom_from_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) 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 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}