
Last chance! 50% off unlimited learning
Sale ends in
Filter points of interest (POI) from a LAS object where conditions are true.
filter_poi(las, ...)
An object of class LAS
Logical predicates. Multiple conditions are combined with '&' or ','
An object of class LAS
Other filters:
filter_duplicates()
,
filter_surfacepoints()
,
filters
# NOT RUN {
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
lidar = readLAS(LASfile)
# Select the first returns classified as ground
firstground = filter_poi(lidar, Classification == 2L & ReturnNumber == 1L)
# Multiple arguments are equivalent to &
firstground = filter_poi(lidar, Classification == 2L, ReturnNumber == 1L)
# Multiple criteria
first_or_ground = filter_poi(lidar, Classification == 2L | ReturnNumber == 1L)
# }
Run the code above in your browser using DataLab