Compatibility with the wk package
# S3 method for geos_geometry
wk_handle(handleable, handler, ...)
geos_geometry_writer()
# S3 method for geos_geometry
wk_writer(handleable, ...)
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 the handler
library(wk)
wk_handle(as_geos_geometry("POINT (1 2)"), wk::wkt_writer())
#> <wk_wkt[1]>
#> [1] POINT (1 2)