Learn R Programming

bcdata (version 0.5.0)

show_query.bcdc_promise: Show SQL and URL used for Web Feature Service request from B.C. Data Catalogue

Description

Display Web Feature Service query CQL

See dplyr::show_query for details.

Usage

# S3 method for bcdc_promise
show_query(x, ...)

# S3 method for bcdc_sf show_query(x, ...)

Arguments

x

object of class bcdc_promise or bcdc_sf

Methods (by class)

  • show_query(bcdc_promise): show_query.bcdc_promise

  • show_query(bcdc_sf): show_query.bcdc_promise

Examples

Run this code
# \donttest{
try(
  bcdc_query_geodata("bc-environmental-monitoring-locations") %>%
    filter(PERMIT_RELATIONSHIP == "DISCHARGE") %>%
    show_query()
)
  # }

# \donttest{
try(
  air <- bcdc_query_geodata("bc-airports") %>%
    collect()
)

try(
  show_query(air)
)
# }

Run the code above in your browser using DataLab