rast_to_sf: Convert a terra SpatRaster* object to an sf object Convert a...

View source: R/spatial_utils.R

rast_to_sfR Documentation

Convert a terra SpatRaster* object to an sf object Convert a terra SpatRaster* object to an sf object. This creates a binary mask for the raster NA vs data and then converts it to POLYGONS. For use internally to turn a rast object in to a mask for polygon clipping.

Description

Convert a terra SpatRaster* object to an sf object Convert a terra SpatRaster* object to an sf object. This creates a binary mask for the raster NA vs data and then converts it to POLYGONS. For use internally to turn a rast object in to a mask for polygon clipping.

Usage

rast_to_sf(x, ...)

Arguments

x

rast* to be converted into an object class sf

...

further specifications, see st_as_sf


skiptoniam/qrbp documentation built on May 13, 2023, 2:08 a.m.