Results 1 to 2 of 2

Thread: using offline OpenStreetMap

  1. #1
    Join Date
    Dec 2016
    Posts
    26
    Thanks
    14
    Qt products
    Qt5
    Platforms
    Windows Android

    Default using offline OpenStreetMap

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

    https://blog.qt.io/blog/2017/05/24/q...eetmap-plugin/

    i downloaded .osm file by: https://www.openstreetmap.org/export#map

    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
    Location
    Germany
    Posts
    358
    Thanks
    86
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    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, 22:02
  2. Location: Offline Maps
    By Martin5017 in forum Newbie
    Replies: 1
    Last Post: 19th May 2016, 16:37
  3. Qt 5.1.0 Commercial-Offline Installation
    By swamyonline in forum Installation and Deployment
    Replies: 0
    Last Post: 15th August 2013, 13:43
  4. using offline ovi map
    By k.elgohare in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2012, 15:54
  5. Qt + QtWebkit + OpenStreetMap + Nokia 5800 XM
    By Tadas in forum Qt Programming
    Replies: 0
    Last Post: 7th November 2010, 20:30

Bookmarks

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.