FetchAndExtractCRSFromPoints: LidarIndexR - Retrieve CRS information from a LAS/LAZ point...

FetchAndExtractCRSFromPointsR Documentation

LidarIndexR – Retrieve CRS information from a LAS/LAZ point file

Description

Reads CRS information from LAS/LAZ files on a remote host. This is done by reading only the file header headerOnly = TRUE or retrieving the entire file and reading the header headerOnly = FALSE.

Usage

FetchAndExtractCRSFromPoints(
  baseURL,
  folderName,
  tempFolder,
  headerOnly = TRUE,
  fetchnew = 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.

tempFolder

A valid folder name where the LAS/LAZ file header can be temporarily stored. The header file is deleted after use.

headerOnly

Boolean. If TRUE, only the file header is read. If FALSE, the entire LAS/LAZ file is retrieved and then the header is read to extract CRS information.

fetchnew

Boolean. If TRUE, the file is always retrieved. If FALSE, the file is only retrieved if it does not already exist in the tempFolder.

quiet

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

...

Arguments passed to RCurl::getURL().

Value

String (invisible) containing a valid input value for st_crs().

Examples

## Not run: 
FetchAndExtractCRSFromPoints()

## End(Not run)

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