Currently, geovctrs supports X, Y, and Z coordinates. These functions extract, set, and drop Z values.
geo_set_z(x, z) geo_drop_z(x) geo_has_z(x) geo_z_range(x, ..., na.rm = FALSE, finite = FALSE) geo_z_envelope(x, ..., na.rm = FALSE, finite = FALSE)
x | A geometry-like object, or one that can be
coerced to a geometry-like object using |
---|---|
z | A vector of z coordinate values. |
... | Unused |
na.rm | Should NAs be removed? |
finite | Should only finite values be considered? |
A modified version of x
.
#> <wk_wkt[2]> #> [1] POINT Z (2 3 10) POINT Z (2 3 10)#> <wk_wkt[2]> #> [1] POINT (2 3) POINT (2 3)#> [1] FALSE TRUE#> <geovctrs_lim[1]> #> [1] [4, 4]#> <geovctrs_lim[2]> #> [1] [Inf, -Inf] [4, 4]