Results 1 to 2 of 2

Thread: using offline OpenStreetMap

  1. #1
    Join Date
    Dec 2016
    Qt products
    Windows Android

    Default using offline OpenStreetMap

    I want to show offline a small area of a city on map. this link and its example is useful for me:

    i downloaded .osm file by:

    but now 1- I dont know how to convert the osm file to .png(s) files and also 2- I dont know how to name it in pattern of "osm_100-<l|h>-<map_id>-<z>-<x>-<y>.<extension>" that this is the filename pattern.

    please help me to solv my two problems. thanks

  2. #2
    Join Date
    Jan 2009
    Thanked 12 Times in 12 Posts
    Qt products
    Unix/X11 Windows

    Default Re: using offline OpenStreetMap

    Not that I have detailed insight into this problem, but using the tiles you get from this engine you could compute the color of a pixel and use QImage or QPixmap to generate an image pixel by pixel, and save the image as a png file with the save() function.
    The file name you need you could build using QString's facilities, no?

Similar Threads

  1. Qt 5.9.1 offline installation problem
    By gotronics in forum Newbie
    Replies: 1
    Last Post: 5th September 2017, 21:02
  2. Location: Offline Maps
    By Martin5017 in forum Newbie
    Replies: 1
    Last Post: 19th May 2016, 15:37
  3. Qt 5.1.0 Commercial-Offline Installation
    By swamyonline in forum Installation and Deployment
    Replies: 0
    Last Post: 15th August 2013, 12:43
  4. using offline ovi map
    By k.elgohare in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2012, 14:54
  5. Qt + QtWebkit + OpenStreetMap + Nokia 5800 XM
    By Tadas in forum Qt Programming
    Replies: 0
    Last Post: 7th November 2010, 19:30


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.