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