finalise_basemap: Finalise Basemap

View source: R/fun_export.R

finalise_basemapR Documentation

Finalise Basemap

Description

This function tidies up the final basemap and exports it to the "final" folder. It also outputs summary statistics. (NB: these should be checked, and recalculated if necessary, as MasterMap data may contain some overlapping polygons which will affect the area calculations.)

Usage

finalise_basemap(
  mm = parent.frame()$mm,
  projectLog = parent.frame()$projectLog,
  export = TRUE,
  format = "gpkg",
  tiles = FALSE
)

Arguments

mm

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

projectLog

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

export

Should a clipped, recombined version of the map be saved as a GIS file? Default TRUE

format

The desired output format, only used if export = TRUE. Currently supported are "gpkg" (geopackage, the default), "ESRI Shapefile" and "MapInfo File".

tiles

Should the basemap be exported as 10x10km tiles? Defaults to FALSE but may be required for large study areas which may take a long time to render in a GIS software. Only used when export = TRUE.

Value

Saves a project_title_final.RDS and optionally a project_title_final GIS file to project folder.


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