-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreturn_spatial_data.Rd
39 lines (33 loc) · 1.11 KB
/
return_spatial_data.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query_functions.R
\name{return_spatial_data}
\alias{return_spatial_data}
\title{Perform an API query and handle the returned spatial data}
\usage{
return_spatial_data(
ids,
url,
fields,
crs = 4326,
max_tries = 3,
verbosity = 0,
...
)
}
\arguments{
\item{ids}{The IDs of the data to be requested}
\item{url}{The API URL to query}
\item{fields}{Which fields to include in the table returned}
\item{crs}{The Coordinate Reference System (CRS) code to use}
\item{max_tries}{integer. 3 by default (for now). Passed to \code{httr2::req_retry ()} and controls how many times to try to perform the request, should
initial attempt(s) fail.}
\item{verbosity}{integer. 0 by default. Passed to \code{httr2::req_perform()} and
controls the verbosity of the printed output from performing the request.
Can be any integer from 0 to 3, or \code{NULL}. See \code{?req_perform} for more
detail.}
\item{...}{Any arguments to be passed to \code{opengeo_api_req()}}
}
\description{
Perform an API query and handle the returned spatial data
}
\keyword{internal}