OpenStreetMap offline?

[亡魂溺海] 提交于 2019-12-31 09:05:14

问题


I use OpenStreetMap on my side, but it works through their page. I wonder if it is possible to download some of the map and use the local server. So far I have found something like this: http://openlayers.org/dev/examples/offline-storage.html

http://openlayers.org/dev/examples/offline-storage.js

But here are using the cache.


回答1:


Of course this is possible, OpenStreetMap's data is free and so are most of the tools around it.

For rendering your own tiles just follow the steps described on switch2osm in the serving tiles guide. You can also import one of the extracts if you don't want to serve the whole planet. Alternatively you can use some of the other available renderers and toolchains for creating your own tiles, for example Maperitive and TileMill.

If you are interested in routing then take a look at the routing wiki page and especially at the list of various online routers and offline routers for OSM.

For geocoding there are various search engines available of which Nominatim is the most popular one at the moment.




回答2:


With marble you can download regions of the selected map. Marble also has an interesting list of downloadable maps. Some OSM based: roads, cycle map and satellite as well as historical maps and other.

On linux+macOS+windows: Marble. sudo yum install marble or sudo apt-get install marble e.t.c.

"Marble is a virtual globe and world atlas — your swiss army knife for maps." Offline mode, download maps. Browse map. Select view/data source. Routing. Search. https://marble.kde.org/ https://marble.kde.org/features.php

Many various other applications: https://wiki.openstreetmap.org/wiki/Software/Desktop




回答3:


For use on Android I favour OSMand.It stores data in a much more efficient, routeable, searchable format than the cached tiles. With a reasonable SD card in your phone you can easily have entire continents on your phone for offline use.



来源:https://stackoverflow.com/questions/18735001/openstreetmap-offline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!