get_boundary_polygons: Convert Boundaries to Polygons

View source: R/get_boundary_polygons.R

get_boundary_polygonsR Documentation

Convert Boundaries to Polygons

Description

Used by get_correction_factors to convert a boundary table to polygons. You may want to see the polygons, that is why we exported this function.

Usage

get_boundary_polygons(boundaries, stop_on_error = TRUE, clean_data = FALSE)

Arguments

boundaries

A data.frame containing boundaries. It has to have columns named by the contents of either
get_defaults()[["boundaries"]] or
getOption("treePlotArea")[["boundaries"]].
Could be get(data("boundaries", package = "treePlotArea")) or the output of get_boundary_polygons.

stop_on_error

Throw an error if invalid boundaries are encountered? (There was tract 6878, corner 1, boundary 1 in the federal database for the 2012 survey, runs through the plot. There is no stand defined that way!).

clean_data

Omit invalid boundaries in any further calculations?

Value

A list with all boundary polygons for each corner for each tract.

See Also

Other boundary functions: check_boundaries()

Examples

boundaries <- get(data("boundaries", package = "treePlotArea"))
boundary_polygons <- get_boundary_polygons(boundaries)

treePlotArea documentation built on June 22, 2024, 6:57 p.m.