为JMapViewer创建离线地图图块 [英] Creating offline map tiles for JMapViewer

查看:108
本文介绍了为JMapViewer创建离线地图图块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从图像为JMapViewer创建离线地图图块.我怎样才能做到这一点?生成这些图块的工具是什么?

I want to create offline map tiles for JMapViewer from an image. 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.离线渲染器
这有点复杂,因为您需要使用渲染器,地图样式和OSM数据包在盒子上渲染自己的地图图块.第一种简单的方法是使用 Maperitive ,因为它很容易配置并且带有样式.更高级的是,您可以设置整个OSM渲染堆栈(Mapnik,PostgreSQL DB,渗透,...),因此请参见www.switch2osm.org上的教程

1. Offline renderer
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. A first simple way is to make use of Maperitive as it's very easy to configure and comes with styles. More advanced, you can setup a whole OSM rendering stack (Mapnik, PostgreSQL DB, osmosis, ...) so please see the tutorial at www.switch2osm.org

2.磁贴下载器
这很容易.有多种工具可从官方服务器下载图块:
http://wiki.openstreetmap.org/wiki/Category:Tile_downloading
但是请记住,这台机器是捐赠的,不应仅由几个单一用户来强调.因此,速度必须非常适中并遵守TUP:
http://wiki.openstreetmap.org/wiki/Tile_Usage_Policy

2. Tile downloader
This is pretty easy. There are different tools to download tiles from the official servers:
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:
http://wiki.openstreetmap.org/wiki/Tile_Usage_Policy

这篇关于为JMapViewer创建离线地图图块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆