Description Usage Arguments Value Examples
View source: R/anem_geoprocessing.R
Convert vertices to edges. It prioritizes quadrangles – it will close the polygon if there are 4 vertices.
1 | get_edges_from_vertices(vertices)
|
vertices |
A data.frame of x, y, and bID |
This function returns bounds object from x, y vertices, with bID 1:4
1 2 3 4 5 6 7 8 | vertices <- data.frame(x=c(0,1),y=c(0,1),bID=1:2)
get_edges_from_vertices(vertices)
vertices <- data.frame(x=c(0,1,1),y=c(0,1,0.5),bID=1:3)
get_edges_from_vertices(vertices)
vertices <- data.frame(x=c(0,0,1,1),y=c(0,1,1,0),bID=1:4)
get_edges_from_vertices(vertices)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.