esriLayers: Get All Layers and Tables for the whole service

View source: R/esriLayers.R

esriLayersR Documentation

Get All Layers and Tables for the whole service

Description

Retrieve JSON for all layers and tables as specified in https://si-pweb-vecmap.si.edu/vectormap/sdk/rest/index.html#/All_Layers_and_Tables/02ss0000005t000000/. Service type must either be a MapServer or FeatureServer. Performs a POST request towards the server url in one of the following the forms:

  • https://<host>/<instance>/rest/services/<folderName>/serviceName>/MapServer/layers

  • https://<host>/<instance>/rest/services/serviceName>/MapServer/layers

  • https://<host>/<instance>/rest/services/<folderName>/serviceName>/FeatureServer/layers

  • https://<host>/<instance>/rest/services/serviceName>/FeatureServer/layers

Usage

esriLayers(url, token = "")

Arguments

url

The url for the Map/Feature server. If given a url specifying a layer or table ID it will truncate it.

token

String for authentication token (if needed).

Value

A list from the JSON return.


yonghah/esri2sf documentation built on June 2, 2022, 8:18 a.m.