Merge polygons (or polygon files) to form a single minimum convex polygon (mcp)
Source:R/make_predict_boundary.R
make_predict_boundary.Rd
Primary use is to create a predict boundary for prep_sdm()
, merging (an
existing) minimum convex polygon around points with other sources of taxa
distribution. Optionally, applying a buffer around the resulting mcp; and
clipping to a (usually coastal) boundary. The predict boundary is then used
for generation of background points and for masking the 'full' predict (to
the full extent of the environmental variables.
Usage
make_predict_boundary(
poly_list,
out_file,
buffer_metres = 0,
col_name = "taxa",
col_name_val = "boundary",
clip = NULL,
out_crs,
return_poly = FALSE,
force_new = FALSE
)
Arguments
- poly_list
List of paths or list of sf
- out_file
Character name of file to save
- buffer_metres
Numeric. Distance in metres to buffer the mcp
- col_name
Name of column to create in the resulting mcp
- col_name_val
Value to provide in the column in the resulting mcp
- clip
sf. Clip the resulting mcp back to this.
- out_crs
Numeric. epsg code
- return_poly
Logical. Return the mcp, or alternatively
out_file
- force_new
Logical. If
out_file
exists, recreate it?