as_sf | R Documentation |
Convert to other R spatial objects
as_sf(x)
as_vect(x)
as_character(x)
x |
Quadtree object |
an object of class sf
or SpatVector
, or a Well-Known Text (WKT) character
representation
library(quadtree)
habitat <- terra::rast(system.file("extdata", "habitat.tif", package="quadtree"))
qt <- quadtree(habitat, .1)
sf <- as(qt, "sf")
sr <- as(qt, "SpatRaster")
sv <- as(qt, "SpatVector")
ch <- as(qt, "character")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.