rgrass_overlay: Overlays two vector geometries using GRASS GIS

rgrass_overlayR Documentation

Overlays two vector geometries using GRASS GIS

Description

This function overlais one geometry with another. The projection must be identical.

Usage

rgrass_overlay(
  x,
  y,
  operator = "and",
  ...,
  unique.colnames = TRUE,
  check.geom = TRUE,
  stringsAsFactors = FALSE,
  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.

operator

operator of v.overlay. "and": intersection, "or": union, "not": difference, "xor": symmetrical difference. Default: "and"

...

other option for v.overlay set into params.

unique.colnames

Make columns names unique using make.unique. Default: TRUE

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

stringsAsFactors

Default: FALSE

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.