Functions that define session-wide archive and AOI settings that are used by all
getSpatialData functions and check for the availability of used online services.
set_archive(dir_archive) set_aoi(aoi) view_aoi(color = "green") get_aoi(type = "sf") services_avail(value = F)
character, directory to the
nothing, if an interactve
chracter, polygon filling color.
character, AOI object type, either "matrix", "sf" or "sp".
set_archive defines the session directory on your machine (or an external device) where getSpatialData should build up its donwload data archive. Since getSpatialData handles big amounts of data, it is recommended to once define a location where enough free storage is available and then afterwards to not change the archive location. You need to define the archives location for each session after loading getSpatialData. It will then be remembered for the duration of the session. Apart from the archive location, you can manually define a download path when calling the *_data functions. If you do not define a path there, getSpatialData will direct the download to the defined archive. The archive is structred by sensors.
set_aoi defines a session AOI that is used for querying data within the running session (if no other AOI is provided with a query function call). If called without argument, an interactive
mapedit viewer is opened letting you draw an AOI polygon. Otherwise, the function supports
sp or matrix objects as
aoi input (see argument
view_aoi displays the defined session AOI on an interactive
get_aoi returns the defined session AOI.
services_avail returns a
data.frame containing the status of all online services used by
getSpatialData. Services that are operating as usual are labeled "nominal".