st_wrap_x: Splits input geometries by a vertical line and moves...

Description Usage Arguments Value Examples

View source: R/wrap_x.R

Description

Splits input geometries by a vertical line and moves components falling on one side of that line by a fixed amount

Usage

1
st_wrap_x(x, wrap, move)

Arguments

x

object with geometries to be split

wrap

x value of split line

move

amount by which geometries falling to the left of the line should be translated to the right

Value

object of the same class as x

Examples

1
2
3
4
library(sf)
demo(nc, ask = FALSE, echo = FALSE)
x = st_wrap_x(nc, -78, 10)
plot(x[1])

lwgeom documentation built on Oct. 6, 2021, 5:12 p.m.

Related to st_wrap_x in lwgeom...