Description Usage Arguments See Also Examples
Count the number of points in a geometry
1 2 3 | st_numpoints(.geom)
st_npoints(.geom)
|
.geom |
A geometry object. |
Other make: st_makeline
,
st_makepoint
, st_multi
1 2 3 4 5 6 | library(tibble)
library(dplyr)
tibble(x = 1:2, y = 3:4) %>%
mutate(geom = st_makepoint(x, y), n = st_npoints(geom)) %>%
summarise(line = st_makeline(geom), n = st_numpoints(line))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.