From 3bf741d88390b420dec1896c096b257c8042929d Mon Sep 17 00:00:00 2001 From: id101010 Date: Tue, 6 Jan 2015 14:34:36 +0100 Subject: [PATCH] Inserted proper coordinates for bern. --- pyWGS84toLV03.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pyWGS84toLV03.py b/pyWGS84toLV03.py index 535d513..c3d3792 100755 --- a/pyWGS84toLV03.py +++ b/pyWGS84toLV03.py @@ -4,9 +4,10 @@ # WGS84 <-> LV03 converter based on the scripts at # http://www.swisstopo.admin.ch written for python2.7 # -# aaron@duckpond.ch +# Aaron Schmocker [aaron@duckpond.ch] # # vim: tabstop=4 shiftwidth=4 softtabstop=4 expandtab + import math class GPSConverter(object): @@ -142,14 +143,15 @@ class GPSConverter(object): return d if __name__ == "__main__": - ''' Example for the usage of GPSConverter.''' + ''' Example usage for the GPSConverter class.''' converter = GPSConverter() # Coordinates - wgs84 = [46.95126, 7.43868, 542] + wgs84 = [46.95108, 7.438637, 0] lv03 = [] - + + # Convert WGS84 to LV03 coordinates lv03 = converter.WGS84toLV03(wgs84[0], wgs84[1], wgs84[2]) print "WGS84: "