Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

astroGeo

Convert geographical coordinates to and from Swiss topo coordinates


Description

Geographic and Swiss topo rectangular coordinates, X positive to the north, Y positive to the east (!)

Usage

LB2MK( long, lat )
LB2YX( long, lat )
YX2LB( yt_e, xt_n )
YX2MK( yt_e, xt_n )

Arguments

long,lat

Real, geogr. longitude, latitude

yt_e, xt_n

Real, Swiss coordinates, east, north positive

Details

LB2MK From geogr. longitude and latitude to planar meridian convergence [gon].
LB2YX From geogr. longitude and latitude to Swiss coordinates.
YX2LB From Swiss coordinates to geogr. longitude and latitude.
YX2MK From Swiss coordinates North and East to planar meridian convergence [gon].
LongBerne, LatBerne geogr. coordinates of Berne, 7deg26'22.50" east, 46deg57'08.66" north.
yToEastBerne, xtoNorthBerne Swiss topo coordinates of refernce point near Berne.

Author(s)

Christian W. Hoffmann <christian@echoffmann.ch> after H.Matthias, lecture 'Amtliche Vermessungswerke 1', ETH Zurich, 1986.

Examples

LB2MK( LongBerne, LatBerne) #  7.21188e-16 [gon]
LB2MK( 9.132582913360895, 46.18669420448755) # somewhere in Switzerland , 1.37472
LB2YX( LongBerne, LatBerne) # 600.0, 200.0
YX2LB ( yToEastBerne, xtoNorthBerne ) # 7.4395833  46.9524055
YX2MK ( 600, 200) #  =   0

cwhmisc

Miscellaneous Functions for Math, Plotting, Printing, Statistics, Strings, and Tools

v6.6
GPL (>= 2)
Authors
Christian W. Hoffmann
Initial release
2018-08-24, 10:40:10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.