Learn R Programming

VicmapR (version 0.2.3)

vicmap_query: Establish Vicmap Query

Description

Begin a Vicmap WFS query by selecting a WFS layer. The record must be available as a Web Feature Service (WFS) layer (listed in listLayers())

Usage

vicmap_query(layer, CRS = 4283, wfs_version = "2.0.0")

Value

object of class vicmap_promise, which is a 'promise' of the data that can be returned if collect() is used

Arguments

layer

vicmap layer to query. Options are listed in listLayers()

CRS

Coordinate Reference System (default is 4283)

wfs_version

The current version of WFS is 2.0.0. GeoServer supports versions 2.0.0, 1.1.0, and 1.0.0. However in order for filtering to be correctly applied wfs_version must be 2.0.0 (default is 2.0.0)

Details

The returned vicmap_promise object is not data, rather it is a 'promise' of the data that can be returned if collect() is used; which returns an sf object.

Examples

Run this code
# \donttest{
try(
vicmap_query(layer = "open-data-platform:hy_watercourse")
)
# }

Run the code above in your browser using DataLab