Skip to contents

Portal-agnostic sibling to morie_datasets_tps_arcgis_hub_by_id(). Works for ANY ArcGIS Online item GUID (not just TPS Hub catalog entries). Same five format paths (json / geojson / csv / shapefile / fgdb).

Usage

morie_datasets_arcgis_item_by_id(
  item_id,
  format = "json",
  where = "1=1",
  max_features = NULL,
  layer_idx = 0L,
  dest = NULL
)

Arguments

item_id

32-char hex GUID.

format

One of "json" (default), "geojson", "csv", "shapefile", "fgdb".

where

Optional SoQL-style WHERE for the FeatureServer query. Default "1=1".

max_features

Optional row cap.

layer_idx

Integer layer index (default 0L).

dest

Optional destination path for binary downloads.

Value

A data.frame (json / csv), parsed GeoJSON list, or file path (binary).

Details

The hub_id is ALWAYS resolved live (via the items API) because there's no bundled catalog for non-TPS items. If you find yourself calling this against the same item repeatedly, consider adding a named wrapper (e.g. the shipped morie_datasets_toronto_zoning_per_neighbourhood wraps EsriCanadaEducation's af06159170914808983959df6163fc86 with bundled fixtures for offline use).