×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2013
    Posts
    1

    KML parsing with Nokia Qt SDK maps demo

    I have installed QTSDK 1.2.1 and using mapsDemo example. I want to parse my own kml file which has place markers and display it on map.

    i am new to kml file parsing. Any Qt API to support this? any tips on KML parsing with Qt?

  2. #2
    Regular Contributor
    Join Date
    Aug 2011
    Location
    Berlin
    Posts
    288

    Re: KML parsing with Nokia Qt SDK maps demo

    The Nokia Maps API for Qt and Maps Demo itself does not have a dedicated KML parser within it. However KML is merely a "well-known" format of XML, and a series of Qt XML Examples already exist. To read KML all you would need to do is parse the <coordinates> element within each <Point> element within each <Placemark> and so on.

    Code:
    <kml xmlns="http://www.opengis.net/kml/2.2">
    	<Document>
    ...
    <Placemark>
    ...
    	<Point>
    		<coordinates>13.505812,52.375318,0</coordinates>
    	</Point>
    </Placemark>  ...etc
    It gets a bit more complicated when trying to parse complex documents with <Folder>, but you will only need to do this if your input KML is more advanced. I would try reading a few simple but schematically well defined sample KML files first and just output the coordinates read. Try searching for a "Sample KML file" to get some examples.

Similar Threads

  1. how can i, create a nokia.maps.map.Polyline using a nokia.maps.routing.Manager?
    By upixsoul in forum [Archived] Maps API for Javascript
    Replies: 5
    Last Post: 2012-05-30, 15:54
  2. Is there a way to convert Maps Data from Nokia Maps 3 to be compatible with N Maps 2
    By dimchopicha in forum General Development Questions
    Replies: 6
    Last Post: 2011-01-09, 17:50
  3. Navigation route coordinates from Nokia Maps or Ovi Maps
    By selimsolmaz in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2010-03-04, 10:02
  4. Replies: 3
    Last Post: 2010-03-03, 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
  •  
×