Debug filters and handlers

wk_debug(handleable, handler = wk_void_handler(), ...)

wk_debug_filter(handler = wk_void_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.

Value

The result of the handler.

Examples

wk_debug(wkt("POINT (1 1)"))
#> initialize (dirty = 0  -> 1)
#> vector_start: <Unknown type / 0>[1] <0x7ffee5ebbc78> => WK_CONTINUE
#>   feature_start (1): <0x7ffee5ebbc78>  => WK_CONTINUE
#>     geometry_start (<none>): POINT[UNKNOWN] <0x7ffee5ebbba0> => WK_CONTINUE
#>       coord (1): <0x7ffee5ebbba0> (1.000000 1.000000)  => WK_CONTINUE
#>     geometry_end (<none>)  => WK_CONTINUE
#>   feature_end (1): <0x7ffee5ebbc78>  => WK_CONTINUE
#> vector_end: <0x7ffee5ebbc78>
#> deinitialize
#> NULL
wk_handle(wkt("POINT (1 1)"), wk_debug_filter())
#> initialize (dirty = 0  -> 1)
#> vector_start: <Unknown type / 0>[1] <0x7ffee5ebca48> => WK_CONTINUE
#>   feature_start (1): <0x7ffee5ebca48>  => WK_CONTINUE
#>     geometry_start (<none>): POINT[UNKNOWN] <0x7ffee5ebc970> => WK_CONTINUE
#>       coord (1): <0x7ffee5ebc970> (1.000000 1.000000)  => WK_CONTINUE
#>     geometry_end (<none>)  => WK_CONTINUE
#>   feature_end (1): <0x7ffee5ebca48>  => WK_CONTINUE
#> vector_end: <0x7ffee5ebca48>
#> deinitialize
#> NULL