--- title: "Spatial Queries" date: "`r format(Sys.time(), '%d %B, %Y')`" output: html_document: theme: version: 5 vignette: > %\VignetteIndexEntry{Spatial Queries} %\VignetteEncoding{UTF-8} %\VignetteEngine{knitr::rmarkdown} editor_options: markdown: wrap: 72 --- --- title: "Spatial Queries" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Introduction to arcpullr} %\VignetteEncoding{UTF-8} %\VignetteEngine{knitr::rmarkdown} editor_options: markdown: wrap: 72 --- To see more complete package documentation check out: https://pfrater.github.io/arcpullr/
```{r, include = FALSE} knitr::opts_chunk$set( collapse = TRUE, comment = "#>", warning = FALSE, message = FALSE ) library(arcpullr) library(sf) sf::sf_use_s2(FALSE) ``` ```{r, echo = FALSE} # ``` ArcGIS REST API's may be spatially queried using the get_layer_by\_\* family of functions. These functions require a spatial object of class `sf` (*i.e.* of the R package [sf: Simple Features for R](https://r-spatial.github.io/sf/)) and a [Spatial Relationship](https://help.arcgis.com/en/webapi/wpf/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.SpatialRelationship.html) to be passed to the geometry and `sp_rel` arguments respectively. The package contains five functions that can be used to perform spatial queries: