gpx validator

187 views
Skip to first unread message

Luca Postregna

unread,
Aug 29, 2009, 6:31:19 AM8/29/09
to mainnav-reader
Hi, I have a problem with gpx files generated by mainnav-reader. In
particular I get this error:

.........
09-08-28.gpx:27540: element time: Schemas validity error : Element
'{http://www.topografix.com/GPX/1/1}time': '
2009-08-28T10:33:46
' is not a valid value of the atomic type 'xs:dateTime'.
09-08-28.gpx:27548: element time: Schemas validity error : Element
'{http://www.topografix.com/GPX/1/1}time': '
2009-08-28T10:33:47
..........


sl...@arcor.de

unread,
Sep 3, 2009, 3:11:30 PM9/3/09
to mainnav...@googlegroups.com
Hey,

GPX specifies the date to be in UTC. A date is flagged as UTC with a
trailing 'Z':

Current (wrong): 2009-08-28T10:33:46
Right: 2009-08-28T10:33:46Z

However, the gps-device doesn't know the concept of UTC. It simply
logs a point with the date in the timezone specified during device
setup. To convert the time to UTC, I have to know the timezone, but
if I am right, there is now way to get the correct timezone
automatically without asking the user for it.

Cheers,
Dennis


Am 29.08.2009, 12:31 Uhr, schrieb Luca Postregna
<luca.po...@gmail.com>:

Luca Postregna

unread,
Oct 5, 2009, 11:48:42 AM10/5/09
to mainnav-reader
I fix this error via gpsbabel:

gpsbabel -i gpx -f in.gpx -o gpx -F out.gpx


On Sep 3, 9:11 pm, sl...@arcor.de wrote:
> Hey,
>
> GPX specifies the date to be in UTC. A date is flagged as UTC with a
> trailing 'Z':
>
> Current (wrong): 2009-08-28T10:33:46
> Right:           2009-08-28T10:33:46Z
>
> However, the gps-device doesn't know the concept of UTC. It simply
> logs a point with the date in the timezone specified during device
> setup. To convert the time to UTC, I have to know the timezone, but
> if I am right, there is now way to get the correct timezone
> automatically without asking the user for it.
>
> Cheers,
>   Dennis
>
> Am 29.08.2009, 12:31 Uhr, schrieb Luca Postregna  
> <luca.postre...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages