Upload
sgrrsc
View
234
Download
0
Embed Size (px)
8/10/2019 Postgis Qgis Inst
1/31
Laboratorio di Geomatica
Installing PostgreSQL/PostGIS andQGIS in Windows environment
Marco Negretti [email protected]
23/12/2011
8/10/2019 Postgis Qgis Inst
2/31
2Index
Installing QGIS
Installing PostgreSQL/PostGIS
Upload a shapefile in the DB
Add a vector DB layer in QGIS
8/10/2019 Postgis Qgis Inst
3/31
3Installing QGIS
Home page http//!!!"#gis"org/
Do!nload http//h$%"#gis"org/pro&ects/#$ant$m'gis/!i(i/Do!nload
Standalone InstallerQGIS')SGeo*+',"-".'01*%.'Set$p"e2e
do$%le clic( to start the installation
8/10/2019 Postgis Qgis Inst
4/31
4Installing QGIS
Start installation
Accept the term of licence agreement
Install QGIS if yo$ desire install also the demo data pac(ages
8/10/2019 Postgis Qgis Inst
5/31
5Installing QGIS
3o! QGIS is installed
8/10/2019 Postgis Qgis Inst
6/31
6Installing QGIS
Do$%le clic( on des(top icon to start QGIS
8/10/2019 Postgis Qgis Inst
7/31
7Installing PostgreSQL/PostGIS
Home page http//!!!"postgres#l"org/
Do!nload http//!!!"postgres#l"org/do!nload/!indo!s/
)ne clic( installer 4+in.1%it5 postgres#l'6","1','!indo!s"e2e
do$%le clic( to start the installation
8/10/2019 Postgis Qgis Inst
8/31
8/10/2019 Postgis Qgis Inst
9/31
9Installing PostgreSQL/PostGIS
At the end of installation la$nch thestack
builderto install the PostGIS template
8/10/2019 Postgis Qgis Inst
10/31
!Installing PostgreSQL/PostGIS
Select yo$r version of Postgres and event$ally
set the pro2y parameters connection
8/10/2019 Postgis Qgis Inst
11/31
Installing PostgreSQL/PostGIS
Select PostGIS...in Spatial Extensionmen$
9%egins the do!nload proced$re"""
8/10/2019 Postgis Qgis Inst
12/31
2Installing PostgreSQL/PostGIS
"""and then yo$ can start the installation
8/10/2019 Postgis Qgis Inst
13/31
3Installing PostgreSQL/PostGIS
Select PostGISand Create spatial database
8/10/2019 Postgis Qgis Inst
14/31
4Installing PostgreSQL/PostGIS
Insert the connection information $ser7
pass!ord and port4set d$ring PostgreSQL installation5
8/10/2019 Postgis Qgis Inst
15/31
5Installing PostgreSQL/PostGIS
+hen re#$est7 ena%le shp1pgs#l pl$gin
8/10/2019 Postgis Qgis Inst
16/31
6Installing PostgreSQL/PostGIS
Installation completed
8/10/2019 Postgis Qgis Inst
17/31
7Installing PostgreSQL/PostGIS
Start pgAdmin III
8/10/2019 Postgis Qgis Inst
18/31
8Installing PostgreSQL/PostGIS
:ight clic( to connect to the data%ase
8/10/2019 Postgis Qgis Inst
19/31
9"#load a s$a#e%ile in t$e &'
;reate yo$r spatial data%ase
right clic( to vie! the men$ set the data%ase name and the o!ner
8/10/2019 Postgis Qgis Inst
20/31
2!"#load a s$a#e%ile in t$e &'
Select as template template_postgis
8/10/2019 Postgis Qgis Inst
21/31
2"#load a s$a#e%ile in t$e &'
;onnect to yo$r ne! DB there are ta%les and f$nctions for spatial data
8/10/2019 Postgis Qgis Inst
22/31
22"#load a s$a#e%ile in t$e &'
Use the pl$gin to $pload data
Select theshapefile
8/10/2019 Postgis Qgis Inst
23/31
23"#load a s$a#e%ile in t$e &'
If the data are correctly $ploaded 4press
8/10/2019 Postgis Qgis Inst
24/31
24(dd a )ector &' la*er in QGIS
SelectAdd Vector layer
8/10/2019 Postgis Qgis Inst
25/31
25(dd a )ector &' la*er in QGIS
Select Databaseas so$rce and PostgreS!as
type >hen clic( on ne"to create a ne! connection
26
8/10/2019 Postgis Qgis Inst
26/31
26(dd a )ector &' la*er in QGIS
Insert the connection information
test the connection
27
8/10/2019 Postgis Qgis Inst
27/31
27(dd a )ector &' la*er in QGIS
3o!7 yo$ can open the connection
28
8/10/2019 Postgis Qgis Inst
28/31
28(dd a )ector &' la*er in QGIS
Select thecoordinatereferencesystem
29
8/10/2019 Postgis Qgis Inst
29/31
29(dd a )ector &' la*er in QGIS
If yo$ have more than one map7 choose the
one to add
3!
8/10/2019 Postgis Qgis Inst
30/31
3!(dd a )ector &' la*er in QGIS
"""and finally yo$ can vie! the map in QGIS
3
8/10/2019 Postgis Qgis Inst
31/31
3
QGIS+ ,7,3
PostgreSQL+ 9,,2 -32bit.
PostGIS+ ,5,3
http://creativecommonsorg/licenses/!"#nc#nd/30/
http://wwwli!reo$$iceorg/