Skip to contents

Check to see which spatial relation types are applicable to the feature classes being queried and the sf objects use do to a spatial query

Usage

valid_sp_rel(fc1, fc2, pull = TRUE)

Arguments

fc1

Character. The feature class type being queried. Available options are "point", "multipoint", "line", or "area".

fc2

Character. The geometry type of the sf object used to do a spatial query. Available options are "point", "multipoint", "line", or "area".

pull

Logical. Pull the available options (TRUE) or print all columns of the sp_rel_valid data.frame for the appropriate fc1 and fc2

Value

Either a vector or filtered data.frame showing the appropriate sp_rels for the given feature classes

Examples

valid_sp_rel("line", "line")
#> [1] "esriSpatialRelCrosses"            "esriSpatialRelEnvelopeIntersects"
#> [3] "esriSpatialRelIndexIntersects"    "esriSpatialRelIntersects"        
#> [5] "esriSpatialRelRelation"