Restrict results to those from a specified area. Areas must be polygons.
Polygons must be supplied as an sf
object, a 'well-known text' (WKT)
string, or a shapefile. Polygons and shapefiles must not be overly complex
(i.e. have too many characters or too many vertices) or they will not be
accepted in a query to the ALA.
st_crop
is masked from sf
, but when piped after galah_call()
, is
functionally synonymous with galah_polygon()
Usage
# S3 method for data_request
st_crop(x, y, ...)
Arguments
- x
An object of class
data_request
, created usinggalah_call()
- y
A single
sf
object, WKT string or shapefile- ...
currently ignored
See also
galah_polygon()
, with which this function is synonymous.