catalog_subset: Subset a LAScatalog

catalog_intersectR Documentation

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")
)

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)

Value

A LAScatalog object

Examples

## Not run: 
ctg = readLAScatalog("<Path to a folder containing a set of .las files>")
new_ctg = catalog_select(ctg)

## End(Not run)

Jean-Romain/lidR documentation built on April 6, 2024, 9:41 p.m.