ST_sf(..., relation_to_geometry = NA_character_, row.names)
sf
object, one of them being of class sfc
sf
objectrelation_to_geometry
specified for each non-geometry column how it relates to the geometry, and can have one of following values: "field", "lattice", "entity". "field" is used for attributes that are constant throughout the geometry (e.g. land use), "lattice" where the attribute is an aggregate value over the geometry (e.g. population density), "entity" when the attributes identifies the geometry of particular "thing", such as a building or a city. The default value, NA_character_
, implies we don't know. #' @examples
g = ST_sfc(list(ST_Point(1:2)))
ST_sf2(a=3,g)
ST_sf2(g, a=3)
ST_sf2(a=3, ST_sfc(list(ST_Point(1:2)))) # better to name it!