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()
)
vicmap_query(layer, CRS = 4283, wfs_version = "2.0.0")
vicmap layer to query. Options are listed in listLayers()
Coordinate Reference System (default is 4283)
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)
object of class vicmap_promise
, which is a 'promise' of the data that can be returned if collect()
is used
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.
# \donttest{
try(
vicmap_query(layer = "open-data-platform:hy_watercourse")
)
#> • Using collect() on this object will return 1835052
#> • features and 21 fields
#> • At most six rows of the record are printed here
#> ────────────────────────────────────────────────────────────────────────────────
#> Simple feature collection with 6 features and 20 fields
#> Geometry type: LINESTRING
#> Dimension: XY
#> Bounding box: xmin: 146.3073 ymin: -38.9966 xmax: 146.3657 ymax: -38.9847
#> Geodetic CRS: GDA94
#> # A tibble: 6 × 21
#> id ufi pfi feature_type_code name named_feature_id origin
#> <chr> <int> <int> <chr> <chr> <chr> <chr>
#> 1 hy_watercourse.1 3.63e6 9.63e6 watercourse_stre… NA NA 1
#> 2 hy_watercourse.2 3.63e6 9.63e6 watercourse_stre… NA NA 1
#> 3 hy_watercourse.3 3.63e6 9.63e6 watercourse_stre… NA NA 1
#> 4 hy_watercourse.4 3.63e6 9.63e6 watercourse_stre… NA NA 1
#> 5 hy_watercourse.5 3.63e6 9.63e6 watercourse_stre… NA NA 1
#> 6 hy_watercourse.6 3.63e6 9.63e6 watercourse_stre… NA NA 1
#> # ℹ 14 more variables: construction <chr>, usage <chr>, hierarchy <chr>,
#> # auth_org_code <chr>, auth_org_id <chr>, auth_org_verified <chr>,
#> # feature_quality_id <int>, task_id <chr>, create_date_pfi <dttm>,
#> # superceded_pfi <chr>, feature_ufi <int>, feature_create_date_ufi <dttm>,
#> # create_date_ufi <dttm>, geometry <LINESTRING [°]>
# }