gaz_geometry | R Documentation |
Get the geometries of a Marine Regions Geo-Object
gaz_geometry(x, ...)
## S3 method for class 'numeric'
gaz_geometry(x, ...)
## S3 method for class 'mr_df'
gaz_geometry(x, ...)
x |
object to retrieve the geometries from. Accepted:
|
... |
Arguments passed on to
|
You can pass the output of most gaz_*
functions to gaz_geometry()
to retrieve the
geometry the gazetteer entry. The data frame is then transformed into a sf::sf object.
This is done in the method gaz_geometry.mr_df()
. mr_df
is a class defined in
this package to ensure the data frame passed to gaz_geometry has a variable with MRGID.
A sfc object (default), a sf data frame, a WKT string or an RDF object
gaz_geometry(3293)
gaz_geometry(3293, format = "wkt")
gaz_geometry(3293, format = "rdf")
gaz_search(3293) %>% gaz_geometry()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.