Learn R Programming

shadow (version 0.7.1)

classifyAz: Classify azimuth of line segments

Description

Classify azimuth of line segments

Usage

classifyAz(sl)

Arguments

sl

A SpatialLines* object

Value

A numeric vector with the segment azimuth values (in decimal degrees)

Examples

Run this code
# NOT RUN {
build_seg = toSeg(build[1, ])
az = classifyAz(build_seg)
plot(build_seg, col = rainbow(4)[cut(az, c(0, 90, 180, 270, 360))])
raster::text(
  rgeos::gCentroid(build_seg, byid = TRUE),
  round(az)
)

# }

Run the code above in your browser using DataLab