classifyAz | R Documentation |
Classify azimuth of line segments
classifyAz(sl)
sl |
A |
A numeric
vector with the segment azimuth values (in decimal degrees)
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),
as(sf::st_centroid(sf::st_geometry(sf::st_as_sf(build_seg))), "Spatial"),
round(az)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.