sf (version 0.1-1)

ST_sf: create sf object

Description

create sf, which extends data.frame-like objects with a simple feature list column

Usage

ST_sf(..., relation_to_geometry = NA_character_, row.names)

Arguments

...
column elements to be binded into an sf object, one of them being of class sfc
relation_to_geometry
character vector; see details below.
row.names
row.names for the created sf object

Details

relation_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!