Skip to contents

Thin 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).

Usage

morie_datasets_tps_arcgis_hub_download(
  hub_id,
  format = "csv",
  layer_idx = 0L,
  dest = NULL
)

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().

Value

Path to the downloaded file.