vapour (version 0.5.5)

vapour_vsi_list: Read GDAL virtual source contents

Description

Obtain the names of available items in a virtual file source.

Usage

vapour_vsi_list(dsource, ...)

Arguments

dsource

data source name (path to file, connection string, URL) with virtual prefix, see Details

...

ignored

Value

character vector listing of items

Details

The dsource must begin with a valid form of the special vsiPREFIX, for details see GDAL Virtual File Systems.

Note that the listing is not recursive, and so cannot be used for automation. One would use this function interactively to determine a useable /vsiPREFIX/dsource data source string.

Examples

Run this code
# NOT RUN {
## example from https://github.com/hypertidy/vapour/issues/55
file <- "http/radmap_v3_2015_filtered_dose/radmap_v3_2015_filtered_dose.ers.zip"
url <- "http://dapds00.nci.org.au/thredds/fileServer/rr2/national_geophysical_compilations"
u <- sprintf("/vsizip//vsicurl/%s", file.path(url, file))
vapour_vsi_list(u)
#[1] "radmap_v3_2015_filtered_dose"     "radmap_v3_2015_filtered_dose.ers"
#[3] "radmap_v3_2015_filtered_dose.isi" "radmap_v3_2015_filtered_dose.txt"
# }

Run the code above in your browser using DataCamp Workspace