[OSM-talk] [Fwd: [OpenStreetMap] GPX Import Failure]

simon at mungewell.org simon at mungewell.org
Wed Feb 18 21:08:52 GMT 2009


> Is that right?
>

Don't know about the exact precision, but it got it close enough to get
OSM to accept it. Time stamps appear correct to MST, although might be
some weirdness with leap years etc....

Following your suggestions I noticed that awk had some time functions, so
I used
--
#!/bin/bash

# Small script to extract lat/long from bestpos logs

echo 'lat,long,alt,date,time'
egrep '^#BESTPOS' $1  | awk -F ',' '{print 
$12","$13","$14","strftime("%Y/%m/%d,%H:%M:%S",315964800 + $6 * 86400 * 7
+ $7) ;}'
--

which gave:
--
lat,long,alt,date,time
49.66158476256,-114.59128193466,1440.4820,2009/02/14,11:21:50
49.66158250526,-114.59127877604,1442.4765,2009/02/14,11:21:51
--

The resultant log is here:
http://www.openstreetmap.org/trace/316428/view

Cheers,
Mungewell.







More information about the talk mailing list