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

2009-02-18 Thread simon

> 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.




___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


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

2009-02-18 Thread Greg Troxel

  Example 'unicvs' log (where name is actually GPS seconds):
  --
  lat,long,alt,name
  49.66167756437,-114.59122054052,1434.1903,584656.000

  
BESTPOSA,COM1,0,65.0,FINESTEERING,1518,584656.000,0004,6145,3642;SOL_COMPUTED,WAAS,49.66167756437,-114.59122054052,1434.1903,-14.8000,WGS84,6.1673,2.6
  840,9.4065,"135",4.000,0.000,12,4,0,0,0,2,0,1*9c519c8e

I think you also need the week number which seems to be 1518, which fits
for early 2009.

To get unix seconds, it should just be unix timeval of beginning of GPS
epoch + 86400 * 7 * week + gpstime + (19 - 34).  The last term is 
converting to TAI and then UTC.

These might be useful:

  http://www.gpstk.org/doxygen/classgpstk_1_1Epoch.html

  GPS epoch is 1980-01-06  UTC
  http://tycho.usno.navy.mil/gpstt.html

  gpsd source say GPS epoch is 315964800

So

poblano gdt 574 ~ > echo 1518 584656 | awk '{ print 315964800 + $1 * 86400 * 7 
+ $2 - 15}'
1234635841
poblano gdt 575 ~ > date -u -r 1234635841
Sat Feb 14 18:24:01 UTC 2009
poblano gdt 576 ~ > 

Is that right?


pgpWy4fPpDazZ.pgp
Description: PGP signature
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


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

2009-02-18 Thread simon
Does anyone have a handy GPS Second -> Date/Time converter script?

I am attempting to convert raw logs from an industrial receiver by
converting to 'unicvs' (GPSBabel format) and then to GPX transforming
Waypoints to Tracks.

The result tracks show up in JOSM but are rejected by OSM website as they
don't have a time stamp.

Example 'BESTPOS' log:
--
#BESTPOSA,COM1,0,65.0,FINESTEERING,1518,584656.000,0004,6145,3642;SOL_COMPUTED,WAAS,49.66167756437,-114.59122054052,1434.1903,-14.8000,WGS84,6.1673,2.6
840,9.4065,"135",4.000,0.000,12,4,0,0,0,2,0,1*9c519c8e
...
--

Example 'unicvs' log (where name is actually GPS seconds):
--
lat,long,alt,name
49.66167756437,-114.59122054052,1434.1903,584656.000
...
--

I am using this industrial receiver my handheld does not cope with tree
cover in these Cross Country ski trails, receiver does not natively log
NMEA (could do with external PC/Laptop).

Cheers,
Simon.

PS. The receiver in question is this one:
http://www.point-inc.com/products/gsr1700csx.html

 Original Message 
Subject: [OpenStreetMap] GPX Import Failure
From:webmas...@openstreetmap.org
Date:Wed, February 18, 2009 12:58 pm
To:  "Mungewell" 
--

  Found no good GPX points in the input data. At least 75% of the
trackpoints lacked a  tag.





___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


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

2008-12-13 Thread Shoan Motwani
I did a search replace of Nan with space and the upload succeeded.


On Sat, Dec 13, 2008 at 11:04 AM, Shoan Motwani  wrote:
> See http://pastebin.com/f64b98e5e for a snippet of a rejected a gpx file.
>
> I notice that the diff between a file that was accepted and this one,
> is the  in this one is NaN. I am not sure why that happens.
>
> Peace,
> Shoan.
>
>
> On Fri, Dec 12, 2008 at 5:27 PM, Kenneth Gonsalves  wrote:
>> On Friday 12 Dec 2008 5:17:24 pm Shoan Motwani wrote:
>>> I use whereami on Nokia E71. I have uploaded a couple of traces in the
>>> past and they have updated successfully. But the recent traces are not
>>> being uploaded and the error is too vague to figure out what is going
>>> on.
>>
>> I use whereami on nokia E71 without problem - please paste the gpx file
>> somewhere so we can analyse it
>>
>> --
>> regards
>> Kenneth Gonsalves
>> Associate
>> NRC-FOSS
>> http://nrcfosshelpline.in/web/
>>
>> ___
>> talk mailing list
>> talk@openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/talk
>>
>

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


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

2008-12-13 Thread Shoan Motwani
See http://pastebin.com/f64b98e5e for a snippet of a rejected a gpx file.

I notice that the diff between a file that was accepted and this one,
is the  in this one is NaN. I am not sure why that happens.

Peace,
Shoan.


On Fri, Dec 12, 2008 at 5:27 PM, Kenneth Gonsalves  wrote:
> On Friday 12 Dec 2008 5:17:24 pm Shoan Motwani wrote:
>> I use whereami on Nokia E71. I have uploaded a couple of traces in the
>> past and they have updated successfully. But the recent traces are not
>> being uploaded and the error is too vague to figure out what is going
>> on.
>
> I use whereami on nokia E71 without problem - please paste the gpx file
> somewhere so we can analyse it
>
> --
> regards
> Kenneth Gonsalves
> Associate
> NRC-FOSS
> http://nrcfosshelpline.in/web/
>
> ___
> talk mailing list
> talk@openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk
>

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


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

2008-12-12 Thread D Tucny
2008/12/12 Kenneth Gonsalves 

> On Friday 12 Dec 2008 5:17:24 pm Shoan Motwani wrote:
> > I use whereami on Nokia E71. I have uploaded a couple of traces in the
> > past and they have updated successfully. But the recent traces are not
> > being uploaded and the error is too vague to figure out what is going
> > on.
>
> I use whereami on nokia E71 without problem - please paste the gpx file
> somewhere so we can analyse it


Apologies for hijacking the thread, but, how did people install whereami/get
whereami to work on their phones? I tried on my N78 and it just whinged
about the certificates and refused to run... Does the E71 not care about the
certificates?

Thanks,

d
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


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

2008-12-12 Thread Kenneth Gonsalves
On Friday 12 Dec 2008 5:17:24 pm Shoan Motwani wrote:
> I use whereami on Nokia E71. I have uploaded a couple of traces in the
> past and they have updated successfully. But the recent traces are not
> being uploaded and the error is too vague to figure out what is going
> on.

I use whereami on nokia E71 without problem - please paste the gpx file 
somewhere so we can analyse it

-- 
regards
Kenneth Gonsalves
Associate
NRC-FOSS
http://nrcfosshelpline.in/web/

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


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

2008-12-12 Thread Tom Hughes
Shoan Motwani wrote:

> I use whereami on Nokia E71. I have uploaded a couple of traces in the
> past and they have updated successfully. But the recent traces are not
> being uploaded and the error is too vague to figure out what is going
> on.

The problem is that all the points in that trace have NaN as the 
elevation. They also claim to be based on zero satellites, which seems a 
little unlikely...

Tom

-- 
Tom Hughes (t...@compton.nu)
http://www.compton.nu/

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


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

2008-12-12 Thread Shoan Motwani
Hi All,

I use whereami on Nokia E71. I have uploaded a couple of traces in the
past and they have updated successfully. But the recent traces are not
being uploaded and the error is too vague to figure out what is going
on.

Please help.

Peace,
Shoan.



-- Forwarded message --
From:  
Date: Fri, Dec 12, 2008 at 2:38 PM
Subject: [OpenStreetMap] GPX Import Failure
To: luke` 


Hi,

It looks like your GPX file

 wami_20081209_00.gpx.gz

with the description

 Dar es salaam

and the following tags:

 tanzania,dar_es_salaam

failed to import. Here's the error:

 Issue while inserting job into database

More information about GPX import failures and how to avoid
them can be found at:

 http://wiki.openstreetmap.org/index.php/GPX_Import_Failures


wami-20081209-00.gpx.gz
Description: GNU Zip compressed data
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] [Fwd: [OpenStreetMap] GPX Import failure]

2008-03-24 Thread Tom Hughes
In message <[EMAIL PROTECTED]>
  Paul Hurley <[EMAIL PROTECTED]> wrote:

> I've had a few GPC import failures recently, but the email with the
> error seems to be an error in the code.  When I resubmit the gpx files
> they usually import fine.
> 
> Any ideas ?

I can only assume it's a bug in ruby - the backtick operator seems
to be failing with an obscure error.

Tom

-- 
Tom Hughes ([EMAIL PROTECTED])
http://www.compton.nu/

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


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

2008-03-15 Thread Paul Hurley
I've had a few GPC import failures recently, but the email with the 
error seems to be an error in the code.  When I resubmit the gpx files 
they usually import fine.


Any ideas ?

Thanks

Paul.

--
Paul Hurley http://www.paulhurley.co.uk/
The knack of flying is learning how to throw yourself at the ground and miss.
   Hitchhikers Guide to the Galaxy

--- Begin Message ---
Hi,

It looks like your GPX file

  20080314_1629_alnwick_felton_widdrington_2.gpx

failed to import. Here's the error:

  Bad file descriptor - /usr/bin/file -bz /home/osm/gpx/84186.gpx
/usr/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/core_ext/kernel/agnostics.rb:7:in
 ``'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/core_ext/kernel/agnostics.rb:7:in
 ``'
/var/www/rails/app/models/trace.rb:141:in `xml_file'
/var/www/rails/app/models/trace.rb:177:in `import'
/var/www/rails/lib/daemons/gpx_import.rb:21
/var/www/rails/lib/daemons/gpx_import.rb:15
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/application.rb:159:in 
`start_load'
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/application.rb:236:in 
`start'
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/monitor.rb:51:in `watch'
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/monitor.rb:51:in `watch'
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/monitor.rb:45:in `watch'
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/monitor.rb:44:in `watch'
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/monitor.rb:84:in 
`start_with_pidfile'
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/monitor.rb:64:in 
`start_with_pidfile'
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/monitor.rb:111:in `start'
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/application_group.rb:111:in
 `create_monitor'
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/application.rb:223:in 
`start'
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/controller.rb:69:in `run'
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons.rb:136:in `run'
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons/cmdline.rb:105:in 
`catch_exceptions'
/usr/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib/daemons.rb:135:in `run'
lib/daemons/gpx_import_ctl:20

More information about GPX import failures and how to avoid
them can be found at:

  http://wiki.openstreetmap.org/index.php/GPX_Import_Failures

--- End Message ---
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk