Hello !

Elle sont bien présente, le fichier xml est syntaxiquement correct (j'ai
vérifié en l'ouvrant avec Firefox ;-) )

Je viens de faire un essais avec un tout petit fichier :
<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1"; version="1.1" creator="Nokia
Sports Tracker" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.topografix.com/GPX/1/1
http://www.topografix.com/GPX/1/1/gpx.xsd";>
<metadata>
<name>19.05.2008 07:56</name>
<desc>Cycling</desc>
<author><name>Stephane</name></author>
<time>2008-05-19T08:00:18.93</time>
</metadata>
<trk>
<name>19.05.2008 07:56</name>
<trkseg>
<trkpt lat="46.506072" lon="6.674308">
<ele>443.5</ele>
<speed>0.8</speed>
<course>58.0</course>
<desc>Speed 0.8 km/h Distance 0.00 km</desc>
<time>2008-05-19T08:00:19.43</time>
<name>1</name>
</trkpt>
<trkpt lat="46.506077" lon="6.674320">
<ele>443.5</ele>
<speed>0.9</speed>
<course>137.5</course>
<desc>Speed 0.9 km/h Distance 0.00 km</desc>
<time>2008-05-19T08:00:20.31</time>
<name>2</name>
</trkpt>
<trkpt lat="46.506072" lon="6.674327">
<ele>444.5</ele>
<speed>6.4</speed>
<course>90.0</course>
<desc>Speed 6.4 km/h Distance 0.00 km</desc>
<time>2008-05-19T08:00:22.31</time>
<name>3</name>
</trkpt>
</trkseg>
</trk>
</gpx>

Et j'ai eu le résultat suivant :( :
Hi,

It looks like your GPX file

 W20080519080018_1.gpx

with the description

 short test

and no tags.

failed to import. Here's the error:

 undefined method `[]' for nil:NilClass
/usr/lib/ruby/1.8/rexml/source.rb:131:in `initialize'
/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:126:in `stream='
/usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:100:in `initialize'
/usr/lib/ruby/1.8/rexml/parsers/sax2parser.rb:11:in `initialize'
/var/www/rails/lib/osm.rb:106:in `points'
/var/www/rails/app/models/trace.rb:190: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


Sarge

2008/5/20 Steven Le Roux
<[EMAIL PROTECTED]<https://mail.google.com/mail?view=cm&tf=0&ui=1&[EMAIL 
PROTECTED]>
>:

>
>
> 2008/5/20 Stéphane Brunner <[EMAIL 
> PROTECTED]<https://mail.google.com/mail?view=cm&tf=0&ui=1&[EMAIL PROTECTED]>
> >:
>
>> Hello !
>>
>> J'utilise l'application Sport Tracker pour prendre des traces depuis mon
>> Nokia N95, les premier jours d'utilisation j'arrivais à importer les traces
>> mais depuis quelque jours je n'arrive plus :(
>> Bref que-ce qui ne va pas ?
>>
>> Extrais d'un des fichiers importés :
>> <?xml version="1.0" encoding="UTF-8"?>
>> <gpx xmlns="http://www.topografix.com/GPX/1/1"; version="1.1"
>> creator="Nokia Sports Tracker" xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
>> http://www.topografix.com/GPX/1/1
>> http://www.topografix.com/GPX/1/1/gpx.xsd";>
>> <metadata>
>>
>
> Vérifie que tu aies bien la balise </gpx> à la fin de ton fichier :)
>
> sur l'extrait que tu donnes il n'y en a pas.
>
> --
> Steven Le Roux
> Jabber-ID : [EMAIL 
> PROTECTED]<https://mail.google.com/mail?view=cm&tf=0&ui=1&[EMAIL PROTECTED]>
> _______________________________________________
> Talk-fr mailing list
> [email protected]<https://mail.google.com/mail?view=cm&tf=0&ui=1&[EMAIL
>  PROTECTED]>
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk-fr<https://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk-fr>
>
>


-- 
Stéphane Brunner
mail : [EMAIL PROTECTED]<https://mail.google.com/mail?view=cm&tf=0&ui=1&[EMAIL 
PROTECTED]>
messageries instantanées :
[EMAIL PROTECTED]<https://mail.google.com/mail?view=cm&tf=0&ui=1&[EMAIL 
PROTECTED]>(
http://talk.google.com)
--------------------------------------
http://www.ubuntu-fr.org - Distribution Linux
http://fr.wikipedia.org - Encyclopédie communautaire
http://mozilla-europe.org - Navigateur internet / Client de messagerie
http://framasoft.net - Annuaire de logiciel libre (gratuit)
http://jeuxlibres.net - Jeux Libres (gratuit)
--------------------------------------
Il existe 10 sortes de personnes : celles qui connaissent le binaire, et les
autres.
Si Microsoft inventait un truc qui plante pas, ce serait un clou.

Si un jour on te reproche que ton travail n'est pas un travail de
professionnel, dis toi que :
Des amateurs ont construit l'arche de Noé, et des professionnels le Titanic.
_______________________________________________
Talk-fr mailing list
[email protected]
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk-fr

Répondre à