loadSpatial: Load Spatial Data

View source: R/fun_import.R

loadSpatialR Documentation

Load Spatial Data

Description

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.

Usage

loadSpatial(folder, layer = NULL, filetype, querylayer = NULL)

Arguments

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.

Value

A list of spatial files


ecoservR/ecoserv_tool documentation built on April 5, 2025, 1:49 a.m.