View source: R/format_md_data.R
format_md_sf | R Documentation |
Convert the coordinate reference system, convert invalid geometry to valid
geometry with sf::st_make_valid()
, and, optionally, erase water, and clean
names with janitor::clean_names()
.
format_md_sf(
data,
crs = getOption("mapmaryland.crs", default = 3857),
erase_water = FALSE,
erase_data = NULL,
clean_names = TRUE,
dTolerance = NULL,
smooth = FALSE,
sf_col = "geometry",
...
)
data |
A |
crs |
coordinate reference system. Defaults to
|
erase_water |
If |
erase_data |
A |
clean_names |
If |
dTolerance |
numeric; tolerance parameter, specified for all or for each
feature geometry. If you run |
smooth |
If |
sf_col |
Name to use for output |
... |
Additional parameters passed to |
A modified version of the input simple feature data.
getdata::format_sf_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.