Embed osm xml into qt with python
-
wrote on 12 Jan 2022, 16:03 last edited by
Hello ,
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
-
Hello ,
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
@bidd
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
1/2