Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count handler can expose unititialized values when used with the flatten filter and empty geometries #139

Closed
paleolimbot opened this issue Jan 24, 2022 · 1 comment · Fixed by #153

Comments

@paleolimbot
Copy link
Owner

wk::wk_flatten(wk::wkt("MULTILINESTRING EMPTY"))
#> <wk_wkt[0]>
wk::wk_handle(wk::wkt("MULTILINESTRING EMPTY"), wk::wk_flatten_filter(wk::wk_count_handler()))
#> $n_geom
#> [1] 329216
#> 
#> $n_ring
#> [1] 0
#> 
#> $n_coord
#> [1] 0

Created on 2022-01-24 by the reprex package (v2.0.1)

@paleolimbot
Copy link
Owner Author

Even more minimal reprex:

wk::wk_count(wk::wkt())
#>      n_geom    n_ring n_coord
#> 1 933369368 931197112       0

Created on 2022-09-19 by the reprex package (v2.0.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant