Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Embed osm xml into qt with python
bidd last edited by
I want to embed locally available osm xml file into GUI using PyQT, I am unable to find suitable resources/tutorials. Please guide me trhough
if you want to render the map of the osm xml file this wont work.
Qt has no parser and no renderer. it can only display already rendered tiles for each zoom level.
Also osm and osm-xml files are rather big and due to their internal structure and tons of information not needed for most viewing cases you will never get an acceptable perfomance by directly rendering them.
you can pre-render the tiles. the osm wiki has alot of information how to do and what tools you can use.
for offline tiles you can read this: https://www.qt.io/blog/2017/05/24/qtlocation-using-offline-map-tiles-openstreetmap-plugin