简体   繁体   English

为JMapViewer创建脱机地图图块

[英]Creating offline map tiles for JMapViewer

I want to create offline map tiles for JMapViewer from an image. 我想从图像中为JMapViewer创建离线地图图块。 How may I be able to achieve it? 我怎么能够实现它? What are the tools used to generate those tiles? 用于生成这些瓷砖的工具有哪些?

There are different ways to reach that goal. 有不同的方法来实现这一目标。 All of them make use of an external toolchain: 所有这些都使用外部工具链:

1. Offline renderer 1.离线渲染器
This is a bit more complex, as you need to use a renderer, a map style and OSM data packages to render your own map tiles on your box. 这有点复杂,因为您需要使用渲染器,地图样式和OSM数据包来渲染您自己的地图图块。 A first simple way is to make use of Maperitive as it's very easy to configure and comes with styles. 第一种简单的方法是使用Maperitive,因为它非常容易配置并且带有样式。 More advanced, you can setup a whole OSM rendering stack (Mapnik, PostgreSQL DB, osmosis, ...) so please see the tutorial at www.switch2osm.org 更高级,你可以设置一个完整的OSM渲染堆栈(Mapnik,PostgreSQL DB,osmosis,...)所以请参阅www.switch2osm.org上的教程。

2. Tile downloader 2.平铺下载器
This is pretty easy. 这很简单。 There are different tools to download tiles from the official servers: 从官方服务器下载磁贴有不同的工具:
http://wiki.openstreetmap.org/wiki/Category:Tile_downloading http://wiki.openstreetmap.org/wiki/Category:Tile_downloading
But please keep in mind that this machines are donated and should not be stressed by just a few single users. 但请记住,这些机器是捐赠的,不应该仅由少数单个用户强调。 So the speed needs to be very moderate and respect the TUP: 所以速度需要非常温和并尊重TUP:
http://wiki.openstreetmap.org/wiki/Tile_Usage_Policy http://wiki.openstreetmap.org/wiki/Tile_Usage_Policy

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM