Changeset 2898

Show
Ignore:
Timestamp:
01/22/12 09:08:48 (4 months ago)
Author:
paparazzia
Message:

for the record, make use of factors/coord attribute

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/moteur/posscripts/getpos_vor20120114bis.py

    r2894 r2898  
    4545  boats[int(outline.attrib['id'])] = outline.attrib 
    4646 
     47coordfactor = float(tree.find("./factors").attrib['coord']) 
     48 
    4749#page = urlopen("http://volvooceanrace.geovoile.com/2011/leg2/shared/event/update.xml") 
    4850urllib.urlretrieve("http://volvooceanrace.geovoile.com/2011/shared/leg3/event/update.hwz", updatehwz) 
     
    7577    if time.time() - t < 48*3600: 
    7678        #20091108|1|1257681600|-729|BT|Sébastien Josse - Jean François Cuzon|50.016000|-1.891500|85.252725|4651.600000 
    77         print "%d|0|%d|%d|%s|BAR|%f|%f|0.|0." % (vlmidrace,int(t), id, boats[rid]['name'].encode('utf-8'), lat/1000., lon/1000.) 
     79        print "%d|0|%d|%d|%s|BAR|%f|%f|0.|0." % (vlmidrace,int(t), id, boats[rid]['name'].encode('utf-8'), lat/coordfactor, lon/coordfactor) 
    7880        #print time.gmtime(int(t)) 
    7981