Geocaching.com GPX import
Hi,
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: [url]http://doc.qt.nokia.com/qtmobility/qlandmarkmanager.html#Gpx-var[/url] 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,
Massis
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
Maassis