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

Determine if a geometry has Z or M dimensions #219

Open
JosiahParry opened this issue Apr 30, 2024 · 1 comment
Open

Determine if a geometry has Z or M dimensions #219

JosiahParry opened this issue Apr 30, 2024 · 1 comment

Comments

@JosiahParry
Copy link

There is already wk::wk_set_z() and wk::wk_set_m() . It would be very handy to have a function such as wk::wk_has_z() and wk::wk_has_m()

@paleolimbot
Copy link
Owner

Would wk_meta() work?

wk::wk_meta(wk::wkt(c("POINT (0 1)", "POINT Z (0 1 2)", "POINT M (0 1 2)", "POINT ZM (1 2 3 4)")))
#>   geometry_type size has_z has_m srid precision is_empty
#> 1             1   NA FALSE FALSE   NA         0    FALSE
#> 2             1   NA  TRUE FALSE   NA         0    FALSE
#> 3             1   NA FALSE  TRUE   NA         0    FALSE
#> 4             1   NA  TRUE  TRUE   NA         0    FALSE

Created on 2024-04-30 with reprex v2.1.0

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

No branches or pull requests

2 participants