Sk: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 Screenshot, showing the geo-tagged images feature.
JOSM Screenshot with (outdated) landsat.jar and mappaint.jar plugin.

JOSM znamená "Java Open Street Map Editor". Naprogramoval ho Immanuel Scholz a aktuálne je spravovaný Frederik Ramm. Jeho domovská stránka je http://josm.openstreetmap.de/, kde si môžete stiahnúť poslednú verziu (nočnú kompiláciu, cca 1MB). Vyžaduje Javu vo verzií aspoň 1.5.

Contents

Ktorý editor je lepšie používať

Existujú aj iné editory pre OpenStreetMap dáta, ako napr. Potlatch online editor alebo Merkaartor. Prečo teda používať JOSM? JOSM je editor s množstvom funkcií pre skúsených OSM mapperov. Vyžaduje určité úsilie pri inštalácii a konfigurácii, ale ak chcete byť "veľkým" OSM mapperom, Váš vložený čas na naučenie sa, sa Vám vráti. A ak to znie príliš komplikovano, nemajte strach. Nie je to také strašné ako to znie, ak máte základnú zručnosť s počítačmi.

Offline editor JOSM by ste mali použiť, ak:


Nemali by ste JOSM používať, ak:

Požiadavky

Váš počítač by mal pre spustenie JOSM spĺňať tieto požiadavky:

Stiahnutie & inštalácia

Budete potrebovať Javu 1.5 ak chcete spustiť editor JOSM. Unfortunately Java 1.5 is not available for Mac OS 10.3.x.

Potom len stiahnete jar súbor, ktorý nájdete na hlavnej stránke editora JOSM.

Various people started hacking on JOSM, so there are different flavours and plugins available. 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.

Inštalácia JAVY

Skôr ako budete chcieť spustiť JOSM, musíte mať na Vašom počítači nainštalovanú Javu:

Linux

Ubuntu
Debian "pure"

Poznámka: Ak máte nainštalovaný iný JVM (Java Virtual Machine), vyberte JVM buď určením cesty (/usr/lib/jvm/java-6-sun/java) alebo updatujte konfiguráciu spustením "update-java-alternatives -s java-6-sun"

Gentoo

Štandardná inštalácia:

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 balíky sú dostupné na openSUSE's build service v repozitáry home:rodrigomoya:

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

Windows

Mac OS X

JOSM plugins

Zoznam pluginov je na JOSM/Plugins stránke alebo tiež na JOSM Wiki. Plugins are installed as described below:

Linux & Mac OS X

Windows

Ako spustiť JOSM

Jar súbor je potrebné predať Java 1.5 runtime. Tento krok je závislý od Vášho OS:

Linux

Do konzoly napíšte java -jar josm.jar. 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.

Pre používateľov Ubuntu je príručka na UbuntuForums (v angličtine).

Ak spúštate JOSM za proxy, môžete JVM povedať aby ich použil nasledovne: java -Dhttp.proxyHost=192.168.1.1 -Dhttp.proxyPort=3128 -jar josm.jar. Kde 192.168.1.1 je IP a 3128 je port Vášho proxy servera .


Ak potrebujete použiť IPv6, môžete pridať nasledujúci parameter -Djava.net.preferIPv6Addresses=true

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

Proxy je tu spomenuté len preto, lebo openstreetmap server zatiaľ nepodporuje IPv6.

Windows

Obyčajne stačí dvoj-klik na josm.jar a JOSM sa spustí.

In the rare case that this doesn't work, create a text file named start_JOSM.bat with a simple text editor, for example Notepad. Write the following line in the file:

java -jar josm.jar

Save this .bat file into the same directory where josm.jar is located. Now you can just double-click on the .bat file and JOSM will start up.

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

Začíname

Tipy a triky

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

Automatické priradenie fotiek ku GPS trase

Jedným z problémov pri mapovaní s GPS je záznam názvov ulíc pri križovaní ulíc. Ak máte digitálny foťak, zoberte ho so sebou.

Ak mapujete môžete robiť fotky tam kde to považujete za potrebné (napr. na križovatke, zaujimavých miestach a pod.). Po návate domov si otvorte Vašu GPS trasu v JOSM:

Automatically Matching Sound Recordings to GPS traces

There is now a similar facility for applying and synchronizing sound recordings.

There are three methods, described with step-by-step instructions, in the JOSM Help:

1. Continuous audio with GPS waymarks

With this method, you collect explicit waypoints along your track using the buttons on your GPS and at the same time dictate onto a continuous sound recording on your voice recorder what the waymark represents on the ground - a street name or point of interest. Your GPS notes three key pieces of information about each waypoint - its location, the time it was made, and it's name or number. The audio and waypoint data are then synchronized in JOSM so that you can play back each description by clicking on a Marker representing the waypoint.

2. Continuous audio with vocally-identified points of interest

With this method you also make a continuous sound recording but instead of entering waypoints into your GPS you dictate an audible cue for each point of interest, for example "MARK! River Lane Primary School on left".

3. Audio clips with waymarks

With this method, you make waypoints to identify locations of interest. However you record a separate audio file for each one and the name of each file is added as a <link> element in the corresponding waypoint in the GPX file before loading into JOSM. When JOSM then creates the Audio Marker for each waypoint, it knows which audio clip to play when you click on the marker.

Chybové hlásky JOSM

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 sa spustí ale okno je prázdne

Može sa to stať vdety ak máte aktivovaný compiz/beryl. Riešenie je jednoduché, pridajte nasledujúci riadok do užívateľského profilu:

export AWT_TOOLKIT="MToolkit"

Poznámky pre začiatočníkov

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

Prečo sa moje zmeny nezobrazujú?

See also

Related

External links

Personal tools
Namespaces
Variants
Actions
site
Toolbox