7.5 Creation
An sf
object can be created from scratch by
p1 <- st_point(c(7.35, 52.42))
p2 <- st_point(c(7.22, 52.18))
p3 <- st_point(c(7.44, 52.19))
sfc <- st_sfc(list(p1, p2, p3), crs = 'OGC:CRS84')
st_sf(elev = c(33.2, 52.1, 81.2),
marker = c("Id01", "Id02", "Id03"), geom = sfc)
## Simple feature collection with 3 features and 2 fields
## Geometry type: POINT
## Dimension: XY
## Bounding box: xmin: 7.22 ymin: 52.18 xmax: 7.44 ymax: 52.42
## Geodetic CRS: WGS 84
## elev marker geom
## 1 33.2 Id01 POINT (7.35 52.42)
## 2 52.1 Id02 POINT (7.22 52.18)
## 3 81.2 Id03 POINT (7.44 52.19)
Convenience functions
st_sample
st_make_grid
st_interpoloate_aw