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 line or polygon

y

object of class sf. Second element: Always polygon.

method

method of erase. Either "1": , or "2": Line-Polygon Intersection. 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::rsaga.env()

check.geom

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

Value

Geometry of class sfc


raff-k/Lslide documentation built on March 29, 2022, 6:52 p.m.