View source: R/tile_functions.R
prepare_tile | R Documentation |
This function imports data from a LAS file and prepares it for further processing. Point heights are normalized to relative height above ground, either by fitting a surface model to ground points (plus water points by default) or by taking ground elevations from a provided raster DEM. Height normalization can be disabled if desired. Flight lines are identified based on GPS times for points and, optionally, any flight lines with less than a threshold number of points are discarded. The flightlineID column is added to the LAS header so that it will persist if the object is written to file.
prepare_tile(
path,
normalize.heights = FALSE,
treat.as.ground = c(2, 9),
drop.negative = TRUE,
drop.negative.threshold = 0,
drop.missing.coords = TRUE,
fields = NULL,
classes = NULL,
min.points = 1000,
flight.gap = 60,
unzip.dir = NULL
)
path |
Path to the LAS or LAZ format file to process. If the file
extension is '.zip' it is assumed to be a compressed LAS file that will be
unzipped before processing (see the |
normalize.heights |
Whether, and how, to normalize point heights to ground level. Can be one of the following:
The default value is |
treat.as.ground |
Point classes to treat as ground points when
normalizing point heights by interpolation using one of the lidR package
algorithms ( |
drop.negative |
If |
drop.negative.threshold |
If |
drop.missing.coords |
If |
fields |
Either |
classes |
Point classes to include or exclude. The default
( |
min.points |
The minimum number of points in a flight line for it to be retained in the imported tile. The default value (1000) is intended to exclude flight lines that only appear at the margins of the tile. |
flight.gap |
The minimum time gap (seconds) to use when assigning points to flight lines. |
unzip.dir |
The directory in which to uncompress a compressed LAS file
(identified by a '.zip' extension). If |
A LAS
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.