View source: R/spatial_utils.R
rast_to_sf | R 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.
rast_to_sf(x, ...)
x |
rast* to be converted into an object class |
... |
further specifications, see st_as_sf |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.