Learn R Programming

phenmod (version 1.2-7)

util.geoco2gk: Geographic coordinates to Gauss-Krueger-Coordinates

Description

Converts geographic coordinates to Gauss-Krueger-Coordinates.

Usage

util.geoco2gk(x,y, meridian=4)

Arguments

x

A vector of longitudes to transform.

y

A vector of latitudes to transform.

meridian

The referenced meridian for Gauss-Krueger-Coordinates.

Value

A matrix containing the the ‘Rechtswert’ of the Gauss-Krueger-Coordinates in its first column and the ‘Hochwert’ in its second column.

Details

Converts geographic coordinates (longitude, latitude) to Gauss-Krueger-Coordinates (‘Rechtswert’, ‘Hochwert’) referenced by a given meridian.

Examples

Run this code
# NOT RUN {
 x <- c(51.3, 54.7)
 y <- c(12.3, 13.5)
 gk.xy <- util.geoco2gk(x,y,4)
# }

Run the code above in your browser using DataLab