Learn R Programming

shadow (version 0.1.3)

classifyAz: Classify azimuth of line segments

Description

Classify azimuth of line segments

Usage

classifyAz(sl)

Arguments

sl
A SpatialLines* object

Value

A list with two elements:
  • az the segment azimuth values
  • q the corresponding quarters

Examples

Run this code
data(build)
build_seg = toSeg(build[1, ])
az = classifyAz(build_seg)
plot(build_seg, col = rainbow(4)[az$q])
raster::text(rgeos::gCentroid(build_seg, byid = TRUE), round(az$az))

Run the code above in your browser using DataLab