sp_rel_xref {arcpullr}R Documentation

Lookup function for shorthand versions of spatial relation text strings

Description

After typing "esriSpatialRelIntersects" into 4 to 5 functions, you'll get pretty sick of typing that. This function serves to allow shorthand strings to be passed to the sp_rel arguments of the get_layers_by_spatial family of functions. For example, you can pass "intersects" to this function and it will return "esriSpatialRelIntersects"

Usage

sp_rel_xref(x)

Arguments

x

A character string. One of "contains", "crosses", "envelopeintersects", "indexintersects", "intersects", "overlaps", "relation", "touches", "within"

Value

The appropriately named ESRI version of x. For example, an x value of "intersects" returns "esriSpatialRelIntersects"

Examples

sp_rel_xref("intersects")

[Package arcpullr version 0.2.9 Index]