R/shiftAz.R
shiftAz.Rd
Shift features by azimuth and distance
shiftAz(object, az, dist)
The object to be shifted.
Shift azimuth, in decimal degrees.
Shift distance, in object projection units.
object
The shifted object.
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)