Notices


Reply
Thread Tools
Posts: 14 | Thanked: 1 time | Joined on May 2007
#1
Greetings. is maemo-mapper capable of importing .gpx files? I'm having issues importing the following (I was under the impression id *did* support them), so perhaps someone can either tell me otherwise, or point out what's wrong with the following (small) bit of code:

Thanks!

Code:
<gpx xmlns="http://www.topografix.com/GPX/1/1" creator="KML2GPX 1.0" version="1.1" 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">
  <wpt lat="48.864590" lon="2.324655">
    <name>Jardin des Tuileries</name>
    <cmt>Google Earth</cmt>
    <sym>Waypoint</sym>
  </wpt>
  <wpt lat="48.873730" lon="2.295138">
    <name>Arc de Triomphe</name>
    <cmt>Google Earth</cmt>
    <sym>Waypoint</sym>
  </wpt>
  <wpt lat="48.866997" lon="2.320789">
    <name>Buddha Bar</name>
    <cmt>Google Earth</cmt>
    <sym>Waypoint</sym>
  </wpt>
  <trk>
    <name>Champs Elysee</name>
    <trkseg>
      <trkpt lat="48.866127" lon="2.318974"/>
      <trkpt lat="48.870644" lon="2.304811"/>
      <trkpt lat="48.873817" lon="2.295284"/>
    </trkseg>
  </trk>
</gpx>
 
gnuite's Avatar
Posts: 1,245 | Thanked: 421 times | Joined on Dec 2005
#2
Maemo Mapper doesn't support the wpt tag. It's a long story, but it doesn't really fit with Maemo Mapper's track data structures. (Why are the waypoints separate from track points? How am I supposed to correlate the two?)

Maemo Mapper only supports the trk tag. The trk tag in your example should actually cause a three-point track to be imported into Maemo Mapper (as a track or a route, depending on how you open it). To create waypoints, a given trkpt object should have a desc tag inside it, the contents of which determine the text that is displayed (or read by flite) when you approach the waypoint.

I've been meaning to add more robust support for GPX to Maemo Mapper, including support of the wpt tag, but it might break backward compatibility, so I'm saving it for Maemo Mapper v2.0.
 
Posts: 14 | Thanked: 1 time | Joined on May 2007
#3
Originally Posted by gnuite View Post
Maemo Mapper doesn't support the wpt tag. It's a long story, but it doesn't really fit with Maemo Mapper's track data structures. (Why are the waypoints separate from track points? How am I supposed to correlate the two?)

...

I've been meaning to add more robust support for GPX to Maemo Mapper, including support of the wpt tag, but it might break backward compatibility, so I'm saving it for Maemo Mapper v2.0.
Thanks -- I'll write a parser that does some substitution and converts all the wpts into 1-point tracks (that seems like the only workaround at the moment?). Would an interim solution (or perhaps even a persistent one) be to treat orphaned wpt tags as POIs? Ultimately, that's what I'm trying to do -- I've built a large custom map in Google Maps that I'd like to import into maemo-mapper, however almost all of the data on my custom map is POIs (restaurants, landmarks, etc.), and when I run the exported KML file (downloaded from GMaps) through my KML2GPX converter, it converts all of my POIs to wpt tags.

Last edited by slikrik98; 2007-05-30 at 16:20.
 
Posts: 14 | Thanked: 1 time | Joined on May 2007
#4
Originally Posted by gnuite View Post
Maemo Mapper doesn't support the wpt tag. It's a long story,
but it doesn't really fit with Maemo Mapper's track data structures. (Why are the
waypoints separate from track points? How am I supposed to correlate the two?)
.
can you see what maemo mapper might not like about this gpx file? I converted all the wpt tags into track points:

Code:
<gpx version="1.0"
creator="GPSBabel - http://www.gpsbabel.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.topografix.com/GPX/1/0"
xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
<trk>
<trkseg>
<trkpt lat="48.853889000" lon="2.333371000">
  <ele>0.000000</ele>
  <name>Cafe Les Deux Magots</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.853958000" lon="2.332581000">
  <ele>0.000000</ele>
  <name>Cafe de Flore</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.865047000" lon="2.328022000">
  <ele>0.000000</ele>
  <name>Chez Angelina </name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.858204000" lon="2.294359000">
  <ele>0.000000</ele>
  <name>EIFFEL TOWER</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.860107000" lon="2.339627000">
  <ele>0.000000</ele>
  <name>MUSEE du LOUVRE</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.860657000" lon="2.325871000">
  <ele>0.000000</ele>
  <name>MUSEE d&apos;ORSAY</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.853840000" lon="2.348047000">
  <ele>0.000000</ele>
  <name>Cathedrale Notre Dame de Paris</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.855915000" lon="2.316021000">
  <ele>0.000000</ele>
  <name>Musée Rodin</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.851727000" lon="2.356834000">
  <ele>0.000000</ele>
  <name>Berthillon Glacier</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.857269000" lon="2.341419000">
  <ele>0.000000</ele>
  <name>Pont Neuf Bridge</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.851036000" lon="2.335725000">
  <ele>0.000000</ele>
  <name>Hotel Relais Saint Sulpice</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.855473000" lon="2.344805000">
  <ele>0.000000</ele>
  <name>SAINT CHAPPELLE</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.873730000" lon="2.295138000">
  <ele>0.000000</ele>
  <name>Arc de Triomphe</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.860722000" lon="2.353203000">
  <ele>0.000000</ele>
  <name>Au Centre Pompidou</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.864590000" lon="2.324655000">
  <ele>0.000000</ele>
  <name>Jardin des Tuileries</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.887180000" lon="2.343412000">
  <ele>0.000000</ele>
  <name>Sacre Coeur (Basilique du)</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.856613000" lon="2.325883000">
  <ele>0.000000</ele>
  <name>Gaya Rive Gauche - Fri night</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.857262000" lon="2.366163000">
  <ele>0.000000</ele>
  <name>Le Petit Marche - SAT NIGHT</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.866997000" lon="2.320789000">
  <ele>0.000000</ele>
  <name>Buddha Bar</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.880581000" lon="2.354988000">
  <ele>0.000000</ele>
  <name>TGV Station</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.844288000" lon="2.336802000">
  <ele>0.000000</ele>
  <name>Jardin du Luxembourg</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.865593000" lon="2.320718000">
  <ele>0.000000</ele>
  <name>Place de la Concorde</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.854752000" lon="2.332939000">
  <ele>0.000000</ele>
  <name>Le Petit Zinc</name>
</trkpt>
</trkseg>
</trk>
<trk>
<trkseg>
<trkpt lat="48.866127000" lon="2.318974000">
  <ele>0.000000</ele>
</trkpt>
<trkpt lat="48.870644000" lon="2.304811000">
  <ele>0.000000</ele>
</trkpt>
<trkpt lat="48.873817000" lon="2.295284000">
  <ele>0.000000</ele>
</trkpt>
</trkseg>
</trk>
</gpx>

Last edited by slikrik98; 2007-06-01 at 00:15.
 
gnuite's Avatar
Posts: 1,245 | Thanked: 421 times | Joined on Dec 2005
#5
Originally Posted by slikrik98 View Post
can you see what maemo mapper might not like about this gpx file? I converted all the wpt tags into track points:
Use the desc tag, not the name tag.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:29.