Install Free GIS Software
on Your PC
1. Cygwin & GRASS 6.2.3
2. FWTools1.3.4
3. AVCE00-2.0.0-WIN32
4. PostgreSQL-8.2.6 including PostGIS
5. Quantum GIS 0.9.1
6. ODBC setting
7. Expat 2.0.1 (Option)
8. Setting New User and Database for PostgreSQL-8.2.6

1First of all, start Windows with the user account of “Computer administrator type”.
(Ask to your System Engineer to change the type of your account. )Hereafter “yokoi” is used as an example of User_Account_Name.
21

Install Cygwin & GRASS 6.2.3

3

1. Cygwin & GRASS 6.2.3
Insert Install_CD_2009 into the CD
Drive of your PC. It is assumed thisis D:¥ drive.
Cygwin plus GRASS 6.2.3 will be
installed under C:¥cygwin.
42

Copy D:¥cygwin¥setup.exe into C:¥ .
52

3

1

Click on “All Programs”, “Accessories” and “Command Prompt”.
63Then, “Command Prompt” starts.
11

Change directory to C:¥ .

2
Run setup.exe with the option -X.

7

Cygwin Setup starts. Click “Next >” .

84

Select “Install from Local Directory”

Click “Next >” .

9C:¥cygwin

Type in Root Directory “C:¥cygwin”,
Select “All Users” and “Unix/binary”.
Then Click on “Next >”.

105

D:¥cygwin

Type in Local Package Directory “D:¥cygwin”,
Then Click on “Next >”.

11

Change here from “Default” to “Install” by clicking only once.

Then Click on “Next >”.

12

6

Then, Installer does everything necessary.

Be patient, this step takes time.
13

Check these twoand click “Finish”.

147

This icon is added on Desktop.
Then, close “Command Prompt” .

15

Copy D:¥cygwin¥Cygwin_grass.bat and D:¥cygwin¥grass.ico into C:¥cygwin .

16

8Double click on this icon. Then, Cygwin starts.

Directories “/home” and “/home/yokoi” are created automatically.
Files “.bashrc”, “.bash_profile”, and “.inputrc” are copied into “/home/yokoi”
automatically.
17
Close Cygwin.

Copy “D:¥cygwin¥.bashrc” and “D:¥cygwin¥.xinitrc” into “C:¥cygwin¥home¥yokoi” .

18

9Reference:
This copied “.bashrc” file (new one) has only the following five lines.
# start GRASS
if [ -n "$DISPLAY" ] && [ -n "$GRASS_AUTOSTART" ] ; thenunset GRASS_AUTOSTART
exec grass62fi
In case of its absence, please create “.bashrc” .
The copied “.xinitrc” file has the following lines.
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
if [ -f $sysresources ]; then
xrdb -merge $sysresourcesfi
if [ -f $sysmodmap ]; thenxmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"fi
if [ -f "$usermodmap" ]; thenxmodmap "$usermodmap"fi# start some nice programs
twm &xclock -geometry 50x50-1+1 &exec xterm -geometry 80x66+0+0 -name login

19Create a shortcut of “C:¥cygwin¥Cygwin_grass.bat”
and move it into “C:¥Documents and Settings¥All Users¥Desktop”

20

10

“Shortcut to Cygwin_grass.bat” appears on Desktop. Open its property by clicking
the right button of mouse and select “Properties”. Then, click on “Change Icon” and“Browse”. Select “C:¥cygwin¥grass.ico” and click on “Open”, “OK” and again “OK”.

312674521

Copy “D:¥cygwin¥copy_to_cygwin_bin¥cygjaper-1-170-1.dll” into “C:¥cygwin¥bin”.
(This step is necessary for Windows XP. Please verify for others by yourself.)

22

11

Rename the “Shortcut to Cygwin_grass”
to “Cygwin_grass”.

Then, double click on “Cygwin_grass”.

23

Then, “Cygwin” starts, “startx” is automatically typed in and “Cygwin/X:0.0” opens.
On “Cygwin/X:0.0” a console “login” opens. There, GRASS 6.2.3 starts.

Hereafter “Hit RETURN” means “Push Enter Key”.

24

12

Hit RETURN, then GRASS 6.2.3 GUI starts.

25

Create a new subdirectory “grassdata” in “C:¥cygwin¥home¥yokoi”

26

13

Type in “/home/yokoi/grassdata” in “GIS Data Directory”.
Then, click on “Projection Values”

1

2
27

Creation of New LOCATION of x-y coordinates
Display of “login” console is changed.

Location-Mapset setting menu is shown.
Location: x-y
Mapset: yokoi
Database: /home/yokoi/grassdata
Then, Hit <ESC><Enter>.

28

14

Type in “y” and hit “Enter”.

Type in “y” and hit “Enter”.

29Type in “A” to select x-y coordinatesand hit “Enter”.
Type in “y” and hit “Enter”..

Type in a character string andhit “Enter”..
Type in “y” to confirm and hit “Enter”.

30

15

Type in the values that define default region for Location “x-y”.
North: 8000
South: 0
West: 0
East: 8000
GRID RESOLUTION
East_West: 1
North-South: 1
Then, Hit <ESC><Enter>

31

Type in “y” and hit “Enter”.
Location “x-y” is created.
Hit “Enter”.

32

16

Creation of MAPSET

Hit <ESC><Enter>.

33

GRASS 6.2.3 GUI starts.

34

17

Click “File”-”Exit” to stop GUI.

Type in “exit” and hit <Enter> tostop GRASS6.2.3.
Then, “login”, “Cygwin/X:0.0” and“Cygwin” are closed automatically.

35

Creation of New LOCATION of latitude-longitude coordinates (wgs84)
Start GRASS double clicking on ‘Cygwin_grass”.

Click on ‘Projection values’.

36

18

Type ‘lat-long(wgs84)’ in LOCATION,‘user’ in MAPSET
Then, hit ‘Esc” and ‘Enter’.

Type in ‘y’ and hit ‘Enter’.

37Type in ‘y’ and hit ‘Enter’.

Type in ‘B’ and hit ‘Enter’.
Then, type in ‘y’ and hit ‘Enter’.

38

19

Type in a text string and hit ‘Enter’.
geographical coordinates (wgs84)
Type in ‘y’ and hit ‘Enter’.
Type in ‘y’ and hit ‘Enter’.
Type in ‘wgs84’ and hit ‘Enter’.
Type in ‘1’ and hit ‘Enter’.

Type in
NORTH: 90N
WEST 180W

EAST: 180E

SOUTH: 90S
GRID RESOLUTION
Esat-West : 0.000001
North-South: 0.000001
Then, hit ‘Esc’ and ‘Enter’.
39Type in ‘y’ and hit ‘Enter’.
Again hit ‘Enter’.

Creation of MAPSET ‘user’.
Hit ‘Esc’ and ‘Enter’.

40

20Type in ‘y’ and hit ‘Enter’.

GUI of GRASS starts with
LOCATION ‘lat-long (wgs84)’
and MAPSET ‘user’.
Close GUI using ‘File’ and ‘Exit’.
Exit from GRASS typing in ‘exit’and hit ‘Enter’.
41

2. FWTools1.3.4.

42

21

Double click on FWTools136 icon in D:¥.

“FWTools Setup” starts.
Any change is not necessary.

Click on “Next>”.

43

Click on “Install”.

When completed, click Close.
44

22

These two icons are added on Desktop.

Move these two icons to “C:¥Documents
and Settings¥All Users¥Desktop”.

45

3. AVCE00-2.0.0-WIN32.

46

23

Create a new subdirectory “AVCE00” in “C:¥”.
Copy all files in “D:¥avce00” into“C:¥avce00”

474. “PostgreSQL-8.2.6”

48

24

Installing PostGIS(PostgreSQL) as yokoi
User Account=postgres
Passward=seismo

Create Account (Windows)

Account=yokoi

Create a new account“postgres” of Windows.

Account=user

On MicroSoft Windows
49

Create a new account “postgres”.
Click on “start”, “control panel”
and “User Account” .
Then, select “Create a newaccount”.
Type in “postgres” for the newaccount and click on “Next >”.

50

25

Select “Limited” type and click on“Create Account”.

Then, verify theappearance of the accounticon.
Then, double click on it.
51

Click on “Create a password”.

Type in a new password, type itagain to confirm and type in aword to use as a password hint.
Then, don’t forget it.
example: password=“seismo”
hint=“zisin”
Then, click on “CreatePassword”.
52

26

Installation
Double Click on “postgres-8.2.msi” in“D:¥postgresql-8.2.6-2”.
Then, “PostgreSQL Installation Wizard”
starts.
Select the language and click on “Start >”.

53

Click on “Next >”.

Read Installation Notes.
Click on “Next >”.
54

27

Activate “PostGIS” selecting “will beinstalled on local hard drive”.

Click on “Next >”.

55

Installing PostGIS(PostgreSQL) as yokoi
User Account=postgres
Password=seismo
PostgreSQL DataBase Server 8.2
Internal DataBase

Account=yokoi
Create PostgreSQL Server

Installer
PostGIS(PostgreSQL)

Create PostgreSQL
Server in the account“postgres”

Account=user

On MicroSoft Windows
56

28

Set the Service Configuration:
Type in password of the account “postgres”.
Example: password=“seismo”
Then, click on “Next>”.

Click on “Yes” to grant theaccount right as “Log on as aservice”.
57

Successfully granted the “Log onas a service” right.
Click on “OK” .

58

29

Installing PostGIS(PostgreSQL) as yokoi
Account=yokoi

User Account=postgres
Password=seismo
PostgreSQL DataBase Server 8.2
DataBase Cluster
Superuser=superuser
passward=iisee

Installer
PostGIS(PostgreSQL)
Set Superuser
Set superuser of
PostgreSQL
DataBase Cluster
Account=user

On MicroSoft Windows
59

Set superuser name and its password of
the internal database cluster.
It is recommended to use a different
password than that of the account“postgres”.
Example: superuser name=superuser
password=iiseeThen, click on “Next>”.

60

30

Click on “OK” .

Click on “OK” .

61

Click on “OK” .

Click on “Finish” . Install is completed.
6231

5. Quantum GIS 0.9.1

63

Double click on“D:¥qgis_setup0.9.1.18_12_2007.exe”
Note: The installer of a newer version of
QGIS “QGIS-0.11.0-2-Setup.exe” is also
included in CD. The setting process isalmost the same as that for Ver. 0.9.1
although the newer one is improved andmore stable.

Select language.
Click on “OK”.

64

32

Click on “Next>”.

Read “License Agreement”.
Select “I accept … ”.
Click on “Next>”.

65

Click on “Next>”.

Click on “Next>”.
66

33

Click on “Install”.
Then, wait.

Don’t worry about it.
Click on “OK”.

67

Don’t worry about it.
Click on “OK”.

Click on “Finish”.

6834

Quantum GIS Logo appears first.
Then, Quantum GIS opens.
Close it using “File” and “Exit”.

69

6. ODBC setting
Using Data Sources (ODBC)You can use Data Sources Open Database Connectivity (ODBC) to access datafrom a variety of database management systems. For example, if you have aprogram that accesses data in a SQL database, Data Sources (ODBC) will let
you use the same program to access data in a Visual FoxPro database. To dothis, you must add software components called drivers to your system. DataSources (ODBC) helps you add and configure these drivers.

70

35

Open “Administrative Tools” in “Control Panel”.

Open “Data Sources(OBDC)” in “Administrative Tools”.
71“ODBC Data Source Administrator” opens.
Then, click on “Add”.

“Create New Data Source” opens.
Then, move down the scroll bar and select“PostgreSQL Unicode”.
Click on “Finish”.

72

36

“PostgreSQL Unicode ODBC Driver(psqlODBC) Setup” opens.
Data Source= PostgreSQL Unicode
Database= testcase (arbitrary name)Server= localhost (Fixed)
User Name= postgres (for PostgreSQL)
Description= any text string
SSL Mode=prefer (Fixed)
Port= 5432 (Fixed)
Password= iisee (password for “postgres”)

Then, click on “Save”.
Click on “OK” of “ODBC Data Source
Administrator”.

73

7. Expat 2.0.1

Expat is optional and required only if you want to use GPS plugins.
74

37

Double click on “D:¥expat-win32bin2.0.1.exe”

Click on “Next>”.

75

Click on “Next>”.

Click on “Finish”.

7638

8. Setting New User andDatabase for PostgreSQL 8.2.6

77

Setting PostGIS(PostgreSQL) as yokoi
User Account=postgres
Password=seismo
PostgreSQL DataBase Server 8.2
DataBase Cluster
Superuser=superuser
passward=iisee

Account=yokoi
Installer
PostGIS(PostgreSQL)

Set User
Set user ‘yokoi’using PgAdminIII
Account=user

User=yokoi
Password=yokoi

On MicroSoft Windows
78

39

3
4
Select “pgadmin III”.

2
179“pgAdmin III” is started.
Then, Double Click on “PostgreSQL Database Server….”

80

40

Type in the password of superuser ‘postgres’ that is ‘iisee’.
Then, click on ‘OK’.

81

Click the right button on ‘Login Role’.
Then, select ‘New Login Role’.

82

41‘New Login Role’ dialog opens.
Type in Role name (user name) ‘yokoi’,Password ‘yokoi’, Password(again) ‘yokoi’.
Check ‘Can create database objects’.
Then, click on ‘OK’.

1
2
3

45

83

User ‘yokoi’ is created.

8442

Setting PostGIS(PostgreSQL) as yokoi
User Account=postgres
Password=seismo
PostgreSQL DataBase Server 8.2DataBase Cluster
Superuser=superuser
passward=iisee

Account=yokoi
Installer
PostGIS(PostgreSQL)

Set New DataBase‘valley’ using
PgAdmin III
Account=user
User=yokoi
Password=yokoi

DataBase‘valley’On MicroSoft Windows
85

Click the right button on “Database” node in the left panel.
Then, select “New Database”.

8643‘New Database’ dialog opens.
Type in Name ‘valley’.
Select Owner ‘yokoi’.
Select ‘template_postgis’ to activate
PostGIS functionality.
Then, click on ‘OK’.

123487

Database ‘valley’ is created.
88

44

5
Click on the node of ‘Databases’, that of‘valley’, that of ‘Schemas’, and ‘Public’.
Then, click on the button ‘SQL’.
1

2
3
4

89

“pgAdmin III Query” dialog appears.
Type in “select postgis_full_version();” and push F5 key of keyboard.

90

45

Verify ‘OK’ at the left bottom.

91

Drug it toward left to see‘postgis_full_version
text

92

46

Close ‘pgAdmin III Query’ clicking on ‘File’ and ‘Exit’.
It is not necessary to save the change.

93

Click on the nodes of ‘valley’, ‘schemas’, ‘public’ and ‘table’.
Click the right button on ‘geometry_columns’ and select‘Properties’.
Then, ‘Table geometry_columns’ dialog opens.
Change Owner to ‘yokoi’ and click ‘OK’.

94

47

Click on the nodes of ‘valley’, ‘schemas’, ‘public’ and ‘table’.
Click the right button on ‘spatial_ref_sys’ and select ‘Properties’.
Then, ‘Table spatial_ref_sys’ dialog opens.
Change Owner to ‘yokoi’ and click ‘OK’.

95

Close ‘pgAdmin III’ clicking on ‘File’ and ‘Exit’.

96

48