View source: R/powerlines-classify_transmissiontowers.R
classify_transmissiontowers | R Documentation |
Attribute the class 15 to points that correspond to transmission towers using the positionning of the towers given by find_transmissiontowers. Using the transmission towers types and their orientation it computes the spatial box that emcompasses the towers and classify points within this rectangle as 'transmission tower'.
classify_transmissiontowers(las, towers, dtm, threshold = 2)
las |
An object of class LAS |
towers |
SpatialPointsDataFrame returned by find_transmissiontowers. |
dtm |
A RasterLayer. The digital terrain model is useful to find the bottom of the towers |
threshold |
numeric. Height above ground. Points below this elevation are not classified as transmission towers. |
A LAS object with an updated classification.
Roussel J, Achim A, Auty D. 2021. Classification of high-voltage power line structures in low density ALS data acquired over broad non-urban areas. PeerJ Computer Science 7:e672 https://doi.org/10.7717/peerj-cs.672
Other electrical network:
classify_wires()
,
get_tower_spec()
,
track_wires()
# A simple file with wires already clipped from 4 files + shapefile # of the network LASfile <- system.file("extdata", "wires.laz", package="lidRplugins") wireshp <- system.file("extdata", "wires.shp", package="lidRplugins") dtmtif <- system.file("extdata", "wire-dtm.tif", package="lidRplugins") las <- readLAS(LASfile, select = "xyzc") network <- sf::st_read(wireshp) dtm <- raster::raster(dtmtif) towers <- find_transmissiontowers(las, network, dtm, "waist-type") las <- classify_transmissiontowers(las, towers, dtm) plot(las, color = "Classification")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.