ExtractCRSFromLocalIndex: LidarIndexR - Retrieve a shapefile (all files) and read CRS...

ExtractCRSFromLocalIndexR Documentation

LidarIndexR – Retrieve a shapefile (all files) and read CRS information

Description

Retrieves all files related to a shapefile (same name as fileName but different extensions) and then reads CRS information from the projection file.

Usage

ExtractCRSFromLocalIndex(basePath, folderName, fileName, quiet = FALSE, ...)

Arguments

basePath

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

folderName

Folder name on the basePath containing the shapefile.

fileName

A string containing the name of a single file. All files with the same name (but different extensions) will be retrieved. The projection file is then read to provide CRS information.

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: 
ExtractCRSFromLocalIndex("ftp://rockyftp.cr.usgs.gov/vdelivery/Datasets/",
    "Staged/Hydrography/NHD/HU4/HighResolution/Shape/",
    "NHD_H_0101_HU4_Shape.shp",
    ".")

## End(Not run)

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