wkb: Mark lists of raw vectors as well-known binary

View source: R/wkb.R

wkbR Documentation

Mark lists of raw vectors as well-known binary

Description

Mark lists of raw vectors as well-known binary

Usage

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

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

wk_platform_endian()

as_wkb(x, ...)

## Default S3 method:
as_wkb(x, ...)

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

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

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

## S3 method for class '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 documentation built on Oct. 22, 2023, 9:07 a.m.