Pack an sf, sfc, or data.frame object into a GLMP binary buffer (gl_pack_sf_binary)
Source: R/transport.R
gl_pack_sf_binary.RdPack an sf, sfc, or data.frame object into a GLMP binary buffer (gl_pack_sf_binary)
Arguments
- data
An
sf,sfc, ordata.frameobject.- lon
Column name for longitude when
datais adata.frame.- lat
Column name for latitude when
datais adata.frame.- rgba
Integer vector of RGBA bytes (length 4 for constant color or
4 * nrow(data)).- radius
Numeric vector of radii (length 0, 1, or
nrow(data)).- elevation
Numeric vector of extrusion heights (length 0, 1, or
nrow(data)).