get_service_type {arcpullr}R Documentation

Get elements of a Service or Layer from an ArcGIS REST endpoint

Description

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

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.

Value

A character string defining the layer type

Examples

## Not run: 
get_service_type(reykjanes_lava_flow_url)

## End(Not run)

[Package arcpullr version 0.2.5 Index]