3 ms·
Not 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 spati
by jokoon 7y ago
Not 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)