Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2012

    Geocaching.com GPX import


    I'd like to import waypoints exported, as "pocket queries", from geocaching.com

    I believe they use a specific dialect of GPX, their own one, but still, it is GPX.

    I've seen here: http://doc.qt.nokia.com/qtmobility/q...r.html#Gpx-var that a GPX import function is already implemented in Qt Mobility Location API.

    However, I was wondering will this only import "basic" information, like coordinates and name, or will it handle all information (like description, hints, recent logs)?

    If not, I imagine I will have to write my own (xml-)parser and build a sqlite db. What would be an elegant way to do so, to reuse as many extant objects as possible, rather than reinventing the wheel?

    If need, I can provided a gc.com gpx file as an exemple.

    Thanks for your help,


  2. #2
    Registered User
    Join Date
    May 2012

    Re: Geocaching.com GPX import

    Well, after investigation, it appears that GC GPX is an extended format, so I'll have to manage my own database, without reusing extant objets.

    Quite new to sqlite and xml, though, could someone point me to a tutorial or code example, to :
    1. Populate a sqlite databse by parsing a xml file (initialisation of db)
    2. Expose that db, by using a QAbstractItemModel, to Listview?

    I have to admit that I'm confused and am struggling to understand how to use the QXmlStream* parser to populate a sqlite db and how to link the sqlite db to QAbstractItemModel.

    Thanks for your help


Similar Threads

  1. import java.security.*; & import java.math.*;
    By hosiupig in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2009-12-26, 10:58
  2. how to import .jar
    By amitkamboj in forum Mobile Java Games
    Replies: 17
    Last Post: 2009-04-01, 05:32
  3. import * or import specific
    By arpit2agrawal in forum Mobile Java General
    Replies: 2
    Last Post: 2009-01-06, 00:00
  4. import C dll
    By NaKeD in forum Symbian
    Replies: 6
    Last Post: 2008-12-16, 21:47
  5. Replies: 0
    Last Post: 2005-10-28, 10:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts