get_unique_id_field: Get ID field

View source: R/utility_functions.R

get_unique_id_fieldR Documentation

Get ID field

Description

Get the unique ID field from the layer details

Usage

get_unique_id_field(endpoint, layer_details)

Arguments

endpoint

the layer endpoint

layer_details

the layer details object returned by get_layer_details.

Details

MapServers and Feature Servers encode the unique id field differently. This function uses two methods to retrieve the ID field from the layer details. Unique IDs are used for caching.

Value

a string defining the field that encodes the unique IDs


MatthewJWhittle/getarc documentation built on April 22, 2023, 12:16 p.m.