compile_metadata: Create a catalog of LAS tiles from HTML metadata

View source: R/catalog_functions.R

compile_metadataR Documentation

Create a catalog of LAS tiles from HTML metadata

Description

This function recurses through a directory tree containing (usually) LAS tiles and associated HTML metadata documents, and compiles a summary in the form of a spatial data frame (class sf object). The geometry column of the spatial data frame consists of rectangular polygons for tile extents. Presently, the function assumes that HTML metadata is in the format used by Spatial Services, New South Wales.

Usage

compile_metadata(path, dirs = "LAS", exts = "html", extent.crs = 4326)

Arguments

path

Top of the directory tree containing tiles to catalog.

dirs

One or more path elements to subset the directory tree. The default is "LAS" to ignore, for example, "DEM" directories present in data provided by Spatial Services, New South Wales. Set to NULL or an empty string if not required.

exts

One or more file extensions to identify metadata files.

extent.crs

A coordinate reference system specifier (e.g. integer EPSG code) to use for LAS tile extent polygons. The default is EPSG:4326 (WGS84). Set to NULL or sf::NA_crs_ if you do not want to apply a single CRS to all extent polygons.

Value

A spatial data frame containing summary metadata and tile extent polygons.

See Also

read_html_metadata

Examples

## Not run: 
# Compile metadata and save as an ESRI shapefile
meta <- compile_metadata("D:/mydata")
sf::st_write(meta, "metadata.shp", delete_layer = TRUE)

## End(Not run)


mbedward/CERMBlidar documentation built on April 10, 2024, 2:05 p.m.