fetch_layer_metadata {arcgisutils} | R Documentation |
Retrieve metadata
Description
Utility functions for feature service metadata.
Usage
fetch_layer_metadata(url, token = NULL, call = rlang::caller_env())
Arguments
url |
the url of the item. |
token |
an |
call |
default |
Details
-
fetch_layer_metadata()
given a request, fetches the metadata by setting the query parameterf=json
Value
returns a list object
Examples
# url is broken into parts to fit within 100 characters to avoid CRAN notes
url_parts <- c(
"https://services.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services",
"/USA_Counties_Generalized_Boundaries/FeatureServer/0"
)
furl <- paste0(url_parts, collapse = "")
meta <- fetch_layer_metadata(furl)
head(names(meta))
[Package arcgisutils version 0.3.0 Index]