Download - PostgreSQL PostGIS Instalacao v1
![Page 1: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/1.jpg)
Lígia Silva (Investigadora no INESC TEC e Faculdade de Engenharia, Universidade do Porto)
PostgreSQL.PostGIS v 8.4
Guia de Instalação
Janeiro de 12
CONTEÚDO
POSTGRESQL.POSTGIS............................................................................................... 2
Como Instalar ......................................................................................................................... 2
Como Inicializar .................................................................................................................... 14
Referências .............................................................................................. 18
![Page 2: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/2.jpg)
PostgreSQL.PostGIS v8.4 - 2/ 18 - Guia de Instalação
POSTGRESQL.POSTGIS A versão aqui exemplificada é a versão PostgreSQL 8.4, com extensão PostGIS 1.5, e encontra-se instalada em C:\Program Files\PostgreSQL\8.4.
Como Instalar Este software encontra-se disponível para download em http://www.enterprisedb.com/products/pgdownload.do#windows, ou encontra-se também disponível em backup no D:\installers\postgresql\postgresql-8.4.5-1-
windows.exe.
Em seguida descrevem-se os passos que devem ser efectuados para a sua instalação:
- Abrir/correr o executável postgresql-8.4.5-1-windows.exe.
- Carregar “Next”.
![Page 3: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/3.jpg)
PostgreSQL.PostGIS v8.4 - 3/ 18 - Guia de Instalação
- Seleccionar a pasta de instalação (C:\Program Files\PostgreSQL\8.4).
- Carregar “Next”.
- Seleccionar a pasta onde será armazenada a informação (C:\Program
Files\PostgreSQL\8.4\data).
- Carregar “Next”.
![Page 4: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/4.jpg)
PostgreSQL.PostGIS v8.4 - 4/ 18 - Guia de Instalação
- Inserir a password escolhida para o postgres (User = postgres e Password = postgresql, por exemplo)
- Carregar “Next”.
- Escolher a porta onde estará activo o servidor de Base de Dados (default:
5432).
- Carregar “Next”.
![Page 5: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/5.jpg)
PostgreSQL.PostGIS v8.4 - 5/ 18 - Guia de Instalação
- Carregar “Next”.
- Carregar “Next”.
![Page 6: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/6.jpg)
PostgreSQL.PostGIS v8.4 - 6/ 18 - Guia de Instalação
- Esperar que instale.
- Carregar “Finish”.
![Page 7: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/7.jpg)
PostgreSQL.PostGIS v8.4 - 7/ 18 - Guia de Instalação
- Carregar “Next”.
Se aparecer o seguinte aviso:
- Significa que é necessário configurar o acesso ao proxy. Nesse caso, carregar no botão “Proxy servers”.
- Carregar “OK”.
- Carregar “Next” na janela anterior do Stack Builder.
![Page 8: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/8.jpg)
PostgreSQL.PostGIS v8.4 - 8/ 18 - Guia de Instalação
- Seleccionar as aplicações extra (extensões) que se pretende instalar, no caso a extensão espacial: PostGIS.
- Seleccionar a versão adequada da extensão espacial (PostGIS 1.5 for PostgreSQL
8.4 v1.5.2).
- Carregar “Next”.
![Page 9: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/9.jpg)
PostgreSQL.PostGIS v8.4 - 9/ 18 - Guia de Instalação
- Seleccionar o sítio de onde irão ser descarregados os extras a instalar.
- Seleccionar uma pasta temporária.
- Carregar “Next”.
![Page 10: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/10.jpg)
PostgreSQL.PostGIS v8.4 - 10/ 18 - Guia de Instalação
- Carregar “Next”.
- Carregar “I Agree”.
![Page 11: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/11.jpg)
PostgreSQL.PostGIS v8.4 - 11/ 18 - Guia de Instalação
- Carregar “Next”.
- Seleccionar o local onde irá ficar instalado o software (C:\Program
Files\PostgreSQL\8.4).
- Carregar “Next”.
![Page 12: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/12.jpg)
PostgreSQL.PostGIS v8.4 - 12/ 18 - Guia de Instalação
- Inserir a password escolhida.
- Carregar “Next”.
- Escolher nome da Base de Dados a criar (sigave-vard)
- Carregar “Install”.
![Page 13: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/13.jpg)
PostgreSQL.PostGIS v8.4 - 13/ 18 - Guia de Instalação
- Carregar “Close”.
![Page 14: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/14.jpg)
PostgreSQL.PostGIS v8.4 - 14/ 18 - Guia de Instalação
- Carregar “Finish”.
Para assegurar conexões externas a este SGBD deverá ser aberto o porto 5432 na firewall do windows do servidor onde está instalado o postgreSQL.
Como Inicializar - No menu Iniciar abrir a seguinte aplicação:
- Abrir o editor pgAdminIII (a versão que se encontra instalada na MAPS é a versão 1.10.0).
Verá o seguinte splash screen:
![Page 15: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/15.jpg)
PostgreSQL.PostGIS v8.4 - 15/ 18 - Guia de Instalação
E a seguinte interface:
- Fazer duplo clique no servidor PostgreSQL 8.4 (localhost:5432).
![Page 16: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/16.jpg)
PostgreSQL.PostGIS v8.4 - 16/ 18 - Guia de Instalação
- Inserir a password criada durante a instalação do postgres (password = postgresql).
- Carregar “OK”.
![Page 17: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/17.jpg)
PostgreSQL.PostGIS v8.4 - 17/ 18 - Guia de Instalação
- Fazer duplo clique na Base de Dados com o nome sigave-vard (base de dados criada durante a instalação de postgis).
A esta altura, existem apenas as tabelas da template espacial do postgis (geometry_columns e spatial_ref_sys).
![Page 18: PostgreSQL PostGIS Instalacao v1](https://reader031.vdocuments.net/reader031/viewer/2022012401/544cd60eb1af9fcd3b8b4b47/html5/thumbnails/18.jpg)
PostgreSQL.PostGIS v8.4 - 18/ 18 - Guia de Instalação
Referências
PostgreSQL.PostGIS
http://www.postgresql.org/docs/8.4/static/installation.html
http://www.postgresqlguide.com/