Get layer information from a feature service
Arguments
- url
the feature service url
- ...
Named arguments passed on to
.cache_download.nocacheif set to TRUE all caching is disabled
.cachethe location of the downloaded files
.stalehow long to leave this file before replacing it.
.extnthe file name extension
Examples
svc = "https://services1.arcgis.com/ESMARspQHYMw9BZ9/ArcGIS/rest/services"
fs = sprintf("%s/%s",svc,"Countries_December_2024_Boundaries_UK_BUC/FeatureServer")
url = sprintf("%s/%s",fs,"0")
featureServerInfo(fs)
#> # A tibble: 1 × 9
#> id name parentLayerId defaultVisibility subLayerIds minScale maxScale
#> <int> <chr> <int> <lgl> <lgl> <int> <int>
#> 1 0 CTRY_DEC_… -1 TRUE NA 0 0
#> # ℹ 2 more variables: type <chr>, geometryType <chr>