lidR (version 4.1.1)

catalog_intersect: Subset a LAScatalog

Description

Subset a LAScatalog interactively using the mouse. Subset a LAScatalog with a spatial object to keep only the tiles of interest. It can be used to select tiles of interest that encompass spatial objects.

Usage

catalog_intersect(
  ctg,
  y,
  ...,
  subset = c("subset", "flag_unprocessed", "flag_processed")
)

catalog_select( ctg, mapview = TRUE, subset = c("subset", "flag_unprocessed", "flag_processed") )

Value

A LAScatalog object

Arguments

ctg

A LAScatalog

y

`bbox`, `sf`, `sfc`, `Extent`, `Raster*`, `Spatial*` objects

...

ignored

subset

character. By default it subsets the collection It is also possible to flag the files to maintain the collection as a whole but process only a subset of its content. flag_unprocessed flags the files that will not be processed. flag_processed flags the files that will be processed.

mapview

logical. If FALSE, use R base plot instead of mapview (no pan, no zoom, see also plot)

Examples

Run this code
if (FALSE) {
ctg = readLAScatalog("")
new_ctg = catalog_select(ctg)
}

Run the code above in your browser using DataLab