bwi2cartesian: Convert Coordinates of the German National Forest Inventory...

View source: R/bwi2cartesian.R

bwi2cartesianR Documentation

Convert Coordinates of the German National Forest Inventory to Cartesian Coordinates

Description

Coordinates of the German national forest inventory are measured in gon eastward from north at distance in centimeter. We need cartesian coordinates for relational computations.

Usage

bwi2cartesian(azimuth, distance)

Arguments

azimuth

The azimuths, from north, eastern side, in gon.

distance

The distances from the origin, typically measured in centimeter.

Value

Matrix of cartesian coordinates in the unit of distance.

Examples

a1 <- c(0, 100)
d1 <- c(100, 200)
print(coords <- bwi2cartesian(a1, d1))
all.equal(coords, matrix(c(0, 100, 200, 0), nrow = 2, byrow = TRUE),
          check.attributes = FALSE)

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