B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto...
Transcript of B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto...
![Page 1: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/1.jpg)
BANCO DE DADOS GEOGRÁFICOS E WEBMAPPING- INSTALAÇÃO DO OMT-G DESIGN
Prof. Angelo Augusto Frozza, M.Sc.
http://about.me/TilFrozza
1
![Page 2: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/2.jpg)
DOWNLOAD DOS SOFTWARES
IDE Eclipse http://www.eclipse.org/
Eclipse Modeling Tools (opcional) http://www.eclipse.org/
OMT-G Design http://code.google.com/p/omt-g-design/
![Page 3: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/3.jpg)
INSTALAR A IDE ECLIPSE
Baixar o Eclipse e descompactar o arquivo http://www.eclipse.org Neste tutorial foi usada a versão
eclipse-standard-kepler-R-win32-x86_64.zip
Não precisa fazer uma instalação
Na primeira execução, definir o diretório do Workplace
![Page 4: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/4.jpg)
INSTALAR A IDE ECLIPSE
Baixar o Eclipse e descompactar o arquivo http://www.eclipse.org Neste tutorial foi usada a versão
eclipse-standard-kepler-R-win32-x86_64.zip
Não precisa fazer uma instalação
Na primeira execução, definir o diretório do Workplace
Entrar na opção (menu) Workbench
![Page 5: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/5.jpg)
INSTALAR A IDE ECLIPSE
Baixar o Eclipse e descompactar o arquivo http://www.eclipse.org Neste tutorial foi usada a versão
eclipse-standard-kepler-R-win32-x86_64.zip
Não precisa fazer uma instalação
Na primeira execução, definir o diretório do Workplace
Entrar na opção (menu) Workbench
![Page 6: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/6.jpg)
INSTALAR O OMT-G DESIGN
Baixar o arquivo compactado (.zip) do plug-in OMT-G Design http://code.google.com/p/omt-g-design Versão usada no tutorial: 0.1.2-rc5.zip
Na IDE Eclipse, entrar no menu Help -> Install New Software Escolher o botão Add...
![Page 7: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/7.jpg)
Baixar o arquivo compactado (.zip) do plug-in OMT-G Design http://code.google.com/p/omt-g-design Versão usada no tutorial: 0.1.2-rc5.zip
Na IDE Eclipse, entrar no menu Help -> Install New Software Escolher o botão Add... Pelo botão Archive..., selecionar o arquivo de instalação (.zip)
do OMT-G Design No campo Name, informar “OMT-G”
INSTALAR O OMT-G DESIGN
![Page 8: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/8.jpg)
Na IDE Eclipse... Desmarcar os checkbox “Group itens by category” e “Contact
all update...” Marcar o checkbox “OMT-G” Selecionar “Next >”
INSTALAR O OMT-G DESIGN
![Page 9: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/9.jpg)
INSTALAR O OMT-G DESIGN
Na IDE Eclipse... Caso aparecer uma mensagem informando que não foi
possível completar a instalação...
Selecione “Update my installation to be compatible with the items being installed”
Selecione “Next >”
![Page 10: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/10.jpg)
Na IDE Eclipse... Aceite a licença...
Selecione “Finish”
INSTALAR O OMT-G DESIGN
![Page 11: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/11.jpg)
Na IDE Eclipse... Confirme a mensagem que informa sobre conteúdo não
assinado...
INSTALAR O OMT-G DESIGN
![Page 12: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/12.jpg)
Na IDE Eclipse... Reinicie a IDE Eclipse...
INSTALAR O OMT-G DESIGN
![Page 13: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/13.jpg)
USANDO O OMT-G DESIGN
Selecione o menu File -> New -> Project
![Page 14: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/14.jpg)
USANDO O OMT-G DESIGN
No Wizard, selecione General -> Project
![Page 15: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/15.jpg)
USANDO O OMT-G DESIGN
No Wizard, selecione Informe o nome do projeto... Selecione “Finish”
![Page 16: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/16.jpg)
USANDO O OMT-G DESIGN
Com o botão direito do mouse sobre o nome do projeto, selecione New -> Other
![Page 17: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/17.jpg)
USANDO O OMT-G DESIGN
Escreva “omt” no campo de busca do Wizard Selecione “OMT-G Model” e “Next >”
![Page 18: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/18.jpg)
USANDO O OMT-G DESIGN
Escreva o nome do arquivo do Diagrama Selecione “Finish”
![Page 19: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/19.jpg)
USANDO O OMT-G DESIGN
Árvore do projeto
Área de desenho
Paleta
Atenção ao ícone “Pin open”
OBS.:Window -> Show View -> Other -
General -> Properties
![Page 20: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/20.jpg)
GERANDO SCRIPTS DDL PARA POSTGIS
Após criar um diagrama OMT-G, para gerar os scripts SQL/DDL para o PostgreSQL/PostGIS siga os próximos passos...
Escolha no menu File -> Export
![Page 21: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/21.jpg)
GERANDO SCRIPTS DDL PARA POSTGIS
Selecione OMT-G -> PostGIS Next >
![Page 22: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/22.jpg)
GERANDO SCRIPTS DDL PARA POSTGIS
Informe a pasta de destino e Finish Aguarde ....
![Page 23: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/23.jpg)
GERANDO SCRIPTS DDL PARA POSTGIS
Será criado um arquivo chamado postgis.sql
CREATE DATABASE new omt-g diagram template = template_postgis;
\C new omt-g diagram;
CREATE TABLE new class (
id SERIAL NOT NULL,
CONSTRAINT pk_id PRIMARY KEY (id) ) WITH ( OIDS=FALSE
);
SELECT AddGeometryColumn ( 'public' , 'new class' , 'new class_sd' , -1 , 'POLYGON',2);
...
![Page 24: B ANCO DE D ADOS G EOGRÁFICOS E W EB M APPING - I NSTALAÇÃO DO OMT-G D ESIGN Prof. Angelo Augusto Frozza, M.Sc. 1.](https://reader038.fdocuments.us/reader038/viewer/2022110117/552fc140497959413d8decb3/html5/thumbnails/24.jpg)
PROBLEMAS COM O OMT-G DESIGN
Este é um projeto em desenvolvimento...
Caso identifique problemas ou queira enviar sugestões, você pode fazer através do link
http://code.google.com/p/omt-g-design/issues/list
Agradecemos sua colaboração...