rgrass_make_valid: Make geometries valid using GRASS GIS

rgrass_make_validR Documentation

Make geometries valid using GRASS GIS

Description

This function cleans a geometry.

Usage

rgrass_make_valid(
  x,
  tool = "break",
  check.geom = FALSE,
  stringsAsFactors = FALSE,
  quiet = TRUE
)

Arguments

x

object of class sf. Always of type polygon.

tool

Cleaning tool. Can be "break, snap, rmdangle, chdangle, rmbridge, chbridge, rmdupl, rmdac, bpol, prune, rmarea, rmline, rmsa". Default: "break"

check.geom

If set to TRUE then geometry is checked with sf::st_is_valid (geos_query). If there are invalid geometries, geometries are repaired using st_make_valid (valid). Default: FALSE

stringsAsFactors

Default: FALSE

quiet

If FALSE then comments are printed. Default: TRUE

Value

Geometry of class sf


raff-k/VLSM documentation built on Oct. 13, 2023, 11:13 a.m.