OSM software analysis

Source: Internet
Author: User

Link: http://lovespss.blog.51cto.com/1907593/515192

Http://josm.openstreetmap.de/wiki/Download#Ubuntu

Http://sourceforge.net/projects/viking/

Forum: http://forum.openstreetmap.org/

 

OpenStreetMap's editing applications

Finally, I entered my favorite step and operated on it. This chapter describes how to convert collected information into a database stored in OpenStreetMap. Three tools are introduced:

Potlatch-Web-based Editor
Josm-Java-based Editor
Merkaartor-desktop applications

Comparison diagram of the three tools:

 

Potlatch took the opportunity to celebrate the winter Gift Festival, but skipped this section without catching a cold gift. Merkaartor is written in C ++ and has little interest. Let's take a look at jsom. Official Website: http://josm.openstreetmap.de /.

Now we are more enlightened. First, let's get down the source code.
Http://josm.openstreetmap.de/svn/trunk. Find the Build File and pack it first. An error was reported during packaging, prompting that SVN could not be found.

[Exec] execute failed: Java. Io. ioexception: cannot run program "SVN": CreateProcess error = 2, the system cannot find the file specified
This bug also exists on the official website, pointing out that svnant needs to be configured. However, after the experiment, it is found that it has little to do with svnant. Fortunately, I installed visualsvn servera few days ago, and svn.exe is added to the PATH environment variable. After restarting eclipse, I am OK.

After logging on to the jar package, I realized why I made the jar package (⊙ o ⊙ )? To download the code, you need to study it. Find the entry class mainapplication and debug it.

It takes several minutes for the interface to come out. First, let's track this example:

Http://www.openstreetmap.org/user/Jonathan%20Bennett/traces/564418

Now, the downloaded trajectory file is loaded.

Follow the prompts in the book and click Download. After waiting for about a minute, I was about to scold it. The window popped up. It turned out that he had loaded the image data in the corresponding area of the track. Sorry, I am wrong.

Of course there are limits for downloading, which is about 50 km * 50KM. It is not easy for others. The free map service has limited server resources. If you encounter a large number of downloads at the same time, you will not be suspended. The user name and password are not required for downloading data. Let's talk less about it. Check raw GPS data and start downloading. Check the map after the download is complete.

Josm supports two views: Standard and wireframe, which are standard and framework. You can use Ctrl + W to switch between them. The wireframe view is as follows, which is not decorated much and concise.

The author wants to repeat the case and re-draw a map. who are afraid. First, kill the downloaded GPX data and data layer Layer 1 to bring it back to its original shape.

Attach Images

After the import, the new geotagged images layer is displayed.

The next editing operation didn't take effect for a long time. It's really no talent for painting. Let's take a look at the last step and edit the preparation for data upload. This requires the user name and password. Josm supports two authentication methods: Simple user name/password and oauth. Let's see what happened to oauth.

1. Click Edit -- preference, locate the connection option, enter the http://www.openstreetmap.org/api in the server URL and verify, the authentication method below select use oauth.

2. log on to openstreetma through a browser.

3. Click authorise now.

4. Select semi-automatic for the authentication process.

5. Click retrieve request token to switch to the browser window. Make sure that all options are selected and save changes.

 

6. switch back to josm and click retrieve access token.

7. Click test access token to perform the test.

 
8. Finally, click accept access token.

Linux/* BSD
Packages
In some distributions prepacked packages exist to install josm with your favorite Package Manager from the repositories. although these packages might be a bit older than. jar files on the main page, they usually fit better into the Environment and
Install dependencies and a starter in the menu automatically.

Note: There is no problem with installing the prepacked package and still using the. Jar files listed above.

If there exists no package or you do not want to use it you can download the josm. jar file from themain page (tested or latest version) or build it from source.

Using the shell
Go to the directory where the josm-latest.jar is and type

java -jar josm-latest.jar

To launch. ReplaceJosm-latest.jarWith the name of the JAR file you loaded, e. g.Josm. JarFor releases.

If this doesn't help, try to set your java_home variable to the Java location (the root location, not the bin. As example:

 export JAVA_HOME=/usr/lib/sun-j2se6.0-jdk java -jar ''josm.jar''
KDE
There is
Tutorial on how to setup your environment to start jar-files by clicking on them.
Gnome
Right click on the JAR file, and select open with "Sun Java 6.0 Runtime", or whatever Java version you have.
Xgl/compiz
Type this into a shell:

export AWT_TOOLKIT=MToolkit && java -jar josm-test.jar

As described here:
Http://kubasik.net/blog/index.php/2006/06/19/java-sun-150-and-xglcompiz-on-ubuntu/

Blank window on startup
AWT before jdk7
Doesn't play well with non-reparenting Window managers (I. e. xmonad, awesome, DWM, ratpoison, ion3 ,...), resulting in the Main Window not being displayed properly on startup. the awesome wiki hasworkarounds
For this problem. There is also anxmonad specific way of doing the wmname thing.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.