BuildIndexFromPoints: LidarIndexR - Create spatial index by reading LAS/LAZ file...

BuildIndexFromPointsR Documentation

LidarIndexR – Create spatial index by reading LAS/LAZ file headers

Description

Longer description

Usage

BuildIndexFromPoints(
  baseURL,
  folderName,
  outputFile,
  projString = NULL,
  outputCRS = NULL,
  fileType = "\\.las|\\.laz",
  dirFormat = "ls",
  dimensionThreshold = 50000,
  appendInfo = NULL,
  rebuild = FALSE,
  quiet = FALSE
)

Arguments

baseURL

URL for a folder on a remote host. Trailing slash should not be included.

folderName

Folder name on the baseURL containing LAS/LAZ files.

outputFile

Full path and filename on the local file system for the index file.

projString

A valid projection string that can be used with the crs parameter in st_sf. projString should represent the projection pf the point data. If using EPSG codes, do not enclose the EPSG number in quotes.

outputCRS

A valid projection string that can be used with the crs parameter in st_transform to reproject the index.

fileType

Any valid string for the pattern parameter in grep(). "$" will be appended to the string to search for file/folder names ending with values in fileType.

dirFormat

String indicating the expected directory format for the URL. Valid values are "dir" if the URL returns the Date, Time, Attribute/Size, and file name; "ls" if the URL returns directory information similar to the UNIX ls -al command; or "" if you want the function to try to determine the directory format.

dimensionThreshold

Size threshold used to omit files from the index. This is intended to help omit invalid LAS.LAZ files from the index. If the height or width of the point tile exceeds the threshold, the tile will be omitted.

appendInfo

Data frame (single row) with values to append to each feature in the return sf object. If NULL, no information is appended. If appendInfo is sf object, the geometry will be removed before appending to each feature.

rebuild

Boolean. If TRUE, the index is always created. If FALSE, the index is only created if it does not already exist.

quiet

Boolean to control display of status information. If TRUE, information is not displayed. Otherwise, status information is displayed.

Value

Boolean indicating success (TRUE) or failure (FALSE).

Examples

## Not run: 
BuildIndexFromPoints()

## End(Not run)

bmcgaughey1/LidarIndexR documentation built on April 14, 2025, 6:07 p.m.