Changeset 10400 in genesis for tools/gformat.py


Ignore:
Timestamp:
Apr 8, 2012, 8:22:49 PM (13 years ago)
Author:
rick
Message:

Aanpassingen coordinaten in Kaag en Braassem, de WGS84 (degrees) to NAD27
(decimals) conversion is done using:

http://transition.fcc.gov/mb/audio/bickel/DDDMMSS-decimal.html

Reported-by: henk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10391 r10400  
    10771077
    10781078      for host,datadump in datadumps.iteritems():
    1079         datadump['latitude'], datadump['longitude'] = rdnap.rd2etrs(datadump['rdnap_x'], datadump['rdnap_y'])
     1079        if datadump['rdnap_x'] and datadump['rdnap_y']:
     1080          datadump['latitude'], datadump['longitude'] = rdnap.rd2etrs(datadump['rdnap_x'], datadump['rdnap_y'])
     1081        elif datadump['latitude'] and datadump['longitude']:
     1082          datadump['rdnap_x'], datadump['rdnap_y'] = rdnap.etrs2rd(datadump['latitude'], datadump['longitude'])
     1083
    10801084        if datadump['nodename'].startswith('Proxy'):
    10811085          datadump['nodename'] = datadump['nodename'].lower()
Note: See TracChangeset for help on using the changeset viewer.