Skip to contents

This family of functions is meant to pull attributes from a particular service or layer hosted on an ArcGIS REST API. If the service is an ImageServer or MapServer, then the behavior will be slightly different than for a Feature Layer (see details).

Usage

get_service_type(url, ...)

Arguments

url

A character string of a valid layer URL

...

Only used internally, but html can be passed

Value

A character string defining the layer type

Details

get_service_type will return the type of service or layer for the respective URL (or html) that is passed to the function. For a feature layer the function should return "feature_layer", for a Image or Map Server the function will return "image" or "map", respectively.

get_geometry_type will return the geometry type of feature service layers housed on an ArcGIS REST API server. If a URL is provided that points to a map or image layer the function will return an error (i.e. only feature layers have geometry types).

get_supported_operations will simply return a character vector that lists the supported operations for url.

Examples

if (FALSE) {
get_service_type(reykjanes_lava_flow_url)
}