Learn R Programming

arcpullr (version 0.3.2)

sp_rel_xref: 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)

Value

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

Arguments

x

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

Examples

Run this code
sp_rel_xref("intersects")

Run the code above in your browser using DataLab