FetchAndExtractCRSFromIndex | R Documentation |
Retrieves all files related to a shapefile (same name as fileName
but
different extensions) and then reads CRS information from the projection
file.
FetchAndExtractCRSFromIndex(
baseURL,
folderName,
fileName,
tempFolder,
fetchnew = FALSE,
quiet = FALSE,
...
)
baseURL |
URL for a folder on a remote host. Trailing slash should not be included. |
folderName |
Folder name on the |
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. |
tempFolder |
A valid folder name where the files can be temporarily stored. |
fetchnew |
Boolean. If TRUE, the files are always retrieved. If FALSE,
the files are only retrieved if they do not already exist in the |
quiet |
Boolean to control display of status information. If TRUE, information is not displayed. Otherwise, status information is displayed. |
... |
Arguments passed to |
String (invisible) containing a valid input value for st_crs()
.
## Not run:
FetchAndExtractCRSFromIndex("ftp://rockyftp.cr.usgs.gov/vdelivery/Datasets/",
"Staged/Hydrography/NHD/HU4/HighResolution/Shape/",
"NHD_H_0101_HU4_Shape.shp",
".")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.