Remove islands from mapping
Usage
rm_islands(input, shape, min_vertices = 10000)
Arguments
- input
SpatRaster or Raster* object with islands to be removed; also accepts coords
- shape
SpatialPolygons, sf, sfc, or other polygon object to filter; also accepts SpatVector object
- min_vertices
minimum number of vertices in polygons to retain (defaults to 10000)
Value
object (of input type) with islands removed