
Direct multi-format downloader (binary or text) for a TPS Hub item
Source:R/datasets_tps_arcgis_hub.R
morie_datasets_tps_arcgis_hub_download.RdThin wrapper that just hits the Hub downloads endpoint without the
FeatureServer /query round-trip. Use this when you want the
canonical CSV / GeoJSON / Shapefile / FGDB exactly as the Hub UI
serves them (including any column-name and projection differences
that on-the-fly exports introduce vs the FeatureServer source).
Arguments
- hub_id
32-char hex GUID.
- format
One of
"csv","geojson","shapefile","fgdb".- layer_idx
Integer layer index (default
0L).- dest
Optional destination path; defaults to
tempfile().
Examples
cat <- morie_datasets_tps_arcgis_hub_layers(offline = TRUE)
# \donttest{
path <- try(morie_datasets_tps_arcgis_hub_download(
cat$hub_id[1], format = "csv"))
if (!inherits(path, "try-error")) path
#> [1] "/tmp/RtmpOKyZlD/file2e2632089e8c.csv"
# }