preview_basemap: Preview Basemap

preview_basemapR Documentation

Preview Basemap

Description

This function exports the basemap to a spatial format suitable for previewing in a GIS software. It is useful to frequently check on the outputs during the basemapping process to make sure that the coverage is as expected and that the data extracted look reasonable. NB: This is NOT the way to export the final map: use finalise_basemap for that.

Usage

preview_basemap(
  mm = parent.frame()$mm,
  studyAreaBuffer = parent.frame()$studyAreaBuffer,
  projectLog = parent.frame()$projectLog,
  sample = NULL
)

Arguments

mm

The mm object loaded in the environment. It should have all the desired data added and classified.

studyAreaBuffer

The buffered study area generated during mod01 or reloaded when resuming a session.

projectLog

The RDS project log file generated by the wizard app and containing all file paths to data inputs and model parameters

sample

A length (in meters) for the side of a sampling square centered on the geographic middle of the map. Useful to export a small chunk of the map for a rapid check rather than exporting the full object. We recommend 5000 m.

Value

Saves a "project_title_map_preview.gpkg" to project folder.


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