View source: R/utils-metadata.R
geom_col_name | R Documentation |
geom_col_name
returns a single value for the name of the geometry column for the
WFS layer selected in the vicmap_promise
object (e.g. SHAPE
). This column will become the geometry
column
when using collect()
. feature_cols()
provides a vector of all column names for the WFS layer selected in the
vicmap_promise
object and get_col_df()
returns a data.frame with the column names and their XML schema string
datatypes.
geom_col_name(x)
feature_cols(x)
get_col_df(x)
x |
object of class |
character/data.frame
# Return the name of the geometry column
vicmap_query(layer = "open-data-platform:hy_watercourse") %>%
geom_col_name()
# Return the column names as a character vector
vicmap_query(layer = "open-data-platform:hy_watercourse") %>%
feature_cols()
# Return a data.frame of the columns and their XML schema string datatypes
try(
vicmap_query(layer = "open-data-platform:hy_watercourse") %>%
get_col_df()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.