View source: R/import_from_gpkg.R
import_from_gpkg | R Documentation |
sf
object using a geopackage URLThis function is particularly useful for importing data from Minnesota Geospatial Commons when access to GISLibrary is unavailable.
import_from_gpkg(
link,
save_file = FALSE,
save_path = getwd(),
.crs = 4326,
keep_temp = FALSE,
.quiet = TRUE
)
import_gpkg(
link,
save_file = FALSE,
save_path = getwd(),
.crs = 4326,
keep_temp = FALSE,
.quiet = TRUE
)
link |
character, URL for the |
save_file |
logical, whether to save the downloaded file. File will be saved in .RDS format |
save_path |
character, the path where the downloaded file should be saved. Default location is the working directory. |
.crs |
numeric, the CRS code or string used to transform the download.
Default is |
keep_temp |
character, whether to keep the temporary download.
Default is |
.quiet |
logical, suppress messages. Default is |
sf::sf()
object
This function relies on {rlang}
internal functions.
library(councilR)
# import regional parks from Minnesota Geospatial Commons
import_from_gpkg("https://resources.gisdata.mn.gov/pub/gdrs/data/pub/us_mn_state_metc/plan_parks_regional/gpkg_plan_parks_regional.zip")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.