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, ...)

Arguments

handleable

A geometry vector (e.g., wkb(), wkt(), xy(), rct(), or sf::st_sfc()) for which wk_handle() is defined.

handler

A wk_handler object.

...

Passed to the wk_handle() method.

Value

The result of the handler

Examples

library(wk)
wk_handle(as_geos_geometry("POINT (1 2)"), wk::wkt_writer())
#> <wk_wkt[1]>
#> [1] POINT (1 2)