Description Usage Arguments Value Examples
Currently, geovctrs supports X, Y, and Z coordinates. These functions extract, set, and drop Z values.
1 2 3 4 5 6 7 8 9 | 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
.
1 2 3 4 5 | geo_set_z(c("POINT (2 3)", "POINT Z (2 3 4)"), 10)
geo_drop_z(c("POINT (2 3)", "POINT Z (2 3 4)"))
geo_has_z(c("POINT (2 3)", "POINT Z (2 3 4)"))
geo_z_range(c("POINT (2 3)", "POINT Z (2 3 4)"), na.rm = TRUE)
geo_z_envelope(c("POINT (2 3)", "POINT Z (2 3 4)"), na.rm = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.