Use data.frame with wk
# S3 method for class 'data.frame'
wk_handle(handleable, handler, ...)
# S3 method for class 'data.frame'
wk_restore(handleable, result, ...)
# S3 method for class 'tbl_df'
wk_restore(handleable, result, ...)
# S3 method for class 'data.frame'
wk_translate(handleable, to, ...)
# S3 method for class 'tbl_df'
wk_translate(handleable, to, ...)
# S3 method for class 'sf'
wk_translate(handleable, to, ...)
# S3 method for class 'sf'
wk_restore(handleable, result, ...)
A geometry vector (e.g., wkb()
, wkt()
, xy()
,
rct()
, or sf::st_sfc()
) for which wk_handle()
is defined.
A wk_handler object.
Passed to the wk_handle()
method.
The result of a filter operation intended to be a transformation.
A prototype object.
wk_handle(data.frame(a = wkt("POINT (0 1)")), wkb_writer())
#> <wk_wkb[1]>
#> [1] <POINT (0 1)>
wk_translate(wkt("POINT (0 1)"), data.frame(col_name = wkb()))
#> col_name
#> 1 <POINT (0 1)>
wk_translate(data.frame(a = wkt("POINT (0 1)")), data.frame(wkb()))
#> a
#> 1 <POINT (0 1)>