Learn R Programming

lidR (version 2.2.5)

lasfiltersurfacepoints: Filter the surface points

Description

This function is superseded by the algorithm highest usable in lasfilterdecimate

Usage

lasfiltersurfacepoints(las, res)

Arguments

las

An object of class LAS or LAScatalog.

res

numeric. The resolution of the grid used to filter the point cloud

Value

If the input is a LAS object, returns a LAS object. If the input is a LAScatalog, returns a LAScatalog.

Supported processing options

Supported processing options for a LAScatalog (in bold). For more details see the LAScatalog engine documentation:

  • chunk size: How much data is loaded at once.

  • chunk buffer: This function guarantee a strict wall-to-wall continuous output. The buffer option is not considered.

  • chunk alignment: Align the processed chunks.

  • progress: Displays a progression estimation.

  • output files*: Mandatory because the output is likely to be too big to be returned in R and needs to be written in las/laz files. Supported templates are {XLEFT}, {XRIGHT}, {YBOTTOM}, {YTOP}, {XCENTER}, {YCENTER} {ID} and, if chunk size is equal to 0 (processing by file), {ORIGINALFILENAME}.

  • select: The function will write files equivalent to the original ones. Thus select = "*" and cannot be changed.

  • filter: Read only points of interest.

See Also

Other lasfilters: lasfilterduplicates(), lasfilters, lasfilter()

Examples

Run this code
# NOT RUN {
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las = readLAS(LASfile)
subset = lasfiltersurfacepoints(las, 2)
plot(subset)

# }

Run the code above in your browser using DataLab