stars (version 0.0)

st_xy2sfc: replace x y raster dimensions with simple feature geometry list (points or polygons)

Description

replace x y raster dimensions with simple feature geometry list (points or polygons)

Usage

st_xy2sfc(x, as_points = st_dimensions(x)$x$point, ...)

Arguments

x

object of class stars

as_points

logical; if TRUE, generate points at cell centers, else generate polygons

...

arguments passed on to st_as_sfc

Value

object of class stars with x and y raster dimensions replace by sfc geometry list