rsaga_erase: Erase one geometry from another using Saga GIS

rsaga_eraseR Documentation

Erase one geometry from another using Saga GIS

Description

This function erase one geometry from another. The projection must be identical.

Usage

rsaga_erase(
  x,
  y,
  method = "1",
  split = "0",
  attributes = "1",
  env.rsaga = RSAGA::rsaga.env(),
  check.geom = TRUE,
  quiet = TRUE
)

Arguments

x

object of class sf. First element: Should be either of type line or polygon

y

object of class sf. Second element: Always of type polygon.

method

method of erase. Either "1": Polygon-Polygon-Erase , or "2": Line-Polygon-Erase. Default: "1"

split

Set to "1", if multi-part polygons should be splitted to single-part polygons. Default: "0"

attributes

attributes inherited to intersection result. 0 polygon, 1 line, 2 line and polygon. Default: "1"

env.rsaga

SAGA GIS environemnt. Default: rsaga.env

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: TRUE

quiet

If FALSE then comments are printed. Default: TRUE

Value

Geometry of class sfc


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