loadSpatial | R Documentation |
This function looks into a folder for a specified file type and loads all corresponding files into a list. It has the option of adding a query layer to only read in memory the features that intersect an area of interest.
loadSpatial(folder, layer = NULL, filetype, querylayer = NULL)
folder |
Folder where spatial file or files are stored |
layer |
Layer name if several layers present in folder |
filetype |
File format. Accepted file extensions are "gpkg", "shp", "json", "gz", "gml", "tab". |
querylayer |
A sf vector layer to use as a spatial query to only load intersecting features. Speeds up data import; default NULL for no spatial query. |
A list of spatial files
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.