特殊:Badtitle/NS100:JOSM
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/JOSM }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/af | • {{#if: UbuntuHelp:JOSM|Afrikaans| [[::JOSM/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/ar | • {{#if: UbuntuHelp:JOSM|العربية| [[::JOSM/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/az | • {{#if: UbuntuHelp:JOSM|azərbaycanca| [[::JOSM/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/bcc | • {{#if: UbuntuHelp:JOSM|جهلسری بلوچی| [[::JOSM/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/bg | • {{#if: UbuntuHelp:JOSM|български| [[::JOSM/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/br | • {{#if: UbuntuHelp:JOSM|brezhoneg| [[::JOSM/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/ca | • {{#if: UbuntuHelp:JOSM|català| [[::JOSM/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/cs | • {{#if: UbuntuHelp:JOSM|čeština| [[::JOSM/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/de | • {{#if: UbuntuHelp:JOSM|Deutsch| [[::JOSM/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/el | • {{#if: UbuntuHelp:JOSM|Ελληνικά| [[::JOSM/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/es | • {{#if: UbuntuHelp:JOSM|español| [[::JOSM/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/fa | • {{#if: UbuntuHelp:JOSM|فارسی| [[::JOSM/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/fi | • {{#if: UbuntuHelp:JOSM|suomi| [[::JOSM/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/fr | • {{#if: UbuntuHelp:JOSM|français| [[::JOSM/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/gu | • {{#if: UbuntuHelp:JOSM|ગુજરાતી| [[::JOSM/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/he | • {{#if: UbuntuHelp:JOSM|עברית| [[::JOSM/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/hu | • {{#if: UbuntuHelp:JOSM|magyar| [[::JOSM/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/id | • {{#if: UbuntuHelp:JOSM|Bahasa Indonesia| [[::JOSM/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/it | • {{#if: UbuntuHelp:JOSM|italiano| [[::JOSM/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/ja | • {{#if: UbuntuHelp:JOSM|日本語| [[::JOSM/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/ko | • {{#if: UbuntuHelp:JOSM|한국어| [[::JOSM/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/ksh | • {{#if: UbuntuHelp:JOSM|Ripoarisch| [[::JOSM/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/mr | • {{#if: UbuntuHelp:JOSM|मराठी| [[::JOSM/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/ms | • {{#if: UbuntuHelp:JOSM|Bahasa Melayu| [[::JOSM/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/nl | • {{#if: UbuntuHelp:JOSM|Nederlands| [[::JOSM/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/no | • {{#if: UbuntuHelp:JOSM|norsk| [[::JOSM/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/oc | • {{#if: UbuntuHelp:JOSM|occitan| [[::JOSM/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/pl | • {{#if: UbuntuHelp:JOSM|polski| [[::JOSM/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/pt | • {{#if: UbuntuHelp:JOSM|português| [[::JOSM/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/ro | • {{#if: UbuntuHelp:JOSM|română| [[::JOSM/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/ru | • {{#if: UbuntuHelp:JOSM|русский| [[::JOSM/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/si | • {{#if: UbuntuHelp:JOSM|සිංහල| [[::JOSM/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/sq | • {{#if: UbuntuHelp:JOSM|shqip| [[::JOSM/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/sr | • {{#if: UbuntuHelp:JOSM|српски / srpski| [[::JOSM/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/sv | • {{#if: UbuntuHelp:JOSM|svenska| [[::JOSM/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/th | • {{#if: UbuntuHelp:JOSM|ไทย| [[::JOSM/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/tr | • {{#if: UbuntuHelp:JOSM|Türkçe| [[::JOSM/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/vi | • {{#if: UbuntuHelp:JOSM|Tiếng Việt| [[::JOSM/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/yue | • {{#if: UbuntuHelp:JOSM|粵語| [[::JOSM/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/zh | • {{#if: UbuntuHelp:JOSM|中文| [[::JOSM/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/zh-hans | • {{#if: UbuntuHelp:JOSM|中文(简体)| [[::JOSM/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:JOSM | UbuntuHelp:JOSM | {{#if: | :}}JOSM}}/zh-hant | • {{#if: UbuntuHelp:JOSM|中文(繁體)| [[::JOSM/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:JOSM|:JOSM|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :JOSM/zh | | {{#ifexist: JOSM/zh | | {{#ifeq: {{#titleparts:JOSM|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:JOSM|1|-1|}} | zh | | }}
JOSM is the Java Open Street Map editor for use with the Open Street Map project. This page is solely for Ubuntu related information and installation instructions. For a more in-depth guide and some tutorial material, please visit the OSM wiki page for JOSM.
Installation on Ubuntu
The Open Street Map project has been around for several years now and the best currently developed editor (JOSM) has only recently been packaged for Debian and Ubuntu. While the MOTU maintained package should be your first choice, you can still use this installation guide to use the project's main development jar file directly.
Installing JOSM
JOSM is available from the Universe repositories for the first time in Ubuntu 8.04. So you can install the package josm
very quickly and easily through your favourite package manager. The downside of this is that JOSM is very much a fast moving target and has changed rapidly of the last few months. To take advantage of the bug fixes and new features you may want to download the very latest version. See the following section to install manually.
Manually Installing JOSM
If have a version of Ubuntu older than 8.04 or just want to install JOSM manually then follow these instruction.
Installing Java
As the name implies JOSM requires a Java runtime environment to work. Ubuntu 8.04 has a version of GNU's GCJ that is compatible with JOSM. Unfortunately previous version of Ubuntu will require you to have Sun's JRE of at least v1.5, which is simple to install through Synaptic. Please note this requires the universe repository. /!\ Ensure the Java path is set to the latest Java version. See the Java wiki page for more details.
Downloading JOSM
Click here to download the latest version of JOSM. You may also want to take a look at the recent changelog. Now you can start JOSM by simply running the following command from a terminal using the path to the JOSM jar file.
java -jar ~/Desktop/josm-latest.jar
Note that JOSM can use a lot of memory, so it may pay to run something like java -Xmx512M -jar ...
Desktop Integration
For better integration into the Ubuntu desktop use the following steps (please note that sudo access will be required):
- Move the jar file to the /usr/share/java folder.
sudo mv ./Desktop/josm-latest.jar /usr/share/java/
- Download the menu icon, rename it to josm.png and place it in the /usr/share/pixmaps/ directory.
sudo mv ./Desktop/logo.png /usr/share/pixmaps/josm.png
- Use the following code to create a
josm.desktop
file place it in the /usr/share/applications/ directory.
[Desktop Entry] Encoding=UTF-8 Name=JOSM Comment=Import GPX files and upload Open Street Map data Exec=java -jar /usr/share/java/josm-latest.jar Icon=josm.png Terminal=false Type=Application StartupNotify=true Categories=Application;GTK;Java;Utility;Viewer; MimeType=application/x-GPS-Exchange-Format
Now you should have an entry for JOSM in your desktop menu, the exact location will depend on which desktop you are using.
Updating JOSM
You only have to download a newer josm-latest.jar file to update JOSM to the latest daily build. I would recommend that you do this on a monthly basis if you want to keep up with bug fixes and new features.
Sometimes there will be changes to the default startup settings of JOSM. You will not see these changes until you update your ~/.josm/preferences
file. The quickest way is generate a new one by simply renaming/deleting the file and restarting JOSM. Please bear in mind that if you do this you will lose your current settings such as the upload logon information, if you chose to save it earlier.
Troubleshooting
xcb_xlib_unlock: Assertion `c->xlib.lock' failed. Aborted (core dumped)
If you receive the error this error, try running the following command.
export LIBXCB_ALLOW_SLOPPY_LOCK=true
This page was originally based on this Ubuntuforums.org thread.