get_geoattribute_geometries | R Documentation |
For each geoattribute, get its geometries.
get_geoattribute_geometries(db, dimension, attribute)
## S3 method for class 'star_database'
get_geoattribute_geometries(db, dimension = NULL, attribute = NULL)
db |
A |
dimension |
A string, dimension name. |
attribute |
A vector, attribute names. |
If the name of the dimension is not indicated, it is considered the first one that has geoattributes defined.
A vector of strings.
Other star database geographic attributes:
check_geoattribute_geometry()
,
define_geoattribute()
,
get_geoattributes()
,
get_layer_geometry()
,
get_point_geometry()
,
summarize_layer()
db <- mrs_db |>
define_geoattribute(
dimension = "where",
attribute = "state",
from_layer = us_layer_state,
by = "STUSPS"
)
geometries <- db |>
get_geoattribute_geometries(
dimension = "where",
attribute = "state"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.