boundaryField: Create a boundary shapefile from raster data

boundaryFieldR Documentation

Create a boundary shapefile from raster data

Description

This function produces a simplified boundary shapefile from raster data.

Usage

boundaryField(
  field,
  draw = FALSE,
  col = "red",
  cex = 1,
  threshold = 1000,
  tolerance = 2e-04
)

Arguments

field

SpatRaster. Field to be converted to boundary shapefile.

draw

use TRUE to draw field boundaries.

col

line color.

cex

point size. Please check help("points").

threshold

area (m^2) of small polygons, below which will be removed.

tolerance

boundary simplification - minimum distance between nodes in units of the crs (i.e. degrees for long/lat)

Details

boundaryField

Value

A simplified boundary as SpatVector.


filipematias23/cleanRfield documentation built on Aug. 6, 2023, 12:26 a.m.