Skip to content

Tree height listing and export #741

Closed Answered by Jean-Romain
mloricn2 asked this question in Q&A
Discussion options

You must be logged in to vote

You can use rgl::texts3d

library(lidR)
LASfile <- system.file("extdata", "MixedConifer.laz", package="lidR")
las <- readLAS(LASfile, select = "xyzc", filter = "-inside_circle 481300 3812980 25")

dtm <- rasterize_terrain(las, algorithm = tin())
ttops <- locate_trees(las, lmf(ws = 5))

xy = sf::st_coordinates(ttops)

x <- plot(las)
add_treetops3d(x, ttops)
rgl::texts3d(xy[,1]-x[1], xy[,2]-x[2], xy[,3]+1.5, round(xy[,3],0), col = "white")

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mloricn2
Comment options

@Jean-Romain
Comment options

Answer selected by mloricn2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants