get_layers_by_spatial | R Documentation |
These functions are wrappers around get_spatial_layer
that are
specialized for querying by a spatial layer. They will make a POST request
to the query URL which returns data (if available) based on the appropriate
spatial feature (geometry
) and relationship (sp_rel
).
get_layer_by_poly(url, geometry, sp_rel = "contains", ...)
get_layer_by_line(url, geometry, sp_rel = "intersects", ...)
get_layer_by_point(url, geometry, sp_rel = "intersects", ...)
get_layer_by_multipoint(url, geometry, sp_rel = "intersects", ...)
get_layer_by_envelope(url, geometry, sp_rel = "intersects", ...)
get_layer_by_spatial(
url,
geometry,
geom_type,
sp_ref = NULL,
sp_rel = "intersects",
...
)
url |
A character string of the url for the layer to pull |
geometry |
An |
sp_rel |
Character. The type of relationship to query by. Possible options include "intersects", "contains", and "crosses" |
... |
Additional arguements to pass to |
geom_type |
A character of the geometry type to be used. This param is
automatically specified in all |
sp_ref |
The spatial reference value |
An object of class "sf" of the appropriate layer
## Not run:
mke_waters <- get_layer_by_poly(wi_hydro_url, mke_county)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.