get_by_fids | R Documentation |
Get a layer by querying the FIDs
get_by_fids(
endpoint,
query,
my_token,
return_geometry,
return_n,
layer_details,
out_fields,
object_ids = NULL
)
endpoint |
a string defining the enpoint url.
It can be generated by the |
query |
the query to POST |
my_token |
an access token acquired via |
return_geometry |
should the geometry be returned or just a table? |
return_n |
how many features (maximum) should be returned by the query? |
layer_details |
the layer details returned by the get_layer_details function |
out_fields |
the fields of the layer to return (character vector) |
object_ids |
a vector of object IDs to return if this argument is NULL the function will get them but passing them in aids performance if they have already been returned |
This function works by checking if the requested return count is less tha the max record count. If so, it doesn't bother with getting the FIDs and just requests the data and returns it. Getting FIDs is a big overhea so this should be avoided where possible.
a tibble or sf object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.