aur_get: Fetch AURIN dataset.

Description Usage Arguments Value Note Examples

View source: R/get.R

Description

Query data using WFS getFeature.

Usage

1
2
3
4
5
6
7
8
aur_get(open_api_id, crs = "EPSG:4326", params = NULL)

aur_build_request(
  open_api_id,
  crs = "EPSG:4326",
  params = NULL,
  outputFormat = "application/json"
)

Arguments

open_api_id

Character. You can find the layer names for AURIN’s datasets by browsing the Data Catalogue. The layer name is found in the ‘AURIN Open API ID’ field in a dataset’s metadata.

crs

default as "EPSG:4326". The Coordinate Reference System you wish to use

params

a named list that contains additional parameters to be used when constructing a WFS GetFeature request. This is useful when you know the ID of a specific feature or the maximum number of features you want to query. See examples here.

outputFormat

default as "application/json", see https://docs.geoserver.org/latest/en/user/services/wfs/outputformats.html for other available options.

Value

an sf::sf object.

Note

aur_build_request() returns a URL.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# follow the example in <https://aurin.org.au/resources/aurin-apis/aurin-open-api-and-r/>
## Not run: 
aur_get("aurin:datasource-UQ_ERG-UoM_AURIN_DB_public_toilets")

# Get the first 10 features.
aur_get(
   open_api_id,
   params = list(maxFeatures = 10)
 )

## End(Not run)

aurin documentation built on Feb. 1, 2022, 1:06 a.m.