diff --git a/dev/articles/programming.html b/dev/articles/programming.html index 8641010a..43764052 100644 --- a/dev/articles/programming.html +++ b/dev/articles/programming.html @@ -118,23 +118,23 @@

Programming with the wk C and C++ API

wk_debug_filter() ) #> initialize (dirty = 0 -> 1) -#> vector_start: <Unknown type / 0>[3] <0x7ffe64ef9db0> => WK_CONTINUE -#> feature_start (1): <0x7ffe64ef9db0> => WK_CONTINUE +#> vector_start: <Unknown type / 0>[3] <0x7fffc5f22710> => WK_CONTINUE +#> feature_start (1): <0x7fffc5f22710> => WK_CONTINUE #> null_feature => WK_CONTINUE -#> feature_end (1): <0x7ffe64ef9db0> => WK_CONTINUE -#> feature_start (2): <0x7ffe64ef9db0> => WK_CONTINUE -#> geometry_start (<none>): POINT[UNKNOWN] <0x7ffe64ef9c40> => WK_CONTINUE -#> coord (1): <0x7ffe64ef9c40> (0.000000 1.000000) => WK_CONTINUE +#> feature_end (1): <0x7fffc5f22710> => WK_CONTINUE +#> feature_start (2): <0x7fffc5f22710> => WK_CONTINUE +#> geometry_start (<none>): POINT[UNKNOWN] <0x7fffc5f225a0> => WK_CONTINUE +#> coord (1): <0x7fffc5f225a0> (0.000000 1.000000) => WK_CONTINUE #> geometry_end (<none>) => WK_CONTINUE -#> feature_end (2): <0x7ffe64ef9db0> => WK_CONTINUE -#> feature_start (3): <0x7ffe64ef9db0> => WK_CONTINUE -#> geometry_start (<none>): GEOMETRYCOLLECTION[UNKNOWN] <0x7ffe64ef9c40> => WK_CONTINUE -#> geometry_start (1): POINT[UNKNOWN] <0x7ffe64ef9ae0> => WK_CONTINUE -#> coord (1): <0x7ffe64ef9ae0> (2.000000 3.000000) => WK_CONTINUE +#> feature_end (2): <0x7fffc5f22710> => WK_CONTINUE +#> feature_start (3): <0x7fffc5f22710> => WK_CONTINUE +#> geometry_start (<none>): GEOMETRYCOLLECTION[UNKNOWN] <0x7fffc5f225a0> => WK_CONTINUE +#> geometry_start (1): POINT[UNKNOWN] <0x7fffc5f22440> => WK_CONTINUE +#> coord (1): <0x7fffc5f22440> (2.000000 3.000000) => WK_CONTINUE #> geometry_end (1) => WK_CONTINUE #> geometry_end (<none>) => WK_CONTINUE -#> feature_end (3): <0x7ffe64ef9db0> => WK_CONTINUE -#> vector_end: <0x7ffe64ef9db0> +#> feature_end (3): <0x7fffc5f22710> => WK_CONTINUE +#> vector_end: <0x7fffc5f22710> #> deinitialize #> NULL

The concept of a vector was inspired by the @@ -165,24 +165,24 @@

R infrastructure
 wk_debug(wkt("POINT (0 1)"))
 #> initialize (dirty = 0  -> 1)
-#> vector_start: <Unknown type / 0>[1] <0x7ffe64ef9db0> => WK_CONTINUE
-#>   feature_start (1): <0x7ffe64ef9db0>  => WK_CONTINUE
-#>     geometry_start (<none>): POINT[UNKNOWN] <0x7ffe64ef9c40> => WK_CONTINUE
-#>       coord (1): <0x7ffe64ef9c40> (0.000000 1.000000)  => WK_CONTINUE
+#> vector_start: <Unknown type / 0>[1] <0x7fffc5f22710> => WK_CONTINUE
+#>   feature_start (1): <0x7fffc5f22710>  => WK_CONTINUE
+#>     geometry_start (<none>): POINT[UNKNOWN] <0x7fffc5f225a0> => WK_CONTINUE
+#>       coord (1): <0x7fffc5f225a0> (0.000000 1.000000)  => WK_CONTINUE
 #>     geometry_end (<none>)  => WK_CONTINUE
-#>   feature_end (1): <0x7ffe64ef9db0>  => WK_CONTINUE
-#> vector_end: <0x7ffe64ef9db0>
+#>   feature_end (1): <0x7fffc5f22710>  => WK_CONTINUE
+#> vector_end: <0x7fffc5f22710>
 #> deinitialize
 #> NULL
 wk_debug(as_wkb("POINT (0 1)"))
 #> initialize (dirty = 0  -> 1)
-#> vector_start: <Unknown type / 0>[1] <0x7ffe64efc550> => WK_CONTINUE
-#>   feature_start (1): <0x7ffe64efc550>  => WK_CONTINUE
-#>     geometry_start (<none>): POINT[1] <0x7ffe64efc4a0> => WK_CONTINUE
-#>       coord (1): <0x7ffe64efc4a0> (0.000000 1.000000)  => WK_CONTINUE
+#> vector_start: <Unknown type / 0>[1] <0x7fffc5f24eb0> => WK_CONTINUE
+#>   feature_start (1): <0x7fffc5f24eb0>  => WK_CONTINUE
+#>     geometry_start (<none>): POINT[1] <0x7fffc5f24e00> => WK_CONTINUE
+#>       coord (1): <0x7fffc5f24e00> (0.000000 1.000000)  => WK_CONTINUE
 #>     geometry_end (<none>)  => WK_CONTINUE
-#>   feature_end (1): <0x7ffe64efc550>  => WK_CONTINUE
-#> vector_end: <0x7ffe64efc550>
+#>   feature_end (1): <0x7fffc5f24eb0>  => WK_CONTINUE
+#> vector_end: <0x7fffc5f24eb0>
 #> deinitialize
 #> NULL
@@ -240,7 +240,7 @@

A handler in C++} bbox_handler() -#> <bbox_wk_handler at 0x55e4c36a7a00> +#> <bbox_wk_handler at 0x55c7b5cf3a40>

Once you have the object in R, you can use it with wk’s handle_*() functions such as handle_wkt() or handle_wkb():

@@ -816,10 +816,10 @@

Performance#> # A tibble: 4 × 6 #> expression min median `itr/sec` mem_alloc `gc/sec` #> <bch:expr> <bch:t> <bch:t> <dbl> <bch:byt> <dbl> -#> 1 wk_handle(nc_wkb, wk_void_handle… 44.9µs 48.1µs 20149. 0B 4.08 -#> 2 wk_handle(nc_wkb, cpp_void_handl… 403.1µs 414.9µs 2385. 0B 0 -#> 3 wk_handle(nc_wkb, wk_identity_fi… 61.3µs 67.1µs 14596. 0B 6.19 -#> 4 wk_handle(nc_wkb, cpp_identity_f… 524µs 539.4µs 1835. 0B 2.03 +#> 1 wk_handle(nc_wkb, wk_void_handle… 43.8µs 45.6µs 21147. 0B 4.23 +#> 2 wk_handle(nc_wkb, cpp_void_handl… 402.2µs 408.3µs 2424. 0B 0 +#> 3 wk_handle(nc_wkb, wk_identity_fi… 60.8µs 63.7µs 15411. 0B 6.21 +#> 4 wk_handle(nc_wkb, cpp_identity_f… 522.7µs 528µs 1874. 0B 2.02 diff --git a/dev/pkgdown.yml b/dev/pkgdown.yml index 1746cbc6..9f251f44 100644 --- a/dev/pkgdown.yml +++ b/dev/pkgdown.yml @@ -3,7 +3,7 @@ pkgdown: 2.1.0 pkgdown_sha: ~ articles: articles/programming: programming.html -last_built: 2024-07-09T00:39Z +last_built: 2024-07-09T05:25Z urls: reference: https://paleolimbot.github.io/wk/reference article: https://paleolimbot.github.io/wk/articles diff --git a/dev/reference/wk_debug.html b/dev/reference/wk_debug.html index ec5f99d5..45b7c446 100644 --- a/dev/reference/wk_debug.html +++ b/dev/reference/wk_debug.html @@ -94,24 +94,24 @@

Value

Examples

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