Retrieves the projection of a Quadtree.

# S4 method for Quadtree
projection(x)

# S4 method for Quadtree
projection(x) <- value

Arguments

x

a Quadtree

value

character; the projection to assign to the Quadtree

Value

a string

Examples

library(quadtree)
habitat <- terra::rast(system.file("extdata", "habitat.tif", package="quadtree"))

qt <- quadtree(habitat, .1)
quadtree::projection(qt) <- "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"
quadtree::projection(qt)
#> [1] "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"