classifyAz: Classify azimuth of line segments

Description Usage Arguments Value Examples

View source: R/classifyAz.R

Description

Classify azimuth of line segments

Usage

1

Arguments

sl

A SpatialLines* object

Value

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

Examples

1
2
3
4
5
6
7
8
data(rishon)
build_seg = toSeg(rishon[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)
)

michaeldorman/shadow documentation built on Sept. 30, 2018, 4:37 a.m.