Learn R Programming

shadow (version 0.7.1)

shiftAz: Shift features by azimuth and distance

Description

Shift features by azimuth and distance

Usage

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

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab