Shift features by azimuth and distance

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

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)