get_edges_from_vertices: Vertices to edges

Description Usage Arguments Value Examples

View source: R/anem_geoprocessing.R

Description

Convert vertices to edges. It prioritizes quadrangles – it will close the polygon if there are 4 vertices.

Usage

1

Arguments

vertices

A data.frame of x, y, and bID

Value

This function returns bounds object from x, y vertices, with bID 1:4

Examples

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)

gopalpenny/anem documentation built on Dec. 20, 2020, 5:27 a.m.