- Timestamp:
- Apr 8, 2012, 8:22:49 PM (13 years ago)
- Location:
- tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r10391 r10400 1077 1077 1078 1078 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 1080 1084 if datadump['nodename'].startswith('Proxy'): 1081 1085 datadump['nodename'] = datadump['nodename'].lower() -
tools/rdnap.py
r10373 r10400 38 38 """ 39 39 40 item['phi'] = phi 41 item['lam'] = lam 42 item['func'] = 'etrs2rd' 40 item = { 'phi' : phi, 'lam' : lam, 'func': 'etrs2rd' } 43 41 url = 'http://vanderzwet.net/rdnap/%(func)s/%(phi)s/%(lam)s/0/' % item 44 42
Note:
See TracChangeset
for help on using the changeset viewer.