gaz_geometry {mregions2} | R Documentation |
Get the geometries of a Marine Regions Geo-Object
Description
Get the geometries of a Marine Regions Geo-Object
Usage
gaz_geometry(x, ...)
## S3 method for class 'numeric'
gaz_geometry(x, ...)
## S3 method for class 'mr_df'
gaz_geometry(x, ...)
Arguments
x |
object to retrieve the geometries from. Accepted:
|
... |
Arguments passed on to
|
Details
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.
Developer info
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.
Value
A sfc object (default), a sf data frame, a WKT string or an RDF object
Examples
gaz_geometry(3293)
gaz_geometry(3293, format = "wkt")
gaz_geometry(3293, format = "rdf")
gaz_search(3293) %>% gaz_geometry()