View source: R/spatial_query.R
spatial_query | R Documentation |
Convert SF/SFC to spatial query.
spatial_query(x, spatial_filter = "esriSpatialRelIntersects")
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. |
This function accepts an sf/sfc object and converts it to a spatial query fitting the esri api spec.
a list with geometry, geometryType, SpatialRel and inSR
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.