shiftAz: Shift features by azimuth and distance

Description Usage Arguments Value Examples

View source: R/shiftAz.R

Description

Shift features by azimuth and distance

Usage

1
shiftAz(object, az, dist)

Arguments

object

The object to be shifted.

az

Shift azimuth, in decimal degrees.

dist

Shift distance, in object projection units.

Value

The shifted object.

Examples

1
2
3
4
5
s = c(270, 90, 180, 0)
build_shifted = shiftAz(build, az = s, dist = 2.5)
plot(build)
plot(build_shifted, add = TRUE, border = "red")
raster::text(rgeos::gCentroid(build, byid = TRUE), s)

shadow documentation built on March 15, 2021, 1:07 a.m.

Related to shiftAz in shadow...