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