Learn R Programming

geos (version 0.2.4)

wk-methods: Compatibility with the wk package

Description

Compatibility with the wk package

Usage

# S3 method for geos_geometry
wk_handle(handleable, handler, ...)

geos_geometry_writer()

# S3 method for geos_geometry wk_writer(handleable, ...)

Value

The result of the handler

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.

Examples

Run this code
library(wk)
wk_handle(as_geos_geometry("POINT (1 2)"), wk::wkt_writer())

Run the code above in your browser using DataLab