3 ms·
Do you have any recommendation for displaying vector maps in C++ (native program, not web)? The whole field seems very confusing.
by hoseja 7y ago
Do you have any recommendation for displaying vector maps in C++ (native program, not web)? The whole field seems very confusing.
- jokoon 7y agoNot at all, I don't. I tried rendering those mbtiles myself, and I failed. You can do as I as I did, import data from exports available on geofabrik into spatialite. And then progressively render data from spatialite (I did not try that step). ogr2ogr allows you to do this: ogr2ogr -f "SQLite" db.sqlite roads.shp -dsco SPATIALITE=YES You can find those .shp here http://download.geofabrik.de/ http://download.geofabrik.de/ Then the query in spatialite, here with python: where2 = lambda lng, lat, dist: " where PtDistWithin(geom, GeomFromText('POINT(%f %f)', 4326), %f, 0)"%(lng, lat, dist) select2 = lambda lng, lat, dist: "select id, AsText(geom) from points "+where2(lng, lat, dist)