Changeset 10400 in genesis for tools


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

Location:
tools
Files:
2 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()
  • tools/rdnap.py

    r10373 r10400  
    3838  """
    3939 
    40   item['phi'] = phi
    41   item['lam'] = lam
    42   item['func'] = 'etrs2rd'
     40  item = { 'phi' : phi, 'lam' : lam, 'func': 'etrs2rd' }
    4341  url = 'http://vanderzwet.net/rdnap/%(func)s/%(phi)s/%(lam)s/0/' % item
    4442
Note: See TracChangeset for help on using the changeset viewer.