Install the postgresql9.3+postgis2.1 and OpenStreetMap data (OSM) Import Tool osmosis

Source: Internet
Author: User
Tags postgresql postgis

Description

To get this thing, I experimented on two operating systems for the win8.1 system and one ubuntu14.04lts, and the data was imported successfully.

The win8.1 is postgresql9.3+postgis2.1+the latest version of osmosis. Under the win8.1:

   

ubuntu14.04 is postgresql9.4+postgis2.1: (Back up)

Reference:

http://blog.csdn.net/bobantangzlt/article/details/17091625

Http://wiki.openstreetmap.org/wiki/Osmosis

Http://wiki.openstreetmap.org/wiki/Osmosis/PostGIS_Setup

http://www.v5cn.cn/?p=167

First, installation

1. Download installation files: http://www.postgresql.org/download/

2, the installation process is relatively simple, there are several needs to explain:

1) Choose the default locale or C below

    

2) The following check box will automatically download the matching PostGIS.

    

3) do not tick the following, this will ensure that the next installation of PostGIS.

    

4) During the installation of the PostGIS process, if you encounter a similar pop-up box (about three or four), select Yes.

    

The above is the installation of Windows under the process, so that the postgresql9.3+postgis2.1 installed.

Osmosis can be directly downloaded decompression can be used: http://wiki.openstreetmap.org/wiki/Osmosis#Latest_stable_version

(osmosis relies on the JVM to ensure that the Java_home, path settings on the computer are all set up)

Below is the Ubuntu installation, the process is more simple:
1) sudo apt install postgresql-9.4-postgis-2.1

2) sudo apt install osmosis

OK, now the postgresql+postgis+osmosis have been installed.

Second, the data import: see another article

Install the postgresql9.3+postgis2.1 and OpenStreetMap data (OSM) Import Tool osmosis

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.