Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Esri Developer
  • arcgisutils

Retrieve metadata

Source:R/utils-requests.R
fetch_layer_metadata.Rd

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

anhttr2_token from one of the providedauth_ functions

call

defaultrlang::caller_env(). The calling environment passed todetect_errors().

Value

returns a list object

Details

  • fetch_layer_metadata() given a request, fetches the metadata by settingthe query parameterf=json

Examples

# url is broken into parts to fit within 100 characters to avoid CRAN notesurl_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))#> [1] "currentVersion"     "id"                 "name"#> [4] "inDedicatedHosting" "preferredHost"      "type"

Was this page helpful?

Your browser is no longer supported. Please upgrade your browser for the best experience. See ourbrowser deprecation post for more details.


[8]ページ先頭

©2009-2025 Movatter.jp