Description Usage Arguments Details Examples
Drop Z and/or M dimensions from feature geometries, resetting classes appropriately
1 |
x |
object of class |
... |
ignored |
drop |
logical; drop, or (FALSE) add? |
what |
character which dimensions to drop or add |
only combinations drop=TRUE
, what = "ZM"
, and drop=FALSE
, what="Z"
are supported so far. In case add=TRUE
, zero values are added.
1 2 3 4 5 | st_zm(st_linestring(matrix(1:32,8)))
x = st_sfc(st_linestring(matrix(1:32,8)), st_linestring(matrix(1:8,2)))
st_zm(x)
a = st_sf(a = 1:2, geom=x)
st_zm(a)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.