Mark lists of raw vectors as well-known binary

wkb(x = list(), crs = wk_crs_auto(), geodesic = FALSE)

parse_wkb(x, crs = wk_crs_auto(), geodesic = FALSE)

wk_platform_endian()

as_wkb(x, ...)

# S3 method for default
as_wkb(x, ...)

# S3 method for character
as_wkb(x, ..., crs = NULL, geodesic = FALSE)

# S3 method for wk_wkb
as_wkb(x, ...)

# S3 method for blob
as_wkb(x, ..., crs = NULL, geodesic = FALSE)

# S3 method for WKB
as_wkb(x, ..., crs = NULL, geodesic = FALSE)

Arguments

x

A list() of raw() vectors or NULL.

crs

A value to be propagated as the CRS for this vector.

geodesic

TRUE if edges must be interpolated as geodesics when coordinates are spherical, FALSE otherwise.

...

Unused

Value

A new_wk_wkb()

Examples

as_wkb("POINT (20 10)")
#> <wk_wkb[1]>
#> [1] <POINT (20 10)>