area_calc: area_calc

Description Usage Arguments Value Examples

Description

area_calc Generates lines and polygons for area calculation of nonlinear plots.

Usage

1
2
area_calc(data_in, faixa_dist = c(0.5, 10, 20, 22), faixa_lado = c(1.5, 2,
  10, 21.5, 22), area_epsg = 3395)

Arguments

data_in

Data.frame with bearings and distances. See data(br319) for example of required format.

faixa_dist

Distances to calculate area.

faixa_lado

Distances to calculate area, seperately to the left and right of the central line

area_epsg

EPSG for projection. This gives coordinate reference system used when calculating area.

Value

List of data and spatial (lines and polygons).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 
# Example with required data format
data(br319)
dados_in <- br319

# Generate lines and polygons for specified widths
list_res <- parcelareadev::area_calc(
data_in = dados_in, 
faixa_dist = c(0.5, 1, 3,12, 10, 20, 21, 22),
faixa_lado = c(0.5, 1, 3,12, 10, 20, 21, 22),
area_epsg = 3395)

# Calculate area and export results
df.resumo <- parcelareadev::area_results(results_list = list_res, 
                       make_shape = FALSE)

# Now shift central line to geographic coordinates 
# and export as shapefiles and KML for visualization and checking
data("br319coords")
pc <- br319coords
parcelareadev::exp_results(results_list = list_res, 
                           pcoords = pc, exp_KML = TRUE) 

## End(Not run)

darrennorris/parcelareadev documentation built on May 14, 2019, 6:11 p.m.