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] <0x7ffe8bd41ce0> => WK_CONTINUE
#>   feature_start (1): <0x7ffe8bd41ce0>  => WK_CONTINUE
#>     geometry_start (<none>): POINT[UNKNOWN] <0x7ffe8bd41b70> => WK_CONTINUE
#>       coord (1): <0x7ffe8bd41b70> (1.000000 1.000000)  => WK_CONTINUE
#>     geometry_end (<none>)  => WK_CONTINUE
#>   feature_end (1): <0x7ffe8bd41ce0>  => WK_CONTINUE
#> vector_end: <0x7ffe8bd41ce0>
#> deinitialize
#> NULL
wk_handle(wkt("POINT (1 1)"), wk_debug_filter())
#> initialize (dirty = 0  -> 1)
#> vector_start: <Unknown type / 0>[1] <0x7ffe8bd445c0> => WK_CONTINUE
#>   feature_start (1): <0x7ffe8bd445c0>  => WK_CONTINUE
#>     geometry_start (<none>): POINT[UNKNOWN] <0x7ffe8bd44450> => WK_CONTINUE
#>       coord (1): <0x7ffe8bd44450> (1.000000 1.000000)  => WK_CONTINUE
#>     geometry_end (<none>)  => WK_CONTINUE
#>   feature_end (1): <0x7ffe8bd445c0>  => WK_CONTINUE
#> vector_end: <0x7ffe8bd445c0>
#> deinitialize
#> NULL