View source: R/catalog_functions.R
compile_metadata | R Documentation |
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.
compile_metadata(path, dirs = "LAS", exts = "html", extent.crs = 4326)
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 |
A spatial data frame containing summary metadata and tile extent polygons.
read_html_metadata
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.