geom_col_name {VicmapR} | R Documentation |
Get Column Information
Description
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.
Usage
geom_col_name(x)
feature_cols(x)
get_col_df(x)
Arguments
x |
object of class |
Value
character/data.frame
Examples
# 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()
)
[Package VicmapR version 0.2.3 Index]