Zh-hans:JOSM

From OpenStreetMap Wiki
Jump to: navigation, search
Help
Available languages
Deutsch English Español Eesti Euskara Suomi Français עברית Magyar Italiano 日本語 Nederlands Polski Português Português do Brasil Русский Slovenčina Shqip Українська Tiếng Việt ‪中文(简体)‬ ‪中文(繁體)‬
JOSM
JOSM-Jan-2009.jpg
author:
website: http://josm.openstreetmap.de
version: 3712 (2010-12-12)
license: GPL

win ; linux ; mac

离线的高度可扩展地图编辑器

JOSM Screenshot, showing the geo-tagged images feature.
JOSM Screenshot with (outdated) landsat.jar and mappaint.jar plugin.

JOSM 是一个由 Immanuel Scholz 开发和 Dirk Stöcker 维护的基于Java的"Java Open Street Map Editor"。 本地图编辑软件的主页在http://josm.openstreetmap.de/, 你可以在这里下载

Download josm-tested button.png
josm-tested.jar JOSM 稳定版
josm-latest.jar 最新的开发版
java web-start 在网页上直接启动
josm-setup.exe Windows Installer

Contents

你应该选择什么编辑器

除了JOSM外,还有其他地图编辑软件可以编辑OpenStreetMap的数据, 例如Potlatch在线编辑软件或者Merkaartor. 那么到底什么时候应该使用JOSM什么时候应该使用其他的地图编辑软件呢?恩,JOSM是一个给有经验的OSM地图制作人员使用的功能众多的编辑软件。在使用它之前,你需要安装和配置。但如果你想成为一个“万人景仰”的OSM地图制作者,花些时间去熟悉JOSM是很值得的。

你可以用这个离线地图编辑器做以下的工作:

如果你只是做一下的事情,或者你并不需要使用JOSM:

运行JOSM的软硬件需求

为了能够运行JOSM,你使用的电脑需要以下配置:

还请注意,opengl选项可能会在Linux上的window managers发生问题。

下载和安装

要运行JOSM你的电脑需要先安装Java 1.5以上的运行环境。遗憾的是,暂时还没有支持Mac OS 10.3.x的Java 1.5。

然后你只需要在主页下载JOSM的jar文件。

有很多人已经开始改进JOSM, 所以你可以找到有很多插件。While the main JOSM trunk is at http://josm.openstreetmap.de/, you can download modified versions of JOSM, plugins or external tools that enhance JOSM.

安装Java

首先请确认你的电脑上已经安装了Java运行环境。

Linux

Ubuntu
Debian "pure"

注意: 如果你还安装了其他的JVM。你需要指定sun java vm的执行路径(/usr/lib/jvm/java-6-sun/java)或者使用"update-java-alternatives -s java-6-sun"更新系统配置。

Gentoo

标准安装:

emerge josm

If you are interested in latest josm-development and plugins use the OpenStreetMap Gentoo Overlay. By using the "x86"-keyword you get a stable release, the "~x86"-keyword installs the svn-version.

There are many plugins already available as ebuilds. Look at http://svn.openstreetmap.org/applications/utils/gentoo/ for a complete list.

openSUSE

JOSM packages are available in the openSUSE's build service, in the home:rodrigomoya repository:

zypper ar http://download.opensuse.org/repositories/home:/rodrigomoya/openSUSE_10.3
zypper ref
zypper in josm

Windows

Mac OS X

JOSM插件

A list of plugins is on the JOSM/Plugins page in this Wiki, and also in the JOSM Wiki. Plugins are installed as described below:

Linux & Mac OS X

Windows

运行JOSM

The jar file needs to be passed to the Java 1.5 runtime. This step is different to the various platforms:

Linux

Just type java -jar josm.jar in a shell. There are also some tutorial videos. One describes the steps to set up KDE for starting JOSM by clicking on the JAR file. Get the tutorials from one of the mirrors listed at openstreetmap.de.

Ubuntu users have a good tutorial at UbuntuForums.

If you need to use it from behind a proxy, you can tell it to the java runtime like java -Dhttp.proxyHost=192.168.1.1 -Dhttp.proxyPort=3128 -jar josm.jar, with the IP and port of your proxy.


If you need ipv6, you can tell it to the java runtime with -Djava.net.preferIPv6Addresses=true

e.g. java -Djava.net.preferIPv6Addresses=true -Dhttp.proxyHost=proxy.ipv6.uni-leipzig.de -Dhttp.proxyPort=3128 -jar josm/josm-snapshot-xxx.jar

The proxy here is only mentioned because the openstreetmap-server doesn't support ipv6 yet.

Windows

一般来说,你只需要双击josm.jar文件就可以运行JOSM软件.

在某些情况下,如果双击不能运行,你就需要创建一个简单的文本文件(文件名字为:start_JOSM.bat,或者任意你喜欢的以.bat结尾的文件)。文件内容只需要包含以下简单的一行:

java -jar josm.jar

然后把这个bat文件保存在和josm.jar同一个目录下。现在你就可以通过执行这个bat文件来运行JOSM了。

You can also set up a shortcut to the JOSM.jar file which allows the inclusion of additional parameters. I have the following as the short cut "Target" in my Start Menu which starts a control prompt window (useful to see progress of uploads/downloads), loads JOSM in its separate window, and assigns 512mb of memory for the process which dramatically speeds up operation when editing dense data. Change "path" to the full path of your josm-latest.jar file.

C:\WINDOWS\system32\java.exe -jar -Xmx512M "C:\path\josm-latest.jar"

Mac OS X systems

You need Mac OS 10.4 or better. 10.3 will not do the job. In 10.4.x, simply double click on the jar file and Java 1.5 should load the JOSM jar file. If you need to allocate more memory to JOSM (in order to edit larger files), the following script will help:

java -jar -Xmx256M -XX:MaxPermSize=256M josm-latest.jar

开始使用JOSM

使用技巧

See also JOSM/Advanced Tricks (more tips for more experienced users)


Automatically Matching Photos to GPS traces

One of the problems when out mapping with a GPS is trying to keep accurate notes about the street names as you pass each junction. If you have a digital camera to take out with you, JOSM can help.

As you are travelling around, take a picture at appropriate places/junctions/road signs. Then, when you get home with your completed GPS track uploaded into JOSM:

Automatically Matching Sound Recordings to GPS traces

As of build 549 there is a similar facility for applying and synchronising sound recordings.

Then you get home with your completed GPS track uploaded into JOSM, if you have explicit waypoints:
If you don't have explicit waypoints (n.b. applies from build 551 only):
In both cases:

JOSM error messages

Error while parsing. An error has occurred

The most likely cause of the above error is that the server is slow and has not sent the required response back to JOSM. If this occurs just try uploading the data again, and JOSM will resume from where it left off.

If you get error 412 precondition failed, it means that something changed on server in unexpected way. Try deleting affected objects.

JOSM seems to start okay, but the window is blank

If you have the fancy, compiz/beryl graphics stuff enabled, then this may happen. The solution is simple, add the following line to the user profile:

export AWT_TOOLKIT="MToolkit"

Newbie Notes

Here's a few notes from a beginner's (Parsingphase) first couple of days working on OSM, using the JOSM editor (on Mac OS X).

Mac-specific points

Points for all platforms

Why don't my changes appear?

参考资料

相关页面

外部链接

Personal tools
Namespaces
Variants
Actions
site
Toolbox