[HOT] HOT-OSM Senegal (Fr&En) : Help needed to upload a .gpx without timestamps
Peter Bremer
peter.bremer at gmail.com
Tue Sep 10 20:47:51 UTC 2013
I was able to convert the GPX file to one that is accepted (
http://www.openstreetmap.org/user/Peter%20Bremer/traces/1554856) by using
the online converter of GPSies (http://www.gpsies.com/convert.do). If you
have many that need converting, you could have a look at GPSBabel (
http://www.gpsbabel.org/)...
On Tue, Sep 10, 2013 at 7:32 PM, Augustin Doury
<augustin.doury at hotosm.org>wrote:
> *French first, english below :*
>
> Salut à tous,
>
> Besoin d'un coup de pouce technique!
>
> Awa Dia, Community Mobilizer sur OSM-Senegal (mission HOT), a récupéré via
> le Directeur du Service Informatique de Dakar Dem Dik (compagnie de
> transport dakaroise) un fichier .kmz contenant les tracés de toutes les
> lignes de bus de la capitale sénégalaise. Awa a convertit ce fichier en
> .gpx, il est dispo en pièce-jointe sous le nom de DDD.gpx
>
> Elle a cherché à uploader le .gpx via osm.org mais reçoit ce message
> d'erreur :
>
> Hi,
>
> It looks like your GPX file
>
> Dakar_D_m_Dik.gpx
>
> with the description
>
> ligne de Bus Dakar Dém Dik
>
> and the following tags:
>
> Dakar
> Senegal
>
> failed to import. Here's the error:
>
> Found no good GPX points in the input data. At least 75% of the
> trackpoints lacked a <time> tag.
>
> Selon ce message d'erreur et en regardant le code xml du fichier .gpx, il
> semble qu'il manque un sous-élément <time> à l'élément
> "/gpx/trk/trkseg/trkpt", ce pourrait être quelque chose comme "<time
> 2012-11-27T00:00:00Z /> pour obtenir des timestamps par défaut.
>
> J'ai essayé d'éditer le .gpx à l'aide de XMLStarlet avec la commande
> suivante :
>
> xmlstarlet ed -s "/gpx/trk/trkseg/trkpt" -t elem -n time -v
> "2012-11-27T09:55:08Z" DDD.gpx > output.gpx
>
> C'est la première fois que j'utilise XMLStarlet, j'obtiens bien un
> output.gpx mais rien n'a changé depuis le DDD.gpx
>
> Quelqu'un à une idée? Merci d'avance.
>
> *English version*
>
> Technical help is needed!
>
> Awa Dia, Community Mobilizer for OSM-Senegal, get from the IT Service
> Director of Dakar Dem Dik (Dakar most famous bus company) all the track for
> each of their buslines. Original format is .kmz but Awa has convert this
> file in a .gpx file.
>
> Now she'd like to upload it through osm.org but she receive this error
> message :
>
> Hi,
>
> It looks like your GPX file
>
> Dakar_D_m_Dik.gpx
>
> with the description
>
> ligne de Bus Dakar Dém Dik
>
> and the following tags:
>
> Dakar
> Senegal
>
> failed to import. Here's the error:
>
> Found no good GPX points in the input data. At least 75% of the
> trackpoints lacked a <time> tag.
>
> The .gpx file is attached to this email. According to the error message
> and looking to the xml code from the .gpx file, it seems that a subnode of
> "/gpx/trk/trkseg/trkpt" is missing, it should be something like "<time
> 2012-11-27T00:00:00Z /> to introduce default timestamps.
>
> I tried to edit the .gpx using XMLStarlet with this command line :
>
> xmlstarlet ed -s "/gpx/trk/trkseg/trkpt" -t elem -n time -v
> "2012-11-27T09:55:08Z" DDD.gpx > output.gpx
>
> It's my first time using XMLStarlet, I obtain a output.gpx file but
> nothing had changed from the DDD.gpx original file.
>
> Does somebody have an idea? Thanks in advance.
>
> Augustin Doury
> +33688728760
>
> _______________________________________________
> HOT mailing list
> HOT at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/hot
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/hot/attachments/20130910/c1ca5988/attachment.html>
More information about the HOT
mailing list