get_viewpoints | R Documentation |
Generate a discrete set of points on the given geometry. If the geometry is a (MULTI)POLYGON, points are generated on its boundary.
get_viewpoints(x, density = 1/50)
x |
object of class sf, sfc or sfg |
density |
number of points per distance unit |
object of class sfc_POINT
line <- sf::st_linestring(cbind(c(-1, 1), c(0, 0)))
get_viewpoints(line, density = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.