spatial_query: Spatial Query

View source: R/spatial_query.R

spatial_queryR Documentation

Spatial Query

Description

Convert SF/SFC to spatial query.

Usage

spatial_query(x, spatial_filter = "esriSpatialRelIntersects")

Arguments

x

an sf or sfc object

spatial_filter

the spatial relationship of the filter to specify in the query. Default is esriSpatialRelIntersects. Options are: esriSpatialRelIntersects, esriSpatialRelContains, esriSpatialRelCrosses, esriSpatialRelEnvelopeIntersects, esriSpatialRelIndexIntersects, esriSpatialRelOverlaps, esriSpatialRelTouches or esriSpatialRelWithin.

Details

This function accepts an sf/sfc object and converts it to a spatial query fitting the esri api spec.

Value

a list with geometry, geometryType, SpatialRel and inSR


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