R/valid.R

Defines functions lwgeom_make_valid

Documented in lwgeom_make_valid

#' Make an invalid geometry valid
#'
#' Make an invalid geometry valid
#' @param x object of class \code{sfc}
#' @export
lwgeom_make_valid = function(x) {
	stopifnot(inherits(x, "sfc"))
	st_sfc(CPL_make_valid(x), crs = st_crs(x))
}

Try the lwgeom package in your browser

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

lwgeom documentation built on May 29, 2024, 9:40 a.m.