Commit a112a114f41bcb9439d217cb689393d889c68574

Authored by Edmar Moretti
1 parent 8758633d

Complementação do módulo de cadastro de variáveis

admin/admin.db
No preview for this file type
admin/html/estat_conexao.html
... ... @@ -16,29 +16,31 @@ body {
16 16 </style>
17 17 <script type="text/javascript" src="../js/core.js"></script>
18 18 <script type="text/javascript" src="../js/estat_conexao.js"></script>
  19 +<link rel="stylesheet" type="text/css" href="admin.css">
  20 +
19 21 </head>
20   -<body class=" yui-skin-sam">
21   - <div style="margin: 20px">
22   - <div id=cabecalhoPrincipal style="width: 80%; text-align: left;">
23   - </div>
24   - <div style="width: 80%; text-align: center;">
25   - <h1>
26   - Metadados estat&iacute;sticos - cadastro de conex&otilde;es com banco de dados <img
27   - src="../imagens/04.png" style="cursor: pointer" id=botaoAjuda />
28   - </h1>
  22 +<body class=" yui-skin-sam fundoPonto">
  23 + <div class="bordaSuperior">&nbsp;</div>
  24 + <div class="mascaraPrincipal" id="divGeral">
  25 + <div id=cabecalhoPrincipal></div>
  26 + <h1>
  27 + Metadados estat&iacute;sticos - cadastro de conex&otilde;es com banco
  28 + de dados <img src="../imagens/04.png" style="cursor: pointer"
  29 + id=botaoAjuda />
  30 + </h1>
29 31  
30   - </div>
31 32 <div id="formulario" style="display: none">
32 33 <div id="ajuda" style="display: none">
33 34 <div class="hd">Ajuda</div>
34 35 <div class="bd" style="height: 144px; overflow: auto">
35   - <p>Este formul&aacute;rio permite editar a lista de conex&otilde;es que s&atilde;o mostradas nos formul&aacute;rios do sistema de metadados estat&iacute;sticos
  36 + <p>Este formul&aacute;rio permite editar a lista de
  37 + conex&otilde;es que s&atilde;o mostradas nos formul&aacute;rios do
  38 + sistema de metadados estat&iacute;sticos
36 39 </div>
37 40 <div class="ft"></div>
38 41 </div>
39   - <br>
40   - <input type=button id=adicionaNovaLinha value="Adicionar um novo registro"
41   - style="left: -5px;" />
  42 + <br> <input type=button id=adicionaNovaLinha
  43 + value="Adicionar um novo registro" style="left: -5px;" />
42 44 <p>
43 45 <br>
44 46 <div id="tabela" style="left: -5px;"></div>
... ... @@ -75,7 +77,9 @@ body {
75 77  
76 78 i3geo/admin/html/estat_conexao.html
77 79 */
78   -
  80 + if (screen.availWidth > 700) {
  81 + document.getElementById("divGeral").style.width = "700px";
  82 + }
79 83 //necessario para a ferramenta login e outras
80 84 i3GEO.configura = {
81 85 locaplic : "../.."
... ... @@ -89,6 +93,6 @@ body {
89 93 initEditor();
90 94 };
91 95 i3GEO.login.verificaOperacao("admin/html/menus",i3GEO.configura.locaplic, temp, "sessao");
92   - */
  96 + */
93 97 </script>
94 98 </body>
95 99 \ No newline at end of file
... ...
admin/html/estat_fonteinfo.html 0 → 100755
... ... @@ -0,0 +1,97 @@
  1 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2 +<html>
  3 +<head>
  4 +<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  5 +<title>Fonte</title>
  6 +<style type="text/css">
  7 +/*margin and padding on body element
  8 + can introduce errors in determining
  9 + element position and are not recommended;
  10 + we turn them off as a foundation for YUI
  11 + CSS treatments. */
  12 +body {
  13 + margin: 0;
  14 + padding: 0;
  15 +}
  16 +</style>
  17 +<script type="text/javascript" src="../js/core.js"></script>
  18 +<script type="text/javascript" src="../js/estat_fonteinfo.js"></script>
  19 +<link rel="stylesheet" type="text/css" href="admin.css">
  20 +</head>
  21 +<body class=" yui-skin-sam fundoPonto">
  22 + <center>
  23 + <div class="bordaSuperior">&nbsp;</div>
  24 + <div class="mascaraPrincipal" id="divGeral">
  25 + <div id=cabecalhoPrincipal></div>
  26 + <h1>
  27 + Metadados estat&iacute;sticos - Fonte <img src="../imagens/04.png"
  28 + style="cursor: pointer" id=botaoAjuda />
  29 + </h1>
  30 + <div id="formulario" style="display: none">
  31 + <div id="ajuda" style="display: none">
  32 + <div class="hd">Ajuda</div>
  33 + <div class="bd" style="height: 144px; overflow: auto">
  34 + <p>Este formul&aacute;rio permite editar a lista de fontes que
  35 + s&atilde;o mostradas nos formul&aacute;rios do sistema de
  36 + metadados estat&iacute;sticos
  37 + </div>
  38 + <div class="ft"></div>
  39 + </div>
  40 + <br> <input type=button id=adicionaNovaLinha
  41 + value="Adicionar um novo registro" style="left: -5px;" />
  42 + <p>
  43 + <br>
  44 + <div id="tabela" style="left: -5px;"></div>
  45 + </div>
  46 + </div>
  47 + </center>
  48 + <div id=logajax style="display: block"></div>
  49 + <script>
  50 + /*
  51 + Title: Editor da lista de fontes do sistema de metadados estat&iacute;sticos
  52 +
  53 + Licenca:
  54 +
  55 + GPL2
  56 +
  57 + i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet
  58 +
  59 + Direitos Autorais Reservados (c) 2006 Minist&eacute;rio do Meio Ambiente Brasil
  60 + Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br
  61 +
  62 + Este programa &eacute; software livre; voc&ecirc; pode redistribu&iacute;-lo
  63 + e/ou modific&aacute;-lo sob os termos da Licen&ccedil;a P&uacute;blica Geral
  64 + GNU conforme publicada pela Free Software Foundation;
  65 +
  66 + Este programa &eacute; distribu&iacute;do na expectativa de que seja &uacute;til,
  67 + por&eacute;m, SEM NENHUMA GARANTIA; nem mesmo a garantia impl&iacute;cita
  68 + de COMERCIABILIDADE OU ADEQUA&Ccedil;&Atilde;O A UMA FINALIDADE ESPEC&Iacute;FICA.
  69 + Consulte a Licen&ccedil;a P&uacute;blica Geral do GNU para mais detalhes.
  70 + Voc&ecirc; deve ter recebido uma cópia da Licen&ccedil;a P&uacute;blica Geral do
  71 + GNU junto com este programa; se n&atilde;o, escreva para a
  72 + Free Software Foundation, Inc., no endere&ccedil;o
  73 + 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA.
  74 +
  75 + Arquivo:
  76 +
  77 + i3geo/admin/html/estat_fonteinfo.html
  78 + */
  79 + if (screen.availWidth > 700) {
  80 + document.getElementById("divGeral").style.width = "700px";
  81 + }
  82 + //necessario para a ferramenta login e outras
  83 + i3GEO.configura = {
  84 + locaplic : "../.."
  85 + };
  86 + cabecalhoMetaestat("cabecalhoPrincipal", "fonteinfo");
  87 + document.getElementById("formulario").style.display = "block";
  88 + initEditor();
  89 + /*
  90 + temp = function() {
  91 + document.getElementById("formulario").style.display = "block";
  92 + initEditor();
  93 + };
  94 + i3GEO.login.verificaOperacao("admin/html/menus",i3GEO.configura.locaplic, temp, "sessao");
  95 + */
  96 + </script>
  97 +</body>
0 98 \ No newline at end of file
... ...
admin/html/estat_tipo_periodo.html
... ... @@ -16,29 +16,28 @@ body {
16 16 </style>
17 17 <script type="text/javascript" src="../js/core.js"></script>
18 18 <script type="text/javascript" src="../js/estat_tipo_periodo.js"></script>
  19 +<link rel="stylesheet" type="text/css" href="admin.css">
19 20 </head>
20 21 <body class=" yui-skin-sam">
21   - <div style="margin: 20px">
22   - <div id=cabecalhoPrincipal style="width: 80%; text-align: left;">
23   - </div>
24   - <div style="width: 80%; text-align: center;">
25   - <h1>
26   - Metadados estat&iacute;sticos - Unidades de medida <img
27   - src="../imagens/04.png" style="cursor: pointer" id=botaoAjuda />
28   - </h1>
29   -
30   - </div>
  22 + <div class="bordaSuperior">&nbsp;</div>
  23 + <div class="mascaraPrincipal" id="divGeral">
  24 + <div id=cabecalhoPrincipal></div>
  25 + <h1>
  26 + Metadados estat&iacute;sticos - Unidades de medida <img
  27 + src="../imagens/04.png" style="cursor: pointer" id=botaoAjuda />
  28 + </h1>
31 29 <div id="formulario" style="display: none">
32 30 <div id="ajuda" style="display: none">
33 31 <div class="hd">Ajuda</div>
34 32 <div class="bd" style="height: 144px; overflow: auto">
35   - <p>Este formul&aacute;rio permite editar a lista de per&iacute;odos de tempo que s&atilde;o mostradas nos formul&aacute;rios do sistema de metadados estat&iacute;sticos
  33 + <p>Este formul&aacute;rio permite editar a lista de
  34 + per&iacute;odos de tempo que s&atilde;o mostradas nos
  35 + formul&aacute;rios do sistema de metadados estat&iacute;sticos
36 36 </div>
37 37 <div class="ft"></div>
38 38 </div>
39   - <br>
40   - <input type=button id=adicionaNovaLinha value="Adicionar um novo registro"
41   - style="left: -5px;" />
  39 + <br> <input type=button id=adicionaNovaLinha
  40 + value="Adicionar um novo registro" style="left: -5px;" />
42 41 <p>
43 42 <br>
44 43 <div id="tabela" style="left: -5px;"></div>
... ... @@ -75,7 +74,9 @@ body {
75 74  
76 75 i3geo/admin/html/estat_tipo_periodo.html
77 76 */
78   -
  77 + if (screen.availWidth > 700) {
  78 + document.getElementById("divGeral").style.width = "700px";
  79 + }
79 80 //necessario para a ferramenta login e outras
80 81 i3GEO.configura = {
81 82 locaplic : "../.."
... ... @@ -89,6 +90,6 @@ body {
89 90 initEditor();
90 91 };
91 92 i3GEO.login.verificaOperacao("admin/html/menus",i3GEO.configura.locaplic, temp, "sessao");
92   - */
  93 + */
93 94 </script>
94 95 </body>
95 96 \ No newline at end of file
... ...
admin/html/estat_tipo_regiao.html
... ... @@ -16,34 +16,38 @@ body {
16 16 </style>
17 17 <script type="text/javascript" src="../js/core.js"></script>
18 18 <script type="text/javascript" src="../js/estat_tipo_regiao.js"></script>
  19 +<link rel="stylesheet" type="text/css" href="admin.css">
19 20 </head>
20   -<body class=" yui-skin-sam">
21   - <div style="margin: 20px">
22   - <div id=cabecalhoPrincipal style="width: 80%; text-align: left;">
23   - </div>
24   - <div style="width: 80%; text-align: center;">
  21 +<body class=" yui-skin-sam fundoPonto">
  22 + <center>
  23 + <div class="bordaSuperior">&nbsp;</div>
  24 + <div class="mascaraPrincipal" id="divGeral">
  25 + <div id=cabecalhoPrincipal></div>
25 26 <h1>
26   - Metadados estat&iacute;sticos - cadastro de tabelas de regi&otilde;es geogr&aacute;ficas <img
27   - src="../imagens/04.png" style="cursor: pointer" id=botaoAjuda />
  27 + Metadados estat&iacute;sticos - cadastro de tabelas de
  28 + regi&otilde;es geogr&aacute;ficas <img src="../imagens/04.png"
  29 + style="cursor: pointer" id=botaoAjuda />
28 30 </h1>
29 31  
30   - </div>
31   - <div id="formulario" style="display: none">
32   - <div id="ajuda" style="display: none">
33   - <div class="hd">Ajuda</div>
34   - <div class="bd" style="height: 144px; overflow: auto">
35   - <p>Este formul&aacute;rio permite editar a lista de conex&otilde;es que s&atilde;o mostradas nos formul&aacute;rios do sistema de metadados estat&iacute;sticos
  32 +
  33 + <div id="formulario" style="display: none">
  34 + <div id="ajuda" style="display: none">
  35 + <div class="hd">Ajuda</div>
  36 + <div class="bd" style="height: 144px; overflow: auto">
  37 + <p>Este formul&aacute;rio permite editar a lista de
  38 + conex&otilde;es que s&atilde;o mostradas nos formul&aacute;rios
  39 + do sistema de metadados estat&iacute;sticos
  40 + </div>
  41 + <div class="ft"></div>
36 42 </div>
37   - <div class="ft"></div>
  43 + <br> <input type=button id=adicionaNovaLinha
  44 + value="Adicionar um novo registro" style="left: -5px;" />
  45 + <p>
  46 + <br>
  47 + <div id="tabela" style="left: -5px;"></div>
38 48 </div>
39   - <br>
40   - <input type=button id=adicionaNovaLinha value="Adicionar um novo registro"
41   - style="left: -5px;" />
42   - <p>
43   - <br>
44   - <div id="tabela" style="left: -5px;"></div>
45 49 </div>
46   - </div>
  50 + </center>
47 51 <div id=logajax style="display: block"></div>
48 52 <script>
49 53 /*
... ... @@ -89,6 +93,6 @@ body {
89 93 initEditor();
90 94 };
91 95 i3GEO.login.verificaOperacao("admin/html/menus",i3GEO.configura.locaplic, temp, "sessao");
92   - */
  96 + */
93 97 </script>
94 98 </body>
95 99 \ No newline at end of file
... ...
admin/html/estat_unidade_medida.html
... ... @@ -16,34 +16,35 @@ body {
16 16 </style>
17 17 <script type="text/javascript" src="../js/core.js"></script>
18 18 <script type="text/javascript" src="../js/estat_unidade_medida.js"></script>
  19 +<link rel="stylesheet" type="text/css" href="admin.css">
19 20 </head>
20   -<body class=" yui-skin-sam">
21   - <div style="margin: 20px">
22   - <div id=cabecalhoPrincipal style="width: 80%; text-align: left;">
23   - </div>
24   - <div style="width: 80%; text-align: center;">
  21 +<body class=" yui-skin-sam fundoPonto">
  22 + <center>
  23 + <div class="bordaSuperior">&nbsp;</div>
  24 + <div class="mascaraPrincipal" id="divGeral">
  25 + <div id=cabecalhoPrincipal></div>
25 26 <h1>
26 27 Metadados estat&iacute;sticos - Unidades de medida <img
27 28 src="../imagens/04.png" style="cursor: pointer" id=botaoAjuda />
28 29 </h1>
29   -
30   - </div>
31   - <div id="formulario" style="display: none">
32   - <div id="ajuda" style="display: none">
33   - <div class="hd">Ajuda</div>
34   - <div class="bd" style="height: 144px; overflow: auto">
35   - <p>Este formul&aacute;rio permite editar a lista de unidades de medida que s&atilde;o mostradas nos formul&aacute;rios do sistema de metadados estat&iacute;sticos
  30 + <div id="formulario" style="display: none">
  31 + <div id="ajuda" style="display: none">
  32 + <div class="hd">Ajuda</div>
  33 + <div class="bd" style="height: 144px; overflow: auto">
  34 + <p>Este formul&aacute;rio permite editar a lista de unidades
  35 + de medida que s&atilde;o mostradas nos formul&aacute;rios do
  36 + sistema de metadados estat&iacute;sticos
  37 + </div>
  38 + <div class="ft"></div>
36 39 </div>
37   - <div class="ft"></div>
  40 + <br> <input type=button id=adicionaNovaLinha
  41 + value="Adicionar um novo registro" style="left: -5px;" />
  42 + <p>
  43 + <br>
  44 + <div id="tabela" style="left: -5px;"></div>
38 45 </div>
39   - <br>
40   - <input type=button id=adicionaNovaLinha value="Adicionar um novo registro"
41   - style="left: -5px;" />
42   - <p>
43   - <br>
44   - <div id="tabela" style="left: -5px;"></div>
45 46 </div>
46   - </div>
  47 + </center>
47 48 <div id=logajax style="display: block"></div>
48 49 <script>
49 50 /*
... ... @@ -75,7 +76,9 @@ body {
75 76  
76 77 i3geo/admin/html/estat_unidade_medida.html
77 78 */
78   -
  79 + if (screen.availWidth > 700) {
  80 + document.getElementById("divGeral").style.width = "700px";
  81 + }
79 82 //necessario para a ferramenta login e outras
80 83 i3GEO.configura = {
81 84 locaplic : "../.."
... ... @@ -89,6 +92,6 @@ body {
89 92 initEditor();
90 93 };
91 94 i3GEO.login.verificaOperacao("admin/html/menus",i3GEO.configura.locaplic, temp, "sessao");
92   - */
  95 + */
93 96 </script>
94 97 </body>
95 98 \ No newline at end of file
... ...
admin/index.html
... ... @@ -179,6 +179,14 @@
179 179 <td><div class=aplicar></div></td>
180 180 <td>Cadastro de tabelas com regi&otilde;es geogr&aacute;ficas</td>
181 181 </tr>
  182 + <tr onclick="abre('html/estat_links.html')">
  183 + <td><div class=aplicar></div></td>
  184 + <td>Cadastro de links</td>
  185 + </tr>
  186 + <tr onclick="abre('html/estat_fonteinfo.html')">
  187 + <td><div class=aplicar></div></td>
  188 + <td>Cadastro de fontes de informa&ccedil;&atilde;o</td>
  189 + </tr>
182 190 </table>
183 191 </div>
184 192 </fieldset>
... ...
admin/js/core.js
... ... @@ -73,9 +73,10 @@ function cabecalhoMetaestat(id,excluir){
73 73 {id:"principal",titulo:"In&iacute;cio",link:"../index.html"},
74 74 {id:"arvore",titulo:"&Aacute;rvore completa",link:"estat_variavel.html"},
75 75 {id:"unidade_medida",titulo:"Unidades de medida",link:"estat_unidade_medida.html"},
76   - {id:"periodo_tempo",titulo:"Per&iacute;odos de tempo",link:"estat_tipo_periodo.html"},
  76 + {id:"periodo_tempo",titulo:"Per&iacute;odos",link:"estat_tipo_periodo.html"},
77 77 {id:"conexao",titulo:"Conex&otilde;es",link:"estat_conexao.html"},
78 78 {id:"tipo_regiao",titulo:"Regi&otilde;es",link:"estat_tipo_regiao.html"},
  79 + {id:"fonteinfo",titulo:"Fonte",link:"estat_fonteinfo.html"},
79 80 {id:"login",titulo:"Login",js:"i3GEO.login.dialogo.abreLogin()"}
80 81 ];
81 82 n = botoes.length;
... ...
admin/js/estat_fonteinfo.js 0 → 100755
... ... @@ -0,0 +1,159 @@
  1 +function initEditor(){
  2 + YAHOO.namespace("admin.container");
  3 + core_ativaBotaoAdicionaLinha("../php/metaestat.php?funcao=alterarFonteinfo","adicionaNovaLinha","pegaDados");
  4 + pegaDados();
  5 +}
  6 +function pegaDados(){
  7 + core_carregando("ativa");
  8 + core_pegaDados("buscando dados...","../php/metaestat.php?funcao=listaFonteinfo","montaTabela");
  9 +}
  10 +function montaTabela(dados){
  11 + YAHOO.example.InlineCellEditing = new function() {
  12 + // Custom formatter for "address" column to preserve line breaks
  13 + var formatTexto = function(elCell, oRecord, oColumn, oData){
  14 + if(oData === ""){
  15 + oData = "<span style='color:gray' ></span>";
  16 + }
  17 + elCell.innerHTML = "<pre ><p style=cursor:pointer title='clique para editar'>" + oData + "</pre>";
  18 + },
  19 + formatExclui = function(elCell, oRecord, oColumn){
  20 + elCell.innerHTML = "<div class=excluir title='exclui' style='text-align:center' ></div>";
  21 + },
  22 + formatMais = function(elCell, oRecord, oColumn){
  23 + elCell.innerHTML = "<div class=editar style='text-align:center' ></div>";
  24 + },
  25 + myColumnDefs = [
  26 + {key:"excluir",label:"excluir",formatter:formatExclui},
  27 + {key:"mais",label:"editar",formatter:formatMais},
  28 + {label:"Id",resizeable:true,key:"id_fonteinfo", formatter:formatTexto,editor:new YAHOO.widget.TextboxCellEditor({disableBtns:true})},
  29 + {label:"T&iacute;tulo",resizeable:true,key:"titulo", formatter:formatTexto,editor:new YAHOO.widget.TextboxCellEditor({disableBtns:true})},
  30 + {label:"Link",resizeable:true,key:"link", formatter:formatTexto,editor:new YAHOO.widget.TextboxCellEditor({disableBtns:true})}
  31 + ];
  32 + myDataSource = new YAHOO.util.DataSource(dados);
  33 + myDataTable = new YAHOO.widget.DataTable("tabela", myColumnDefs, myDataSource);
  34 +
  35 + myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSARRAY;
  36 + myDataSource.responseSchema = {
  37 + fields: ["id_fonteinfo","titulo","link"]
  38 + };
  39 + myDataTable.subscribe(
  40 + 'cellClickEvent',
  41 + function(ev){
  42 + var record,$clicouId,$recordid,sUrl,callback,
  43 + target = YAHOO.util.Event.getTarget(ev),
  44 + column = this.getColumn(target);
  45 + if(YAHOO.admin.container.panelCK){
  46 + YAHOO.admin.container.panelCK.destroy();
  47 + YAHOO.admin.container.panelCK = null;
  48 + }
  49 + if (column.key == 'excluir'){
  50 + record = this.getRecord(target);
  51 + excluiLinha(record.getData('id_fonteinfo'),target);
  52 + }
  53 + if (column.key == 'mais'){
  54 + record = this.getRecord(target);
  55 + core_carregando("ativa");
  56 + core_carregando("buscando dados...");
  57 + $clicouId = record.getData('id_fonteinfo');
  58 + $recordid = record.getId();
  59 + sUrl = "../php/metaestat.php?funcao=listaFonteinfo&id_fonteinfo="+record.getData('id_fonteinfo');
  60 + callback = {
  61 + success:function(o){
  62 + try{
  63 + montaEditor(YAHOO.lang.JSON.parse(o.responseText),$clicouId,$recordid);
  64 + }
  65 + catch(e){core_handleFailure(e,o.responseText);}
  66 + },
  67 + failure:core_handleFailure,
  68 + argument: { foo:"foo", bar:"bar" }
  69 + };
  70 + core_makeRequest(sUrl,callback);
  71 + }
  72 + }
  73 + );
  74 + };
  75 + core_carregando("desativa");
  76 +}
  77 +function montaEditor(dados,id,recordid){
  78 + function on_editorCheckBoxChange(p_oEvent){
  79 + if(p_oEvent.newValue.get("value") == "OK"){
  80 + gravaDados(id,recordid);
  81 + }
  82 + YAHOO.admin.container.panelEditor2.destroy();
  83 + YAHOO.admin.container.panelEditor2 = null;
  84 + };
  85 + if(!$i("janela_editor2")){
  86 + var ins,editorBotoes,
  87 + novoel = document.createElement("div");
  88 +
  89 + novoel.id = "janela_editor2";
  90 + ins = '<div class="hd">Editor</div>';
  91 + ins += "<div class='bd' style='height:354px;overflow:auto'>";
  92 + ins += "<div id='okcancel_checkbox2'></div><div id='editor_bd2'></div>";
  93 + novoel.innerHTML = ins;
  94 + document.body.appendChild(novoel);
  95 + editorBotoes = new YAHOO.widget.ButtonGroup({id:"okcancel_checkbox_id2", name: "okcancel_checkbox_id2", container: "okcancel_checkbox2" });
  96 + editorBotoes.addButtons([
  97 + { label: "Salva", value: "OK", checked: false},
  98 + { label: "Cancela", value: "CANCEL", checked: false }
  99 + ]);
  100 + editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange);
  101 + YAHOO.admin.container.panelEditor2 = new YAHOO.widget.Panel("janela_editor2", { fixedcenter:true,close:false,width:"400px", height:"380px",overflow:"auto", visible:false,constraintoviewport:true } );
  102 + YAHOO.admin.container.panelEditor2.render();
  103 + }
  104 + YAHOO.admin.container.panelEditor2.show();
  105 + $i("editor_bd2").innerHTML = montaDiv(dados);
  106 + core_carregando("desativa");
  107 +}
  108 +function montaDiv(i){
  109 + var param = {
  110 + "linhas":[{
  111 + titulo:"T&iacute;tulo:",id:"Etitulo",size:"50",value:i.titulo,tipo:"text",div:""
  112 + },{
  113 + titulo:"Link:",id:"Elink",size:"50",value:i.link,tipo:"text",div:""
  114 + }]
  115 + },
  116 + ins = "";
  117 +
  118 + ins += core_geraLinhas(param);
  119 + return(ins);
  120 +}
  121 +function gravaDados(id,recordid){
  122 + var campos = new Array("titulo","link"),
  123 + par = "",
  124 + i = 0,
  125 + sUrl,callback;
  126 +
  127 + for (i=0;i<campos.length;i++){
  128 + par += "&"+campos[i]+"="+($i("E"+campos[i]).value);
  129 + }
  130 + par += "&id_fonteinfo="+id;
  131 + core_carregando("ativa");
  132 + core_carregando(" gravando o registro do id= "+id);
  133 + sUrl = "../php/metaestat.php?funcao=alterarFonteinfo"+par;
  134 + callback = {
  135 + success:function(o){
  136 + try {
  137 + if(YAHOO.lang.JSON.parse(o.responseText) == "erro") {
  138 + core_carregando("<span style=color:red >N&atilde;o foi poss&iacute;vel excluir. Verifique se n&atilde;o existem registros vinculados</span>");
  139 + setTimeout("core_carregando('desativa')",3000);
  140 + }
  141 + else{
  142 + var rec = myDataTable.getRecordSet().getRecord(recordid);
  143 + myDataTable.updateRow(rec,YAHOO.lang.JSON.parse(o.responseText));
  144 + core_carregando("desativa");
  145 + }
  146 + }
  147 + catch(e){core_handleFailure(e,o.responseText);}
  148 + },
  149 + failure:core_handleFailure,
  150 + argument: { foo:"foo", bar:"bar" }
  151 + };
  152 + core_makeRequest(sUrl,callback);
  153 +}
  154 +function excluiLinha(id,row){
  155 + var mensagem = " excluindo o registro do id= "+id,
  156 + sUrl = "../php/metaestat.php?funcao=excluirFonteinfo&id_fonteinfo="+id;
  157 + core_excluiLinha(sUrl,row,mensagem);
  158 +}
  159 +//YAHOO.util.Event.addListener(window, "load", initMenu);
0 160 \ No newline at end of file
... ...
admin/js/estat_variavel.js
... ... @@ -135,7 +135,7 @@ Mostra os nós de uma medida
135 135 */
136 136 function adicionaNosMedidas(no,dados,redesenha)
137 137 {
138   - var tempNode,tempNode1,tempNode2,i,conteudo,d,j;
  138 + var tempNode,tempNode1,tempNode2,tempNode3,tempNode4,tempNode5,i,conteudo,d,j;
139 139 function temaIconMode(){
140 140 var newVal = parseInt(this.value);
141 141 if (newVal != currentIconMode)
... ... @@ -160,7 +160,7 @@ function adicionaNosMedidas(no,dados,redesenha)
160 160 };
161 161 YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
162 162 };
163   - function loadNodeData1(node, fnLoadComplete){
  163 + function loadNodeDataClasses(node, fnLoadComplete){
164 164 var sUrl = "../php/metaestat.php?funcao=listaClassificacaoMedida&id_medida_variavel="+node.data.no_classificacao,
165 165 callback = {
166 166 success: function(oResponse){
... ... @@ -179,6 +179,44 @@ function adicionaNosMedidas(no,dados,redesenha)
179 179 };
180 180 YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
181 181 };
  182 + function loadNodeDataLinks(node, fnLoadComplete){
  183 + var sUrl = "../php/metaestat.php?funcao=listaLinkMedida&id_medida_variavel="+node.data.no_link,
  184 + callback = {
  185 + success: function(oResponse){
  186 + var dados = YAHOO.lang.JSON.parse(oResponse.responseText);
  187 + adicionaNosLink(node,dados,false);
  188 + oResponse.argument.fnLoadComplete();
  189 + },
  190 + failure: function(oResponse){
  191 + oResponse.argument.fnLoadComplete();
  192 + },
  193 + argument:{
  194 + "node": node,
  195 + "fnLoadComplete": fnLoadComplete
  196 + },
  197 + timeout: 25000
  198 + };
  199 + YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
  200 + };
  201 + function loadNodeDataFonteinfo(node, fnLoadComplete){
  202 + var sUrl = "../php/metaestat.php?funcao=listaFonteinfoMedida&id_medida_variavel="+node.data.no_fonteinfo,
  203 + callback = {
  204 + success: function(oResponse){
  205 + var dados = YAHOO.lang.JSON.parse(oResponse.responseText);
  206 + adicionaNosFonteinfo(node,dados,false);
  207 + oResponse.argument.fnLoadComplete();
  208 + },
  209 + failure: function(oResponse){
  210 + oResponse.argument.fnLoadComplete();
  211 + },
  212 + argument:{
  213 + "node": node,
  214 + "fnLoadComplete": fnLoadComplete
  215 + },
  216 + timeout: 25000
  217 + };
  218 + YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
  219 + };
182 220 if(!redesenha && !(tree.getNodeByProperty("etiqueta_adiciona_variavel",no.data.codigo_variavel))){
183 221 tempNode = new YAHOO.widget.HTMLNode(
184 222 {
... ... @@ -213,7 +251,17 @@ function adicionaNosMedidas(no,dados,redesenha)
213 251 d = {html:conteudo,no_classificacao:dados[i].id_medida_variavel};
214 252 tempNode3 = new YAHOO.widget.HTMLNode(d, tempNode1, false,true);
215 253 tempNode3.isLeaf = false;
216   - tempNode3.setDynamicLoad(loadNodeData1, 1);
  254 + tempNode3.setDynamicLoad(loadNodeDataClasses, 1);
  255 + conteudo = "&nbsp;Links";
  256 + d = {html:conteudo,no_link:dados[i].id_medida_variavel};
  257 + tempNode4 = new YAHOO.widget.HTMLNode(d, tempNode1, false,true);
  258 + tempNode4.isLeaf = false;
  259 + tempNode4.setDynamicLoad(loadNodeDataLinks, 1);
  260 + conteudo = "&nbsp;Fontes";
  261 + d = {html:conteudo,no_fonteinfo:dados[i].id_medida_variavel};
  262 + tempNode5 = new YAHOO.widget.HTMLNode(d, tempNode1, false,true);
  263 + tempNode5.isLeaf = false;
  264 + tempNode5.setDynamicLoad(loadNodeDataFonteinfo, 1);
217 265 }
218 266  
219 267 if(redesenha){tree.draw();}
... ... @@ -346,7 +394,77 @@ function adicionaNosClasses(no,dados,redesenha){
346 394 }
347 395 if(redesenha){tree.draw();}
348 396 }
  397 +/*
  398 +Function: adicionaNosLink
  399 +
  400 +Mostra os nós de links
  401 +*/
  402 +function adicionaNosLink(no,dados,redesenha){
  403 + var tempNode,i,j,conteudo,d;
  404 + function temaIconMode() {
  405 + var newVal = parseInt(this.value);
  406 + if (newVal != currentIconMode)
  407 + {currentIconMode = newVal;}
  408 + }
  409 + if(!redesenha) {
  410 + tempNode = new YAHOO.widget.HTMLNode(
  411 + {
  412 + html:"<span style=\"cursor:pointer;\" onclick=\"adicionarLinkMedida('"+no.data.no_link+"')\" ><img style=\"position:relative;top:2px\" src=\"../imagens/05.png\" /><i>Adicionar novo link</i></span>"
  413 + },
  414 + no,
  415 + false,
  416 + true
  417 + );
  418 + tempNode.isLeaf = true;
  419 + }
  420 + for (i=0, j=dados.length; i<j; i++) {
  421 + conteudo = "&nbsp;<img style=\"position:relative;cursor:pointer;top:0px\" onclick=\"excluir('linkMedida','"+dados[i].id_link+"')\" title=excluir width='10px' heigth='10px' src=\"../imagens/01.png\" />";
  422 + conteudo += "&nbsp;<img style=\"position:relative;cursor:pointer;top:2px\" onclick=\"editar('linkMedida','"+dados[i].id_link+"')\" title=editar src=\"../imagens/06.png\" /><b>";
  423 + if(dados[i].nome != "")
  424 + {conteudo += "&nbsp;<span><a href='"+dados[i].link+"' >"+dados[i].nome+"</a><span style=color:gray > - "+dados[i].link+" - id: "+dados[i].id_link+"</span></span>";}
  425 + else
  426 + {conteudo += "&nbsp;<span style=color:red >Edite para definir o novo link!!!</span>";}
  427 + d = {html:conteudo,id_link:dados[i].id_link,tipo:"link"};
  428 + tempNode = new YAHOO.widget.HTMLNode(d, no, false,true);
  429 + tempNode.isLeaf = true;
  430 + }
  431 + if(redesenha){tree.draw();}
  432 +}
  433 +/*
  434 +Function: adicionaNosFonteinfo
349 435  
  436 +Mostra os nós de fontes
  437 +*/
  438 +function adicionaNosFonteinfo(no,dados,redesenha){
  439 + var tempNode,i,j,conteudo,d;
  440 + function temaIconMode() {
  441 + var newVal = parseInt(this.value);
  442 + if (newVal != currentIconMode)
  443 + {currentIconMode = newVal;}
  444 + }
  445 + if(!redesenha) {
  446 + tempNode = new YAHOO.widget.HTMLNode(
  447 + {
  448 + html:"<span style=\"cursor:pointer;\" onclick=\"editar('fonteinfo','"+no.data.no_fonteinfo+"')\" ><img style=\"position:relative;top:2px\" src=\"../imagens/05.png\" /><i>Adicionar nova fonte</i></span>"
  449 + },
  450 + no,
  451 + false,
  452 + true
  453 + );
  454 + tempNode.isLeaf = true;
  455 + }
  456 + for (i=0, j=dados.length; i<j; i++) {
  457 + conteudo = "&nbsp;<img style=\"position:relative;cursor:pointer;top:0px\" onclick=\"excluir('fonteinfo','"+dados[i].id_fonteinfo+"')\" title=excluir width='10px' heigth='10px' src=\"../imagens/01.png\" />";
  458 + if(dados[i].titulo != "")
  459 + {conteudo += "&nbsp;<span><a href='"+dados[i].link+"' >"+dados[i].titulo+"</a><span style=color:gray > - "+dados[i].link+" - id: "+dados[i].id_fonteinfo+"</span></span>";}
  460 + else
  461 + {conteudo += "&nbsp;<span style=color:red >Edite para definir a nova fonte!!!</span>";}
  462 + d = {html:conteudo,id_medida_variavel_fonteinfo:no.data.no_fonteinfo,id_fonteinfo:dados[i].id_fonteinfo,tipo:"fonteinfo"};
  463 + tempNode = new YAHOO.widget.HTMLNode(d, no, false,true);
  464 + tempNode.isLeaf = true;
  465 + }
  466 + if(redesenha){tree.draw();}
  467 +}
350 468 function adicionaNosVariaveis(dados,redesenha){
351 469 var i,j,d,conteudo,
352 470 root = tree.getRoot();
... ... @@ -450,6 +568,7 @@ function montaDivClassificacaoMedida(i){
450 568 ins += "<br><br><br>";
451 569 $i("editor_bd").innerHTML = ins;
452 570 }
  571 +
453 572 function montaDivClasseClassificacao(i){
454 573 var ins = "",
455 574 param = {
... ... @@ -471,6 +590,25 @@ function montaDivClasseClassificacao(i){
471 590 ins += "<br><br><br>";
472 591 $i("editor_bd").innerHTML = ins;
473 592 }
  593 +function montaDivLinkMedida(i){
  594 + var ins = "",
  595 + param = {
  596 + "linhas":[
  597 + {titulo:"Nome:",id:"Enome",size:"50",value:i.nome,tipo:"text",div:""},
  598 + {titulo:"Link:",id:"Elink",size:"50",value:i.link,tipo:"text",div:""}
  599 + ]
  600 + };
  601 + ins += core_geraLinhas(param);
  602 + ins += "<br><br><br>";
  603 + $i("editor_bd").innerHTML = ins;
  604 +}
  605 +function montaDivFonteinfo(dados){
  606 + ins = "<br><b>Escolha a Fonte:</b><br><br>";
  607 + ins += "<select style='width:400px;' id='Eid_fonteinfo' >";
  608 + ins += core_comboObjeto(dadosAuxiliares.fonteinfo,"id_fonteinfo","titulo");
  609 + ins += "</select>";
  610 + $i("editor_bd").innerHTML = ins;
  611 +}
474 612 /*
475 613 Function: adicionarMedidaVariavel
476 614  
... ... @@ -513,6 +651,34 @@ function adicionarDimensaoMedida(id_medida_variavel){
513 651 };
514 652 core_makeRequest(sUrl,callback);
515 653 }
  654 +function adicionarLinkMedida(id_medida_variavel){
  655 + var no = tree.getNodeByProperty("no_link",id_medida_variavel),
  656 + sUrl = "../php/metaestat.php?funcao=alteraLinkMedida&id_medida_variavel="+id_medida_variavel,
  657 + callback = {
  658 + success: function(oResponse){
  659 + var dados = YAHOO.lang.JSON.parse(oResponse.responseText);
  660 + adicionaNosLink(no,[dados],true);
  661 + editar('linkMedida',dados.id_link);
  662 + },
  663 + failure:core_handleFailure,
  664 + argument: { foo:"foo", bar:"bar" }
  665 + };
  666 + core_makeRequest(sUrl,callback);
  667 +}
  668 +function adicionarFonteinfoMedida(id_medida_variavel,id_fonteinfo){
  669 + var no = tree.getNodeByProperty("no_fonteinfo",id_medida_variavel),
  670 + sUrl = "../php/metaestat.php?funcao=alteraFonteinfo&id_medida_variavel="+id_medida_variavel,
  671 + callback = {
  672 + success: function(oResponse){
  673 + var dados = YAHOO.lang.JSON.parse(oResponse.responseText);
  674 + adicionaNosLink(no,[dados],true);
  675 + editar('fonteinfo',dados.id_fonteinfo);
  676 + },
  677 + failure:core_handleFailure,
  678 + argument: { foo:"foo", bar:"bar" }
  679 + };
  680 + core_makeRequest(sUrl,callback);
  681 +}
516 682 /*
517 683 Function: adicionarClassificacaoMedida
518 684  
... ... @@ -568,31 +734,31 @@ function editar(tipo,id) {
568 734 dados = YAHOO.lang.JSON.parse(o.responseText);
569 735 core_montaEditor("gravaDados('variavel','"+id+"')","450px","200px","","Editor de vari&aacute;vel");
570 736 montaDivVariavel(dados);
571   - //document.getElementById("Eid_variavel").style.width = "200px";
572 737 }
573 738 if(tipo == "medidaVariavel"){
574 739 dados = YAHOO.lang.JSON.parse(o.responseText);
575 740 core_montaEditor("gravaDados('medidaVariavel','"+id+"')","450px","200px","","Editor de medidas");
576 741 montaDivMedidaVariavel(dados);
577   - //document.getElementById("Eid_variavel").style.width = "200px";
578 742 }
579 743 if(tipo == "dimensaoMedida"){
580 744 dados = YAHOO.lang.JSON.parse(o.responseText);
581 745 core_montaEditor("gravaDados('dimensaoMedida','"+id+"')","450px","200px","","Editor de dimens&oatilde;es");
582 746 montaDivDimensaoMedida(dados);
583   - //document.getElementById("Eid_variavel").style.width = "200px";
584 747 }
585 748 if(tipo == "classificacaoMedida"){
586 749 dados = YAHOO.lang.JSON.parse(o.responseText);
587 750 core_montaEditor("gravaDados('classificacaoMedida','"+id+"')","450px","200px","","Editor de classifica&ccedil;&atilde;o");
588 751 montaDivClassificacaoMedida(dados);
589   - //document.getElementById("Eid_variavel").style.width = "200px";
590 752 }
591 753 if(tipo == "classeClassificacao"){
592 754 dados = YAHOO.lang.JSON.parse(o.responseText);
593 755 core_montaEditor("gravaDados('classeClassificacao','"+id+"')","450px","200px","","Editor de classe");
594 756 montaDivClasseClassificacao(dados);
595   - //document.getElementById("Eid_variavel").style.width = "200px";
  757 + }
  758 + if(tipo == "linkMedida"){
  759 + dados = YAHOO.lang.JSON.parse(o.responseText);
  760 + core_montaEditor("gravaDados('linkMedida','"+id+"')","450px","200px","","Editor de links");
  761 + montaDivLinkMedida(dados);
596 762 }
597 763 core_carregando("desativa");
598 764 }
... ... @@ -616,6 +782,14 @@ function editar(tipo,id) {
616 782 if(tipo == "classeClassificacao"){
617 783 sUrl = "../php/metaestat.php?funcao=listaClasseClassificacao&id_classe="+id;
618 784 }
  785 + if(tipo == "linkMedida"){
  786 + sUrl = "../php/metaestat.php?funcao=listaLinkMedida&id_link="+id;
  787 + }
  788 + if(tipo == "fonteinfo"){
  789 + core_montaEditor("gravaDados('fonteinfo','"+id+"')","450px","200px","","Editor de fontes");
  790 + montaDivFonteinfo();
  791 + core_carregando("desativa");
  792 + }
619 793 if(sUrl){
620 794 core_makeRequest(sUrl,callback);
621 795 }
... ... @@ -638,6 +812,7 @@ function sql(tipo,id) {
638 812 core_montaEditor("","480px","300px","","SQL");
639 813 ins = "<p><b>Select simples:</b> "+dados.sql;
640 814 ins += "<p><b>Mapserver:</b> "+dados.sqlmapserver;
  815 + ins += "<p><b>Última URL:</b><div id='ultimaUrl'></div> ";
641 816 ins += "<p><b>Colunas:</b> "+dados.colunas;
642 817 ins +="<p><input style='position:relative;top:2px' type='checkbox' id='incluirtodascolunas' />Incluir todas as colunas no resultado";
643 818 ins +="<p>Filtro opcional (exemplo: valor = 1)<br>";
... ... @@ -660,54 +835,68 @@ function sql(tipo,id) {
660 835 $i("editor_bd").innerHTML = ins;
661 836 new YAHOO.widget.Button("sqljson");
662 837 document.getElementById("sqljson-button").onclick = function(){
663   - var colunas = 0;
  838 + var u,colunas = 0;
664 839 if($i("incluirtodascolunas").checked === true){
665 840 colunas = 1;
666 841 }
667   - window.open('../php/metaestat.php?funcao=dadosMedidaVariavel&formato=json&id_medida_variavel='+id+"&filtro="+$i("filtrosql").value+"&todasascolunas="+colunas+"&agruparpor="+$i("agruparsql").value);
  842 + u = i3GEO.configura.locaplic+'/admin/php/metaestat.php?funcao=dadosMedidaVariavel&formato=json&id_medida_variavel='+id+"&filtro="+$i("filtrosql").value+"&todasascolunas="+colunas+"&agruparpor="+$i("agruparsql").value;
  843 + $i("ultimaUrl").innerHTML = u;
  844 + window.open(u);
668 845 };
669 846 new YAHOO.widget.Button("sumarioestat");
670 847 $i("sumarioestat-button").onclick = function(){
671   - window.open('../php/metaestat.php?funcao=sumarioMedidaVariavel&formato=json&id_medida_variavel='+id+"&agruparpor="+$i("agruparsql").value+"&filtro="+$i("filtrosql").value);
  848 + var u = i3GEO.configura.locaplic+'/admin/php/metaestat.php?funcao=sumarioMedidaVariavel&formato=json&id_medida_variavel='+id+"&agruparpor="+$i("agruparsql").value+"&filtro="+$i("filtrosql").value;
  849 + $i("ultimaUrl").innerHTML = u;
  850 + window.open(u);
672 851 };
673 852 new YAHOO.widget.Button("mapfileestat");
674 853 $i("mapfileestat-button").onclick = function(){
675   - var colunas = 0;
  854 + var u,colunas = 0;
676 855 if($i("incluirtodascolunas").checked === true){
677 856 colunas = 1;
678 857 }
679   - window.open('../php/metaestat.php?funcao=mapfileMedidaVariavel&formato=json&id_medida_variavel='+id+"&filtro="+$i("filtrosql").value+"&todasascolunas="+colunas+"&tipolayer="+$i("tipolayer").value+"&id_classificacao="+$i("classificacao").value+"&agruparpor="+$i("agruparsql").value);
  858 + u = i3GEO.configura.locaplic+'/admin/php/metaestat.php?funcao=mapfileMedidaVariavel&formato=json&id_medida_variavel='+id+"&filtro="+$i("filtrosql").value+"&todasascolunas="+colunas+"&tipolayer="+$i("tipolayer").value+"&id_classificacao="+$i("classificacao").value+"&agruparpor="+$i("agruparsql").value;
  859 + $i("ultimaUrl").innerHTML = u;
  860 + window.open(u);
680 861 };
681 862 new YAHOO.widget.Button("kmzestat");
682 863 $i("kmzestat-button").onclick = function(){
683   - var colunas = 0;
  864 + var u,colunas = 0;
684 865 if($i("incluirtodascolunas").checked === true){
685 866 colunas = 1;
686 867 }
687   - window.open('../php/metaestat.php?funcao=kmlmedidavariavel&id_medida_variavel='+id+"&filtro="+$i("filtrosql").value+"&todasascolunas="+colunas+"&tipolayer="+$i("tipolayer").value+"&id_classificacao="+$i("classificacao").value+"&agruparpor="+$i("agruparsql").value+"&formato=kmz");
  868 + u = i3GEO.configura.locaplic+'/admin/php/metaestat.php?funcao=kmlmedidavariavel&id_medida_variavel='+id+"&filtro="+$i("filtrosql").value+"&todasascolunas="+colunas+"&tipolayer="+$i("tipolayer").value+"&id_classificacao="+$i("classificacao").value+"&agruparpor="+$i("agruparsql").value+"&formato=kmz";
  869 + $i("ultimaUrl").innerHTML = u;
  870 + window.open(u);
688 871 };
689 872 new YAHOO.widget.Button("kmlestat");
690 873 $i("kmlestat-button").onclick = function(){
691   - var colunas = 0;
  874 + var u,colunas = 0;
692 875 if($i("incluirtodascolunas").checked === true){
693 876 colunas = 1;
694 877 }
695   - window.open('../php/metaestat.php?funcao=kmlmedidavariavel&id_medida_variavel='+id+"&filtro="+$i("filtrosql").value+"&todasascolunas="+colunas+"&tipolayer="+$i("tipolayer").value+"&id_classificacao="+$i("classificacao").value+"&agruparpor="+$i("agruparsql").value+"&formato=kml");
  878 + u = i3GEO.configura.locaplic+'/admin/php/metaestat.php?funcao=kmlmedidavariavel&id_medida_variavel='+id+"&filtro="+$i("filtrosql").value+"&todasascolunas="+colunas+"&tipolayer="+$i("tipolayer").value+"&id_classificacao="+$i("classificacao").value+"&agruparpor="+$i("agruparsql").value+"&formato=kml";
  879 + $i("ultimaUrl").innerHTML = u;
  880 + window.open(u);
696 881 };
697 882 new YAHOO.widget.Button("kml3destat");
698 883 $i("kml3destat-button").onclick = function(){
699   - var colunas = 0;
  884 + var u,colunas = 0;
700 885 if($i("incluirtodascolunas").checked === true){
701 886 colunas = 1;
702 887 }
703   - window.open('../php/metaestat.php?funcao=kmlmedidavariavel&id_medida_variavel='+id+"&filtro="+$i("filtrosql").value+"&todasascolunas="+colunas+"&tipolayer="+$i("tipolayer").value+"&id_classificacao="+$i("classificacao").value+"&agruparpor="+$i("agruparsql").value+"&formato=kml3d");
  888 + u = i3GEO.configura.locaplic+'/admin/php/metaestat.php?funcao=kmlmedidavariavel&id_medida_variavel='+id+"&filtro="+$i("filtrosql").value+"&todasascolunas="+colunas+"&tipolayer="+$i("tipolayer").value+"&id_classificacao="+$i("classificacao").value+"&agruparpor="+$i("agruparsql").value+"&formato=kml3d";
  889 + $i("ultimaUrl").innerHTML = u;
  890 + window.open(u);
704 891 };
705 892 new YAHOO.widget.Button("i3geoestat");
706 893 $i("i3geoestat-button").onclick = function(){
707   - var sUrl,callback = {
  894 + var u,sUrl,callback = {
708 895 success: function(oResponse){
709 896 var dados = YAHOO.lang.JSON.parse(oResponse.responseText);
710   - window.open("../../ms_criamapa.php?temasa="+dados.mapfile+"&layers="+dados.layer);
  897 + u = i3GEO.configura.locaplic+"/ms_criamapa.php?temasa="+dados.mapfile+"&layers="+dados.layer;
  898 + $i("ultimaUrl").innerHTML = u;
  899 + window.open(u);
711 900 core_carregando("desativa");
712 901 },
713 902 failure:core_handleFailure,
... ... @@ -717,7 +906,7 @@ function sql(tipo,id) {
717 906 if($i("incluirtodascolunas").checked === true){
718 907 colunas = 1;
719 908 }
720   - sUrl = '../php/metaestat.php?funcao=mapfileMedidaVariavel&formato=json&id_medida_variavel='+id+"&filtro="+$i("filtrosql").value+"&todasascolunas="+colunas+"&tipolayer="+$i("tipolayer").value+"&id_classificacao="+$i("classificacao").value+"&agruparpor="+$i("agruparsql").value;
  909 + sUrl = i3GEO.configura.locaplic+'/admin/php/metaestat.php?funcao=mapfileMedidaVariavel&formato=json&id_medida_variavel='+id+"&filtro="+$i("filtrosql").value+"&todasascolunas="+colunas+"&tipolayer="+$i("tipolayer").value+"&id_classificacao="+$i("classificacao").value+"&agruparpor="+$i("agruparsql").value;
721 910 core_carregando("ativa");
722 911 core_makeRequest(sUrl,callback);
723 912 };
... ... @@ -847,6 +1036,14 @@ function excluir(tipo,id){
847 1036 no = tree.getNodeByProperty("id_classe",id);
848 1037 sUrl = "../php/metaestat.php?funcao=excluirClasseClassificacao&id_classe="+id;
849 1038 }
  1039 + if(tipo == "linkMedida") {
  1040 + no = tree.getNodeByProperty("id_link",id);
  1041 + sUrl = "../php/metaestat.php?funcao=excluirLinkMedida&id_link="+id;
  1042 + }
  1043 + if(tipo == "fonteinfo") {
  1044 + no = tree.getNodeByProperty("id_fonteinfo",id);
  1045 + sUrl = "../php/metaestat.php?funcao=excluirFonteinfoMedida&id_fonteinfo="+id+"&id_medida_variavel="+no.data.id_medida_variavel_fonteinfo;
  1046 + }
850 1047 if(sUrl)
851 1048 {core_excluiNoTree(sUrl,no,mensagem);}
852 1049 }
... ... @@ -890,7 +1087,16 @@ function gravaDados(tipo,id){
890 1087 par = "&id_classe="+id;
891 1088 prog = "../php/metaestat.php?funcao=alteraClasseClassificacao";
892 1089 }
893   -
  1090 + if(tipo == "linkMedida"){
  1091 + campos = new Array("nome","link");
  1092 + par = "&id_link="+id;
  1093 + prog = "../php/metaestat.php?funcao=alteraLinkMedida";
  1094 + }
  1095 + if(tipo == "fonteinfo"){
  1096 + campos = new Array("id_fonteinfo");
  1097 + par = "&id_medida_variavel="+id;
  1098 + prog = "../php/metaestat.php?funcao=adicionaFonteinfoMedida";
  1099 + }
894 1100 for (i=0;i<campos.length;i++)
895 1101 {par += "&"+campos[i]+"="+($i("E"+campos[i]).value);}
896 1102  
... ... @@ -933,6 +1139,19 @@ function gravaDados(tipo,id){
933 1139 no.getContentEl().getElementsByTagName("span")[0].style.color = "";
934 1140 no.html = no.getContentEl().innerHTML;
935 1141 }
  1142 + if(tipo == "linkMedida"){
  1143 + no = tree.getNodeByProperty("id_link",id);
  1144 + no.getContentEl().getElementsByTagName("span")[0].innerHTML = "<a href='"+document.getElementById("Elink").value+"' >"+document.getElementById("Enome").value+"</a><span style=color:gray > - "+document.getElementById("Elink").value+" - id: "+id+"</span>";
  1145 + no.getContentEl().getElementsByTagName("span")[0].style.color = "";
  1146 + no.html = no.getContentEl().innerHTML;
  1147 + }
  1148 + if(tipo == "fonteinfo"){
  1149 + no = tree.getNodeByProperty("no_fonteinfo",id);
  1150 + adicionaNosFonteinfo(no,[YAHOO.lang.JSON.parse(o.responseText)],true);
  1151 + //no.getContentEl().getElementsByTagName("span")[0].innerHTML = "<a href='"+document.getElementById("Elink").value+"' >"+document.getElementById("Etitulo").value+"</a><span style=color:gray > - "+document.getElementById("Elink").value+" - id: "+id+"</span>";
  1152 + //no.getContentEl().getElementsByTagName("span")[0].style.color = "";
  1153 + //no.html = no.getContentEl().innerHTML;
  1154 + }
936 1155 core_carregando("desativa");
937 1156 }
938 1157 YAHOO.admin.container.panelEditor.destroy();
... ...
admin/php/admin.php
... ... @@ -243,6 +243,12 @@ function verificaFilhos()
243 243 if(count($r) > 0)
244 244 $res = true;
245 245 }
  246 + if($tabela == "i3geoestat_fonteinfo")
  247 + {
  248 + $r = pegaDados("select * from ".$esquemaadmin."i3geoestat_fonteinfo_medida where id_fonteinfo=$id");
  249 + if(count($r) > 0)
  250 + $res = true;
  251 + }
246 252 if($tabela == "i3geoestat_variavel")
247 253 {
248 254 $r = pegaDados("select * from ".$esquemaadmin."i3geoestat_medida_variavel where codigo_variavel=$id");
... ...
admin/php/classe_metaestat.php
... ... @@ -192,6 +192,16 @@ class Metaestat{
192 192 return "Error!: " . $e->getMessage();
193 193 }
194 194 }
  195 + function excluirFonteinfoMedida($id_medida_variavel,$id_fonteinfo)
  196 + {
  197 + try {
  198 + $this->dbhw->query("DELETE from ".$this->esquemaadmin."i3geoestat_fonteinfo_medida WHERE id_medida_variavel = $id_medida_variavel and id_fonteinfo = $id_fonteinfo");
  199 + return "ok";
  200 + }
  201 + catch (PDOException $e) {
  202 + return "Error!: " . $e->getMessage();
  203 + }
  204 + }
195 205 /*
196 206 Function: sqlMedidaVariavel
197 207  
... ... @@ -509,6 +519,67 @@ class Metaestat{
509 519 }
510 520 }
511 521 /*
  522 + Function: alteraLinkMedida
  523 +
  524 + Altera um link
  525 +
  526 + */
  527 + function alteraLinkMedida($id_medida_variavel,$id_link="",$nome,$link){
  528 + try {
  529 + if($id_link != ""){
  530 + if($this->convUTF){
  531 + $nome = utf8_encode($nome);
  532 + }
  533 + $this->dbhw->query("UPDATE ".$this->esquemaadmin."i3geoestat_medida_variavel_link SET nome='$nome',link='$link' WHERE id_link = $id_link");
  534 + $retorna = $id_link;
  535 + }
  536 + else{
  537 + $retorna = $this->insertId("i3geoestat_medida_variavel_link","link","id_link");
  538 + if($retorna){
  539 + $this->dbhw->query("UPDATE ".$this->esquemaadmin."i3geoestat_medida_variavel_link SET id_medida_variavel = $id_medida_variavel WHERE id_link = $retorna");
  540 + }
  541 + }
  542 + return $retorna;
  543 + }
  544 + catch (PDOException $e) {
  545 + return "Error!: " . $e->getMessage();
  546 + }
  547 + }
  548 + /*
  549 + Function: alteraFonteinfo
  550 +
  551 + Altera uma fonte
  552 +
  553 + */
  554 + function alteraFonteinfo($id_fonteinfo="",$titulo,$link){
  555 + try {
  556 + if($id_fonteinfo != ""){
  557 + if($this->convUTF){
  558 + $titulo = utf8_encode($titulo);
  559 + }
  560 + $this->dbhw->query("UPDATE ".$this->esquemaadmin."i3geoestat_fonteinfo SET titulo='$titulo',link='$link' WHERE id_fonteinfo = $id_fonteinfo");
  561 + $retorna = $id_fonteinfo;
  562 + }
  563 + else{
  564 + $retorna = $this->insertId("i3geoestat_fonteinfo","link","id_fonteinfo");
  565 + }
  566 + return $retorna;
  567 + }
  568 + catch (PDOException $e) {
  569 + return "Error!: " . $e->getMessage();
  570 + }
  571 + }
  572 + /*
  573 + Function: adicinaFonteinfoMedida
  574 +
  575 + Adiciona um fonte a uma medida
  576 +
  577 + */
  578 + function adicinaFonteinfoMedida($id_medida_variavel,$id_fonteinfo){
  579 + //echo "INSERT INTO ".$this->esquemaadmin."i3geoestat_fonteinfo_medida (id_medida_variavel,id_fonteinfo) VALUES ('$id_medida_variavel','$id_fonteinfo')";exit;
  580 + $this->dbhw->query("INSERT INTO ".$this->esquemaadmin."i3geoestat_fonteinfo_medida (id_medida_variavel,id_fonteinfo) VALUES ('$id_medida_variavel','$id_fonteinfo')");
  581 + }
  582 + /*
512 583 Function: alteraUnidadeMedida
513 584  
514 585 Altera uma medida de uma variavel ou cria uma nova
... ... @@ -699,6 +770,35 @@ class Metaestat{
699 770 return $this->execSQL($sql,$codigo_unidade_medida);
700 771 }
701 772 /*
  773 + Function: listaFonteinfo
  774 +
  775 + Lista as fontes cadastradas ou uma unica unidade
  776 +
  777 + */
  778 + function listaFonteinfo($id_fonteinfo=""){
  779 + $sql = "select * from ".$this->esquemaadmin."i3geoestat_fonteinfo ";
  780 + if($id_fonteinfo != ""){
  781 + $sql .= "WHERE id_fonteinfo = $id_fonteinfo ";
  782 + }
  783 + $sql .= "ORDER BY titulo";
  784 + return $this->execSQL($sql,$id_fonteinfo);
  785 + }
  786 + /*
  787 + Function: listaFonteinfoMedida
  788 +
  789 + Lista as fontes cadastradas ou uma unica unidade
  790 +
  791 + */
  792 + function listaFonteinfoMedida($id_medida_variavel){
  793 + $sql = "SELECT i3geoestat_fonteinfo.* ";
  794 + $sql .= "FROM ".$this->esquemaadmin."i3geoestat_fonteinfo ";
  795 + $sql .= "INNER JOIN ".$this->esquemaadmin."i3geoestat_fonteinfo_medida ";
  796 + $sql .= "ON i3geoestat_fonteinfo.id_fonteinfo = i3geoestat_fonteinfo_medida.id_fonteinfo ";
  797 + $sql .= "WHERE i3geoestat_fonteinfo_medida.id_medida_variavel = $id_medida_variavel ";
  798 + $sql .= "ORDER BY titulo";
  799 + return $this->execSQL($sql,$id_fonteinfo);
  800 + }
  801 + /*
702 802 Function: listaVariavel
703 803  
704 804 Lista as variaveis cadastradas ou uma unica variavel
... ... @@ -716,7 +816,7 @@ class Metaestat{
716 816 return $this->execSQL($sql,$codigo_variavel);
717 817 }
718 818 /*
719   - Function: listaClassificacaoMedida
  819 + Function: listaClassificacaoMedida
720 820  
721 821 Lista as classificacoes de uma medida de uma variavel
722 822  
... ... @@ -734,6 +834,24 @@ class Metaestat{
734 834 return $this->execSQL($sql,$id_classificacao);
735 835 }
736 836 /*
  837 + Function: listaLinkMedida
  838 +
  839 + Lista os links de uma medida de uma variavel
  840 +
  841 + Parametros:
  842 +
  843 + $id_medida_variavel
  844 + */
  845 + function listaLinkMedida($id_medida_variavel,$id_link=""){
  846 + if(!empty($id_medida_variavel)){
  847 + $sql = "SELECT * from ".$this->esquemaadmin."i3geoestat_medida_variavel_link WHERE id_medida_variavel = $id_medida_variavel";
  848 + }
  849 + if(!empty($id_link)){
  850 + $sql = "SELECT * from ".$this->esquemaadmin."i3geoestat_medida_variavel_link WHERE id_link = $id_link";
  851 + }
  852 + return $this->execSQL($sql,$id_link);
  853 + }
  854 + /*
737 855 Function: listaClasseClassificacao
738 856  
739 857 Lista as classes de uma classificacao
... ...
admin/php/metaestat.php
... ... @@ -104,6 +104,11 @@ switch (strtoupper($funcao))
104 104 retornaJSON($m->listaClassificacaoMedida($id_medida_variavel,$id_classificacao));
105 105 exit;
106 106 break;
  107 + case "LISTALINKMEDIDA":
  108 + $m = new Metaestat();
  109 + retornaJSON($m->listaLinkMedida($id_medida_variavel,$id_link));
  110 + exit;
  111 + break;
107 112 /*
108 113 Valor: LISTACLASSECLASSIFICACAO
109 114  
... ... @@ -160,6 +165,16 @@ switch (strtoupper($funcao))
160 165 retornaJSON($m->listaUnidadeMedida($codigo_unidade_medida));
161 166 exit;
162 167 break;
  168 + case "LISTAFONTEINFO":
  169 + $m = new Metaestat();
  170 + retornaJSON($m->listaFonteinfo($id_fonteinfo));
  171 + exit;
  172 + break;
  173 + case "LISTAFONTEINFOMEDIDA":
  174 + $m = new Metaestat();
  175 + retornaJSON($m->listaFonteinfoMedida($id_medida_variavel));
  176 + exit;
  177 + break;
163 178 /*
164 179 Valor: LISTATIPOPERIODO
165 180  
... ... @@ -288,6 +303,34 @@ switch (strtoupper($funcao))
288 303 retornaJSON($m->listaClasseClassificacao($id_classificacao,$id_classe));
289 304 exit;
290 305 break;
  306 + case "ALTERALINKMEDIDA":
  307 + $m = new Metaestat();
  308 + if(empty($id_link)){
  309 + $id_link = $m->alteraLinkMedida($id_medida_variavel);
  310 + }
  311 + else{
  312 + $m->alteraLinkMedida("",$id_link,$nome,$link);
  313 + }
  314 + retornaJSON($m->listaLinkMedida($id_medida_variavel,$id_link));
  315 + exit;
  316 + break;
  317 + case "ALTERARFONTEINFO":
  318 + $m = new Metaestat();
  319 + if(empty($id_fonteinfo)){
  320 + $id_fonteinfo = $m->alteraFonteinfo();
  321 + }
  322 + else{
  323 + $m->alteraFonteinfo($id_fonteinfo,$titulo,$link);
  324 + }
  325 + retornaJSON($m->listaFonteinfo($id_fonteinfo));
  326 + exit;
  327 + break;
  328 + case "ADICIONAFONTEINFOMEDIDA":
  329 + $m = new Metaestat();
  330 + $m->adicinaFonteinfoMedida($id_medida_variavel,$id_fonteinfo);
  331 + retornaJSON($m->listaFonteInfo($id_fonteinfo));
  332 + exit;
  333 + break;
291 334 /*
292 335 Valor: ALTERARUNIDADEMEDIDA
293 336  
... ... @@ -440,8 +483,26 @@ switch (strtoupper($funcao))
440 483 retornaJSON("erro");
441 484 exit;
442 485 break;
  486 + case "EXCLUIRFONTEINFO":
  487 + $tabela = "i3geoestat_fonteinfo";
  488 + $id = $id_fonteinfo;
  489 + $f = verificaFilhos();
  490 +
  491 + if(!$f){
  492 + $m = new Metaestat();
  493 + retornaJSON($m->excluirRegistro("i3geoestat_fonteinfo","id_fonteinfo",$id));
  494 + }
  495 + else
  496 + retornaJSON("erro");
  497 + exit;
  498 + break;
  499 + case "EXCLUIRFONTEINFOMEDIDA":
  500 + $m = new Metaestat();
  501 + retornaJSON($m->excluirFonteinfoMedida($id_medida_variavel,$id_fonteinfo));
  502 + exit;
  503 + break;
443 504 /*
444   - Valor: EXCLUIRCONEXAO
  505 + Valor: EXCLUIRCONEXAO
445 506  
446 507 Exclui uma conexao
447 508  
... ... @@ -568,7 +629,12 @@ switch (strtoupper($funcao))
568 629 $m = new Metaestat();
569 630 retornaJSON($m->excluirRegistro("i3geoestat_classes","id_classe",$id_classe));
570 631 exit;
571   - break;
  632 + break;
  633 + case "EXCLUIRLINKMEDIDA":
  634 + $m = new Metaestat();
  635 + retornaJSON($m->excluirRegistro("i3geoestat_medida_variavel_link","id_link",$id_link));
  636 + exit;
  637 + break;
572 638 /*
573 639 Valor: LISTADADOSTABELASAUXILIARES
574 640  
... ... @@ -585,6 +651,7 @@ switch (strtoupper($funcao))
585 651 $resultado["unidade_medida"] = $m->listaUnidadeMedida();
586 652 $resultado["tipo_regiao"] = $m->listaTipoRegiao();
587 653 $resultado["conexao"] = $m->listaConexao();
  654 + $resultado["fonteinfo"] = $m->listaFonteinfo();
588 655 retornaJSON($resultado);
589 656 break;
590 657 /*
... ...
admin/sql/metaestat.sql
... ... @@ -4,9 +4,12 @@
4 4 drop table i3geoestat_classes;
5 5 drop table i3geoestat_classificacao;
6 6 drop table i3geoestat_dimensao_medida;
  7 +drop table i3geoestat_fonteinfo_medida;
  8 +drop table i3geoestat_medida_variavel_link;
7 9 drop table i3geoestat_medida_variavel;
8 10 drop table i3geoestat_tipo_regiao;
9 11 drop table i3geoestat_conexao;
  12 +drop table i3geoestat_fonteinfo;
10 13 drop table i3geoestat_tipo_periodo;
11 14 drop table i3geoestat_unidade_medida;
12 15 drop table i3geoestat_variavel;
... ... @@ -16,15 +19,6 @@ drop table i3geoestat_variavel;
16 19  
17 20 /* create tables */
18 21  
19   --- tabela com o nome e descrição de uma variável variável
20   -create table i3geoestat_variavel
21   -(
22   - codigo_variavel integer not null unique primary key autoincrement,
23   - nome text,
24   - descricao text
25   -);
26   -
27   -
28 22 -- lista controlada dos parâmetros de conexão com o banco de dados onde residem dados
29 23 create table i3geoestat_conexao
30 24 (
... ... @@ -42,27 +36,6 @@ create table i3geoestat_conexao
42 36 );
43 37  
44 38  
45   -create table i3geoestat_unidade_medida
46   -(
47   - codigo_unidade_medida integer not null unique primary key autoincrement,
48   - nome text,
49   - sigla text,
50   - -- o tipo de unidade permite que os valores sejam somados? (0 ou 1)
51   - permitesoma integer default 0,
52   - -- o tipo de unidade permite o cálculo de média aritmética? (0 ou 1)
53   - permitemedia integer default 0
54   -);
55   -
56   -
57   --- lista controlada de tipos de período de tempo
58   -create table i3geoestat_tipo_periodo
59   -(
60   - codigo_tipo_periodo integer not null unique primary key autoincrement,
61   - nome text,
62   - descricao text
63   -);
64   -
65   -
66 39 -- identifica as tabelas que possuem colunas com geometrias de determinado local ou região
67 40 create table i3geoestat_tipo_regiao
68 41 (
... ... @@ -91,6 +64,36 @@ create table i3geoestat_tipo_regiao
91 64 );
92 65  
93 66  
  67 +create table i3geoestat_unidade_medida
  68 +(
  69 + codigo_unidade_medida integer not null unique primary key autoincrement,
  70 + nome text,
  71 + sigla text,
  72 + -- o tipo de unidade permite que os valores sejam somados? (0 ou 1)
  73 + permitesoma integer default 0,
  74 + -- o tipo de unidade permite o cálculo de média aritmética? (0 ou 1)
  75 + permitemedia integer default 0
  76 +);
  77 +
  78 +
  79 +-- tabela com o nome e descrição de uma variável variável
  80 +create table i3geoestat_variavel
  81 +(
  82 + codigo_variavel integer not null unique primary key autoincrement,
  83 + nome text,
  84 + descricao text
  85 +);
  86 +
  87 +
  88 +-- lista controlada de tipos de período de tempo
  89 +create table i3geoestat_tipo_periodo
  90 +(
  91 + codigo_tipo_periodo integer not null unique primary key autoincrement,
  92 + nome text,
  93 + descricao text
  94 +);
  95 +
  96 +
94 97 -- descreve as colunas que contém valores de algum tipo de medida, por exemplo população residente
95 98 create table i3geoestat_medida_variavel
96 99 (
... ... @@ -112,16 +115,16 @@ create table i3geoestat_medida_variavel
112 115 filtro text,
113 116 -- titulo da medida
114 117 nomemedida text,
  118 + foreign key (codigo_tipo_regiao)
  119 + references i3geoestat_tipo_regiao (codigo_tipo_regiao),
  120 + foreign key (codigo_unidade_medida)
  121 + references i3geoestat_unidade_medida (codigo_unidade_medida),
115 122 foreign key (codigo_variavel)
116 123 references i3geoestat_variavel (codigo_variavel),
117 124 foreign key (codigo_estat_conexao)
118 125 references i3geoestat_conexao (codigo_estat_conexao),
119   - foreign key (codigo_unidade_medida)
120   - references i3geoestat_unidade_medida (codigo_unidade_medida),
121 126 foreign key (codigo_tipo_periodo)
122   - references i3geoestat_tipo_periodo (codigo_tipo_periodo),
123   - foreign key (codigo_tipo_regiao)
124   - references i3geoestat_tipo_regiao (codigo_tipo_regiao)
  127 + references i3geoestat_tipo_periodo (codigo_tipo_periodo)
125 128 );
126 129  
127 130  
... ... @@ -184,4 +187,35 @@ create table i3geoestat_dimensao_medida
184 187 );
185 188  
186 189  
  190 +create table i3geoestat_fonteinfo
  191 +(
  192 + id_fonteinfo integer not null unique primary key autoincrement,
  193 + -- título completo da fonte, devendo conter o ano quando for o caso
  194 + titulo text unique,
  195 + link text
  196 +);
  197 +
  198 +
  199 +create table i3geoestat_fonteinfo_medida
  200 +(
  201 + id_medida_variavel integer not null,
  202 + id_fonteinfo integer not null,
  203 + foreign key (id_medida_variavel)
  204 + references i3geoestat_medida_variavel (id_medida_variavel),
  205 + foreign key (id_fonteinfo)
  206 + references i3geoestat_fonteinfo (id_fonteinfo)
  207 +);
  208 +
  209 +
  210 +create table i3geoestat_medida_variavel_link
  211 +(
  212 + link text,
  213 + id_medida_variavel integer,
  214 + nome text,
  215 + id_link integer not null unique primary key autoincrement,
  216 + foreign key (id_medida_variavel)
  217 + references i3geoestat_medida_variavel (id_medida_variavel)
  218 +);
  219 +
  220 +
187 221  
... ...
admin/sql/metaestat_basededados.sql
... ... @@ -38,3 +38,15 @@ INSERT INTO i3geoestat_classes (id_classe, expressao, titulo, vermelho, verde, a
38 38 INSERT INTO i3geoestat_classes (id_classe, expressao, titulo, vermelho, verde, azul, id_classificacao, tamanho, simbolo, overmelho, overde, oazul, otamanho) VALUES ('3', '([nu_farm_funcionando] > 1)', 'Mais de uma', '0', '0', '255', '1', '', '', '', '', '', '');
39 39  
40 40  
  41 +-- i3geoestat_medida_variavel_link
  42 +INSERT INTO i3geoestat_medida_variavel_link (link, id_medida_variavel, nome, id_link) VALUES ('http://portal.saude.gov.br/portal/saude/area.cfm?id_area=1095', '1', 'Site das Fármacias Populares', '1');
  43 +
  44 +
  45 +-- i3geoestat_fontinfo_medida
  46 +INSERT INTO i3geoestat_fonteinfo_medida (id_medida_variavel, id_fonteinfo) VALUES ('1', '1');
  47 +
  48 +
  49 +-- i3geoestat_fonteinfo
  50 +INSERT INTO i3geoestat_fonteinfo (id_fonteinfo, titulo, link) VALUES ('1', 'Ministério da Saúde', 'http://saude.gov.br');
  51 +
  52 +
... ...
documentacao/diagramas/metaestat.erm
... ... @@ -11,12 +11,12 @@
11 11 </page_setting>
12 12 <category_index>0</category_index>
13 13 <zoom>1.0</zoom>
14   - <x>-343</x>
15   - <y>3</y>
  14 + <x>193</x>
  15 + <y>17</y>
16 16 <default_color>
17   - <r>230</r>
18   - <g>230</g>
19   - <b>250</b>
  17 + <r>144</r>
  18 + <g>238</g>
  19 + <b>144</b>
20 20 </default_color>
21 21 <color>
22 22 <r>255</r>
... ... @@ -110,7 +110,7 @@
110 110 </connections>
111 111 <display>false</display>
112 112 <creation_date>2012-07-17 15:03:53</creation_date>
113   - <updated_date>2012-08-07 00:45:40</updated_date>
  113 + <updated_date>2012-08-15 01:02:44</updated_date>
114 114 <model_property>
115 115 <name>Project Name</name>
116 116 <value></value>
... ... @@ -516,12 +516,64 @@
516 516 <unsigned>false</unsigned>
517 517 <args></args>
518 518 <description></description>
  519 + <logical_name>id_fonteinfo</logical_name>
  520 + <physical_name>id_fonteinfo</physical_name>
  521 + <type>integer</type>
  522 + </word>
  523 + <word>
  524 + <id>29</id>
  525 + <length>null</length>
  526 + <decimal>null</decimal>
  527 + <array>false</array>
  528 + <array_dimension>null</array_dimension>
  529 + <unsigned>false</unsigned>
  530 + <args></args>
  531 + <description></description>
  532 + <logical_name>id_link</logical_name>
  533 + <physical_name>id_link</physical_name>
  534 + <type>integer</type>
  535 + </word>
  536 + <word>
  537 + <id>30</id>
  538 + <length>null</length>
  539 + <decimal>null</decimal>
  540 + <array>false</array>
  541 + <array_dimension>null</array_dimension>
  542 + <unsigned>false</unsigned>
  543 + <args></args>
  544 + <description></description>
519 545 <logical_name>id_medida_variavel</logical_name>
520 546 <physical_name>id_medida_variavel</physical_name>
521 547 <type>integer</type>
522 548 </word>
523 549 <word>
524   - <id>29</id>
  550 + <id>31</id>
  551 + <length>null</length>
  552 + <decimal>null</decimal>
  553 + <array>false</array>
  554 + <array_dimension>null</array_dimension>
  555 + <unsigned>false</unsigned>
  556 + <args></args>
  557 + <description></description>
  558 + <logical_name>link</logical_name>
  559 + <physical_name>link</physical_name>
  560 + <type>text</type>
  561 + </word>
  562 + <word>
  563 + <id>32</id>
  564 + <length>null</length>
  565 + <decimal>null</decimal>
  566 + <array>false</array>
  567 + <array_dimension>null</array_dimension>
  568 + <unsigned>false</unsigned>
  569 + <args></args>
  570 + <description></description>
  571 + <logical_name>link</logical_name>
  572 + <physical_name>link</physical_name>
  573 + <type>text</type>
  574 + </word>
  575 + <word>
  576 + <id>33</id>
525 577 <length>null</length>
526 578 <decimal>null</decimal>
527 579 <array>false</array>
... ... @@ -534,7 +586,7 @@
534 586 <type>text</type>
535 587 </word>
536 588 <word>
537   - <id>30</id>
  589 + <id>34</id>
538 590 <length>null</length>
539 591 <decimal>null</decimal>
540 592 <array>false</array>
... ... @@ -547,7 +599,7 @@
547 599 <type>text</type>
548 600 </word>
549 601 <word>
550   - <id>31</id>
  602 + <id>35</id>
551 603 <length>null</length>
552 604 <decimal>null</decimal>
553 605 <array>false</array>
... ... @@ -560,7 +612,7 @@
560 612 <type>text</type>
561 613 </word>
562 614 <word>
563   - <id>32</id>
  615 + <id>36</id>
564 616 <length>null</length>
565 617 <decimal>null</decimal>
566 618 <array>false</array>
... ... @@ -573,7 +625,20 @@
573 625 <type>text</type>
574 626 </word>
575 627 <word>
576   - <id>33</id>
  628 + <id>37</id>
  629 + <length>null</length>
  630 + <decimal>null</decimal>
  631 + <array>false</array>
  632 + <array_dimension>null</array_dimension>
  633 + <unsigned>false</unsigned>
  634 + <args></args>
  635 + <description></description>
  636 + <logical_name>nome</logical_name>
  637 + <physical_name>nome</physical_name>
  638 + <type>text</type>
  639 + </word>
  640 + <word>
  641 + <id>38</id>
577 642 <length>null</length>
578 643 <decimal>null</decimal>
579 644 <array>false</array>
... ... @@ -586,7 +651,7 @@
586 651 <type>text</type>
587 652 </word>
588 653 <word>
589   - <id>34</id>
  654 + <id>39</id>
590 655 <length>null</length>
591 656 <decimal>null</decimal>
592 657 <array>false</array>
... ... @@ -599,7 +664,7 @@
599 664 <type>text</type>
600 665 </word>
601 666 <word>
602   - <id>35</id>
  667 + <id>40</id>
603 668 <length>null</length>
604 669 <decimal>null</decimal>
605 670 <array>false</array>
... ... @@ -612,7 +677,7 @@
612 677 <type>text</type>
613 678 </word>
614 679 <word>
615   - <id>36</id>
  680 + <id>41</id>
616 681 <length>null</length>
617 682 <decimal>null</decimal>
618 683 <array>false</array>
... ... @@ -625,7 +690,7 @@
625 690 <type>text</type>
626 691 </word>
627 692 <word>
628   - <id>37</id>
  693 + <id>42</id>
629 694 <length>null</length>
630 695 <decimal>null</decimal>
631 696 <array>false</array>
... ... @@ -638,7 +703,7 @@
638 703 <type>text</type>
639 704 </word>
640 705 <word>
641   - <id>38</id>
  706 + <id>43</id>
642 707 <length>null</length>
643 708 <decimal>null</decimal>
644 709 <array>false</array>
... ... @@ -651,7 +716,7 @@
651 716 <type>text</type>
652 717 </word>
653 718 <word>
654   - <id>39</id>
  719 + <id>44</id>
655 720 <length>null</length>
656 721 <decimal>null</decimal>
657 722 <array>false</array>
... ... @@ -664,7 +729,7 @@
664 729 <type>text</type>
665 730 </word>
666 731 <word>
667   - <id>40</id>
  732 + <id>45</id>
668 733 <length>null</length>
669 734 <decimal>null</decimal>
670 735 <array>false</array>
... ... @@ -677,7 +742,7 @@
677 742 <type>text</type>
678 743 </word>
679 744 <word>
680   - <id>41</id>
  745 + <id>46</id>
681 746 <length>null</length>
682 747 <decimal>null</decimal>
683 748 <array>false</array>
... ... @@ -690,7 +755,7 @@
690 755 <type>integer</type>
691 756 </word>
692 757 <word>
693   - <id>42</id>
  758 + <id>47</id>
694 759 <length>null</length>
695 760 <decimal>null</decimal>
696 761 <array>false</array>
... ... @@ -703,7 +768,7 @@
703 768 <type>integer</type>
704 769 </word>
705 770 <word>
706   - <id>43</id>
  771 + <id>48</id>
707 772 <length>null</length>
708 773 <decimal>null</decimal>
709 774 <array>false</array>
... ... @@ -716,7 +781,7 @@
716 781 <type>text</type>
717 782 </word>
718 783 <word>
719   - <id>44</id>
  784 + <id>49</id>
720 785 <length>null</length>
721 786 <decimal>null</decimal>
722 787 <array>false</array>
... ... @@ -729,7 +794,7 @@
729 794 <type>text</type>
730 795 </word>
731 796 <word>
732   - <id>45</id>
  797 + <id>50</id>
733 798 <length>null</length>
734 799 <decimal>null</decimal>
735 800 <array>false</array>
... ... @@ -742,7 +807,7 @@
742 807 <type>text</type>
743 808 </word>
744 809 <word>
745   - <id>46</id>
  810 + <id>51</id>
746 811 <length>null</length>
747 812 <decimal>null</decimal>
748 813 <array>false</array>
... ... @@ -755,7 +820,7 @@
755 820 <type>text</type>
756 821 </word>
757 822 <word>
758   - <id>47</id>
  823 + <id>52</id>
759 824 <length>null</length>
760 825 <decimal>null</decimal>
761 826 <array>false</array>
... ... @@ -768,7 +833,7 @@
768 833 <type>text</type>
769 834 </word>
770 835 <word>
771   - <id>48</id>
  836 + <id>53</id>
772 837 <length>null</length>
773 838 <decimal>null</decimal>
774 839 <array>false</array>
... ... @@ -781,7 +846,7 @@
781 846 <type>text</type>
782 847 </word>
783 848 <word>
784   - <id>49</id>
  849 + <id>54</id>
785 850 <length>null</length>
786 851 <decimal>null</decimal>
787 852 <array>false</array>
... ... @@ -794,7 +859,7 @@
794 859 <type>text</type>
795 860 </word>
796 861 <word>
797   - <id>50</id>
  862 + <id>55</id>
798 863 <length>null</length>
799 864 <decimal>null</decimal>
800 865 <array>false</array>
... ... @@ -807,7 +872,7 @@
807 872 <type>text</type>
808 873 </word>
809 874 <word>
810   - <id>51</id>
  875 + <id>56</id>
811 876 <length>null</length>
812 877 <decimal>null</decimal>
813 878 <array>false</array>
... ... @@ -820,7 +885,20 @@
820 885 <type>text</type>
821 886 </word>
822 887 <word>
823   - <id>52</id>
  888 + <id>57</id>
  889 + <length>null</length>
  890 + <decimal>null</decimal>
  891 + <array>false</array>
  892 + <array_dimension>null</array_dimension>
  893 + <unsigned>false</unsigned>
  894 + <args></args>
  895 + <description>Título completo da fonte, devendo conter o ano quando for o caso</description>
  896 + <logical_name>titulo</logical_name>
  897 + <physical_name>titulo</physical_name>
  898 + <type>text</type>
  899 + </word>
  900 + <word>
  901 + <id>58</id>
824 902 <length>null</length>
825 903 <decimal>null</decimal>
826 904 <array>false</array>
... ... @@ -833,7 +911,7 @@
833 911 <type>text</type>
834 912 </word>
835 913 <word>
836   - <id>53</id>
  914 + <id>59</id>
837 915 <length>null</length>
838 916 <decimal>null</decimal>
839 917 <array>false</array>
... ... @@ -846,7 +924,7 @@
846 924 <type>text</type>
847 925 </word>
848 926 <word>
849   - <id>54</id>
  927 + <id>60</id>
850 928 <length>null</length>
851 929 <decimal>null</decimal>
852 930 <array>false</array>
... ... @@ -968,7 +1046,7 @@
968 1046 </sequence>
969 1047 </normal_column>
970 1048 <normal_column>
971   - <word_id>29</word_id>
  1049 + <word_id>34</word_id>
972 1050 <id>1</id>
973 1051 <description></description>
974 1052 <unique_key_name></unique_key_name>
... ... @@ -1000,7 +1078,7 @@
1000 1078 </sequence>
1001 1079 </normal_column>
1002 1080 <normal_column>
1003   - <word_id>45</word_id>
  1081 + <word_id>50</word_id>
1004 1082 <id>2</id>
1005 1083 <description></description>
1006 1084 <unique_key_name></unique_key_name>
... ... @@ -1032,7 +1110,7 @@
1032 1110 </sequence>
1033 1111 </normal_column>
1034 1112 <normal_column>
1035   - <word_id>42</word_id>
  1113 + <word_id>47</word_id>
1036 1114 <id>3</id>
1037 1115 <description></description>
1038 1116 <unique_key_name></unique_key_name>
... ... @@ -1064,7 +1142,7 @@
1064 1142 </sequence>
1065 1143 </normal_column>
1066 1144 <normal_column>
1067   - <word_id>41</word_id>
  1145 + <word_id>46</word_id>
1068 1146 <id>4</id>
1069 1147 <description></description>
1070 1148 <unique_key_name></unique_key_name>
... ... @@ -1159,7 +1237,7 @@
1159 1237 </sequence>
1160 1238 </normal_column>
1161 1239 <normal_column>
1162   - <word_id>32</word_id>
  1240 + <word_id>36</word_id>
1163 1241 <id>6</id>
1164 1242 <description></description>
1165 1243 <unique_key_name></unique_key_name>
... ... @@ -1191,7 +1269,7 @@
1191 1269 </sequence>
1192 1270 </normal_column>
1193 1271 <normal_column>
1194   - <word_id>16</word_id>
  1272 + <word_id>17</word_id>
1195 1273 <id>7</id>
1196 1274 <description></description>
1197 1275 <unique_key_name></unique_key_name>
... ... @@ -1286,7 +1364,7 @@
1286 1364 </sequence>
1287 1365 </normal_column>
1288 1366 <normal_column>
1289   - <word_id>30</word_id>
  1367 + <word_id>35</word_id>
1290 1368 <id>9</id>
1291 1369 <description></description>
1292 1370 <unique_key_name></unique_key_name>
... ... @@ -1318,7 +1396,7 @@
1318 1396 </sequence>
1319 1397 </normal_column>
1320 1398 <normal_column>
1321   - <word_id>17</word_id>
  1399 + <word_id>16</word_id>
1322 1400 <id>10</id>
1323 1401 <description></description>
1324 1402 <unique_key_name></unique_key_name>
... ... @@ -1360,12 +1438,12 @@
1360 1438 </table>
1361 1439 <table>
1362 1440 <id>6</id>
1363   - <height>339</height>
  1441 + <height>170</height>
1364 1442 <width>292</width>
1365 1443 <font_name>Ubuntu</font_name>
1366 1444 <font_size>9</font_size>
1367   - <x>353</x>
1368   - <y>155</y>
  1445 + <x>387</x>
  1446 + <y>533</y>
1369 1447 <color>
1370 1448 <r>160</r>
1371 1449 <g>32</g>
... ... @@ -1374,7 +1452,7 @@
1374 1452 <connections>
1375 1453 <relation>
1376 1454 <id>0</id>
1377   - <source>5</source>
  1455 + <source>13</source>
1378 1456 <target>6</target>
1379 1457 <child_cardinality>1..n</child_cardinality>
1380 1458 <parent_cardinality>1</parent_cardinality>
... ... @@ -1389,84 +1467,21 @@
1389 1467 <referenced_column>null</referenced_column>
1390 1468 <referenced_complex_unique_key>null</referenced_complex_unique_key>
1391 1469 </relation>
1392   - <relation>
  1470 + <comment_connection>
1393 1471 <id>1</id>
1394   - <source>12</source>
1395   - <target>6</target>
1396   - <child_cardinality>1..n</child_cardinality>
1397   - <parent_cardinality>1</parent_cardinality>
1398   - <reference_for_pk>true</reference_for_pk>
1399   - <name></name>
1400   - <on_delete_action>RESTRICT</on_delete_action>
1401   - <on_update_action>RESTRICT</on_update_action>
1402   - <source_xp>-1</source_xp>
1403   - <source_yp>-1</source_yp>
1404   - <target_xp>-1</target_xp>
1405   - <target_yp>-1</target_yp>
1406   - <referenced_column>null</referenced_column>
1407   - <referenced_complex_unique_key>null</referenced_complex_unique_key>
1408   - </relation>
1409   - <relation>
1410   - <id>2</id>
1411   - <source>3</source>
1412   - <target>6</target>
1413   - <child_cardinality>1..n</child_cardinality>
1414   - <parent_cardinality>1</parent_cardinality>
1415   - <reference_for_pk>true</reference_for_pk>
1416   - <name></name>
1417   - <on_delete_action>RESTRICT</on_delete_action>
1418   - <on_update_action>RESTRICT</on_update_action>
1419   - <source_xp>-1</source_xp>
1420   - <source_yp>-1</source_yp>
1421   - <target_xp>-1</target_xp>
1422   - <target_yp>-1</target_yp>
1423   - <referenced_column>null</referenced_column>
1424   - <referenced_complex_unique_key>null</referenced_complex_unique_key>
1425   - </relation>
1426   - <relation>
1427   - <id>3</id>
1428   - <source>4</source>
1429   - <target>6</target>
1430   - <child_cardinality>1..n</child_cardinality>
1431   - <parent_cardinality>1</parent_cardinality>
1432   - <reference_for_pk>true</reference_for_pk>
1433   - <name></name>
1434   - <on_delete_action>RESTRICT</on_delete_action>
1435   - <on_update_action>RESTRICT</on_update_action>
1436   - <source_xp>-1</source_xp>
1437   - <source_yp>-1</source_yp>
1438   - <target_xp>-1</target_xp>
1439   - <target_yp>-1</target_yp>
1440   - <referenced_column>null</referenced_column>
1441   - <referenced_complex_unique_key>null</referenced_complex_unique_key>
1442   - </relation>
1443   - <relation>
1444   - <id>4</id>
1445   - <source>11</source>
  1472 + <source>7</source>
1446 1473 <target>6</target>
1447   - <child_cardinality>1..n</child_cardinality>
1448   - <parent_cardinality>1</parent_cardinality>
1449   - <reference_for_pk>true</reference_for_pk>
1450   - <name></name>
1451   - <on_delete_action>RESTRICT</on_delete_action>
1452   - <on_update_action>RESTRICT</on_update_action>
1453   - <source_xp>-1</source_xp>
1454   - <source_yp>-1</source_yp>
1455   - <target_xp>-1</target_xp>
1456   - <target_yp>-1</target_yp>
1457   - <referenced_column>null</referenced_column>
1458   - <referenced_complex_unique_key>null</referenced_complex_unique_key>
1459   - </relation>
  1474 + </comment_connection>
1460 1475 </connections>
1461   - <physical_name>i3geoestat_medida_variavel</physical_name>
1462   - <logical_name>i3geoestat_medida_variavel</logical_name>
1463   - <description>Descreve as colunas que contém valores de algum tipo de medida, por exemplo população residente</description>
  1476 + <physical_name>i3geoestat_dimensao_medida</physical_name>
  1477 + <logical_name>i3geoestat_dimensao_medida</logical_name>
  1478 + <description></description>
1464 1479 <constraint></constraint>
1465 1480 <primary_key_name></primary_key_name>
1466 1481 <option></option>
1467 1482 <columns>
1468 1483 <normal_column>
1469   - <word_id>28</word_id>
  1484 + <word_id>27</word_id>
1470 1485 <id>11</id>
1471 1486 <description></description>
1472 1487 <unique_key_name></unique_key_name>
... ... @@ -1498,18 +1513,17 @@
1498 1513 </sequence>
1499 1514 </normal_column>
1500 1515 <normal_column>
  1516 + <word_id>8</word_id>
1501 1517 <id>12</id>
1502   - <referenced_column>0</referenced_column>
1503   - <relation>2</relation>
1504 1518 <description></description>
1505 1519 <unique_key_name></unique_key_name>
1506 1520 <logical_name></logical_name>
1507 1521 <physical_name></physical_name>
1508   - <type>integer</type>
  1522 + <type>text</type>
1509 1523 <constraint></constraint>
1510 1524 <default_value></default_value>
1511 1525 <auto_increment>false</auto_increment>
1512   - <foreign_key>true</foreign_key>
  1526 + <foreign_key>false</foreign_key>
1513 1527 <not_null>false</not_null>
1514 1528 <primary_key>false</primary_key>
1515 1529 <unique_key>false</unique_key>
... ... @@ -1531,18 +1545,17 @@
1531 1545 </sequence>
1532 1546 </normal_column>
1533 1547 <normal_column>
  1548 + <word_id>38</word_id>
1534 1549 <id>13</id>
1535   - <referenced_column>5</referenced_column>
1536   - <relation>3</relation>
1537 1550 <description></description>
1538 1551 <unique_key_name></unique_key_name>
1539 1552 <logical_name></logical_name>
1540 1553 <physical_name></physical_name>
1541   - <type>integer</type>
  1554 + <type>text</type>
1542 1555 <constraint></constraint>
1543 1556 <default_value></default_value>
1544 1557 <auto_increment>false</auto_increment>
1545   - <foreign_key>true</foreign_key>
  1558 + <foreign_key>false</foreign_key>
1546 1559 <not_null>false</not_null>
1547 1560 <primary_key>false</primary_key>
1548 1561 <unique_key>false</unique_key>
... ... @@ -1564,18 +1577,17 @@
1564 1577 </sequence>
1565 1578 </normal_column>
1566 1579 <normal_column>
  1580 + <word_id>15</word_id>
1567 1581 <id>14</id>
1568   - <referenced_column>8</referenced_column>
1569   - <relation>0</relation>
1570 1582 <description></description>
1571 1583 <unique_key_name></unique_key_name>
1572 1584 <logical_name></logical_name>
1573 1585 <physical_name></physical_name>
1574   - <type>integer</type>
  1586 + <type>text</type>
1575 1587 <constraint></constraint>
1576 1588 <default_value></default_value>
1577 1589 <auto_increment>false</auto_increment>
1578   - <foreign_key>true</foreign_key>
  1590 + <foreign_key>false</foreign_key>
1579 1591 <not_null>false</not_null>
1580 1592 <primary_key>false</primary_key>
1581 1593 <unique_key>false</unique_key>
... ... @@ -1597,18 +1609,17 @@
1597 1609 </sequence>
1598 1610 </normal_column>
1599 1611 <normal_column>
  1612 + <word_id>0</word_id>
1600 1613 <id>15</id>
1601   - <referenced_column>46</referenced_column>
1602   - <relation>4</relation>
1603 1614 <description></description>
1604 1615 <unique_key_name></unique_key_name>
1605 1616 <logical_name></logical_name>
1606 1617 <physical_name></physical_name>
1607 1618 <type>integer</type>
1608 1619 <constraint></constraint>
1609   - <default_value></default_value>
  1620 + <default_value>0</default_value>
1610 1621 <auto_increment>false</auto_increment>
1611   - <foreign_key>true</foreign_key>
  1622 + <foreign_key>false</foreign_key>
1612 1623 <not_null>false</not_null>
1613 1624 <primary_key>false</primary_key>
1614 1625 <unique_key>false</unique_key>
... ... @@ -1631,8 +1642,8 @@
1631 1642 </normal_column>
1632 1643 <normal_column>
1633 1644 <id>16</id>
1634   - <referenced_column>58</referenced_column>
1635   - <relation>1</relation>
  1645 + <referenced_column>55</referenced_column>
  1646 + <relation>0</relation>
1636 1647 <description></description>
1637 1648 <unique_key_name></unique_key_name>
1638 1649 <logical_name></logical_name>
... ... @@ -1662,22 +1673,92 @@
1662 1673 <decimal_size>0</decimal_size>
1663 1674 </sequence>
1664 1675 </normal_column>
1665   - <normal_column>
1666   - <word_id>19</word_id>
1667   - <id>17</id>
1668   - <description></description>
1669   - <unique_key_name></unique_key_name>
1670   - <logical_name></logical_name>
1671   - <physical_name></physical_name>
1672   - <type>text</type>
1673   - <constraint></constraint>
1674   - <default_value></default_value>
1675   - <auto_increment>false</auto_increment>
1676   - <foreign_key>false</foreign_key>
1677   - <not_null>false</not_null>
1678   - <primary_key>false</primary_key>
1679   - <unique_key>false</unique_key>
1680   - <character_set></character_set>
  1676 + </columns>
  1677 + <indexes>
  1678 + </indexes>
  1679 + <complex_unique_key_list>
  1680 + </complex_unique_key_list>
  1681 + <table_properties>
  1682 + <schema></schema>
  1683 + </table_properties>
  1684 + </table>
  1685 + <note>
  1686 + <id>7</id>
  1687 + <height>111</height>
  1688 + <width>188</width>
  1689 + <font_name>Ubuntu</font_name>
  1690 + <font_size>9</font_size>
  1691 + <x>748</x>
  1692 + <y>594</y>
  1693 + <color>
  1694 + <r>255</r>
  1695 + <g>255</g>
  1696 + <b>255</b>
  1697 + </color>
  1698 + <connections>
  1699 + </connections>
  1700 + <text>As colunas obtidas da junção de medida_variavel com tipo_regiao podem ser utilizadas para definir uma dimensão</text>
  1701 + </note>
  1702 + <table>
  1703 + <id>8</id>
  1704 + <height>275</height>
  1705 + <width>292</width>
  1706 + <font_name>Ubuntu</font_name>
  1707 + <font_size>9</font_size>
  1708 + <x>-336</x>
  1709 + <y>236</y>
  1710 + <color>
  1711 + <r>255</r>
  1712 + <g>165</g>
  1713 + <b>0</b>
  1714 + </color>
  1715 + <connections>
  1716 + <comment_connection>
  1717 + <id>2</id>
  1718 + <source>0</source>
  1719 + <target>8</target>
  1720 + </comment_connection>
  1721 + <relation>
  1722 + <id>3</id>
  1723 + <source>9</source>
  1724 + <target>8</target>
  1725 + <child_cardinality>1..n</child_cardinality>
  1726 + <parent_cardinality>1</parent_cardinality>
  1727 + <reference_for_pk>true</reference_for_pk>
  1728 + <name></name>
  1729 + <on_delete_action>RESTRICT</on_delete_action>
  1730 + <on_update_action>RESTRICT</on_update_action>
  1731 + <source_xp>-1</source_xp>
  1732 + <source_yp>-1</source_yp>
  1733 + <target_xp>-1</target_xp>
  1734 + <target_yp>-1</target_yp>
  1735 + <referenced_column>null</referenced_column>
  1736 + <referenced_complex_unique_key>null</referenced_complex_unique_key>
  1737 + </relation>
  1738 + </connections>
  1739 + <physical_name>i3geoestat_tipo_regiao</physical_name>
  1740 + <logical_name>i3geoestat_tipo_regiao</logical_name>
  1741 + <description>Identifica as tabelas que possuem colunas com geometrias de determinado local ou região</description>
  1742 + <constraint></constraint>
  1743 + <primary_key_name></primary_key_name>
  1744 + <option></option>
  1745 + <columns>
  1746 + <normal_column>
  1747 + <word_id>5</word_id>
  1748 + <id>17</id>
  1749 + <description></description>
  1750 + <unique_key_name></unique_key_name>
  1751 + <logical_name></logical_name>
  1752 + <physical_name></physical_name>
  1753 + <type>integer</type>
  1754 + <constraint></constraint>
  1755 + <default_value></default_value>
  1756 + <auto_increment>true</auto_increment>
  1757 + <foreign_key>false</foreign_key>
  1758 + <not_null>true</not_null>
  1759 + <primary_key>true</primary_key>
  1760 + <unique_key>true</unique_key>
  1761 + <character_set></character_set>
1681 1762 <collation></collation>
1682 1763 <sequence>
1683 1764 <name></name>
... ... @@ -1695,7 +1776,7 @@
1695 1776 </sequence>
1696 1777 </normal_column>
1697 1778 <normal_column>
1698   - <word_id>48</word_id>
  1779 + <word_id>40</word_id>
1699 1780 <id>18</id>
1700 1781 <description></description>
1701 1782 <unique_key_name></unique_key_name>
... ... @@ -1727,7 +1808,7 @@
1727 1808 </sequence>
1728 1809 </normal_column>
1729 1810 <normal_column>
1730   - <word_id>13</word_id>
  1811 + <word_id>18</word_id>
1731 1812 <id>19</id>
1732 1813 <description></description>
1733 1814 <unique_key_name></unique_key_name>
... ... @@ -1759,17 +1840,18 @@
1759 1840 </sequence>
1760 1841 </normal_column>
1761 1842 <normal_column>
1762   - <word_id>11</word_id>
1763 1843 <id>20</id>
  1844 + <referenced_column>29</referenced_column>
  1845 + <relation>3</relation>
1764 1846 <description></description>
1765 1847 <unique_key_name></unique_key_name>
1766 1848 <logical_name></logical_name>
1767 1849 <physical_name></physical_name>
1768   - <type>text</type>
  1850 + <type>integer</type>
1769 1851 <constraint></constraint>
1770 1852 <default_value></default_value>
1771 1853 <auto_increment>false</auto_increment>
1772   - <foreign_key>false</foreign_key>
  1854 + <foreign_key>true</foreign_key>
1773 1855 <not_null>false</not_null>
1774 1856 <primary_key>false</primary_key>
1775 1857 <unique_key>false</unique_key>
... ... @@ -1791,7 +1873,7 @@
1791 1873 </sequence>
1792 1874 </normal_column>
1793 1875 <normal_column>
1794   - <word_id>22</word_id>
  1876 + <word_id>20</word_id>
1795 1877 <id>21</id>
1796 1878 <description></description>
1797 1879 <unique_key_name></unique_key_name>
... ... @@ -1823,7 +1905,7 @@
1823 1905 </sequence>
1824 1906 </normal_column>
1825 1907 <normal_column>
1826   - <word_id>34</word_id>
  1908 + <word_id>54</word_id>
1827 1909 <id>22</id>
1828 1910 <description></description>
1829 1911 <unique_key_name></unique_key_name>
... ... @@ -1854,74 +1936,21 @@
1854 1936 <decimal_size>0</decimal_size>
1855 1937 </sequence>
1856 1938 </normal_column>
1857   - </columns>
1858   - <indexes>
1859   - </indexes>
1860   - <complex_unique_key_list>
1861   - </complex_unique_key_list>
1862   - <table_properties>
1863   - <schema></schema>
1864   - </table_properties>
1865   - </table>
1866   - <table>
1867   - <id>7</id>
1868   - <height>170</height>
1869   - <width>292</width>
1870   - <font_name>Ubuntu</font_name>
1871   - <font_size>9</font_size>
1872   - <x>387</x>
1873   - <y>533</y>
1874   - <color>
1875   - <r>160</r>
1876   - <g>32</g>
1877   - <b>240</b>
1878   - </color>
1879   - <connections>
1880   - <relation>
1881   - <id>5</id>
1882   - <source>6</source>
1883   - <target>7</target>
1884   - <child_cardinality>1..n</child_cardinality>
1885   - <parent_cardinality>1</parent_cardinality>
1886   - <reference_for_pk>true</reference_for_pk>
1887   - <name></name>
1888   - <on_delete_action>RESTRICT</on_delete_action>
1889   - <on_update_action>RESTRICT</on_update_action>
1890   - <source_xp>-1</source_xp>
1891   - <source_yp>-1</source_yp>
1892   - <target_xp>-1</target_xp>
1893   - <target_yp>-1</target_yp>
1894   - <referenced_column>null</referenced_column>
1895   - <referenced_complex_unique_key>null</referenced_complex_unique_key>
1896   - </relation>
1897   - <comment_connection>
1898   - <id>6</id>
1899   - <source>8</source>
1900   - <target>7</target>
1901   - </comment_connection>
1902   - </connections>
1903   - <physical_name>i3geoestat_dimensao_medida</physical_name>
1904   - <logical_name>i3geoestat_dimensao_medida</logical_name>
1905   - <description></description>
1906   - <constraint></constraint>
1907   - <primary_key_name></primary_key_name>
1908   - <option></option>
1909   - <columns>
1910 1939 <normal_column>
1911   - <word_id>27</word_id>
  1940 + <word_id>10</word_id>
1912 1941 <id>23</id>
1913 1942 <description></description>
1914 1943 <unique_key_name></unique_key_name>
1915 1944 <logical_name></logical_name>
1916 1945 <physical_name></physical_name>
1917   - <type>integer</type>
  1946 + <type>text</type>
1918 1947 <constraint></constraint>
1919 1948 <default_value></default_value>
1920   - <auto_increment>true</auto_increment>
  1949 + <auto_increment>false</auto_increment>
1921 1950 <foreign_key>false</foreign_key>
1922   - <not_null>true</not_null>
1923   - <primary_key>true</primary_key>
1924   - <unique_key>true</unique_key>
  1951 + <not_null>false</not_null>
  1952 + <primary_key>false</primary_key>
  1953 + <unique_key>false</unique_key>
1925 1954 <character_set></character_set>
1926 1955 <collation></collation>
1927 1956 <sequence>
... ... @@ -1940,7 +1969,7 @@
1940 1969 </sequence>
1941 1970 </normal_column>
1942 1971 <normal_column>
1943   - <word_id>8</word_id>
  1972 + <word_id>14</word_id>
1944 1973 <id>24</id>
1945 1974 <description></description>
1946 1975 <unique_key_name></unique_key_name>
... ... @@ -1972,13 +2001,13 @@
1972 2001 </sequence>
1973 2002 </normal_column>
1974 2003 <normal_column>
1975   - <word_id>33</word_id>
  2004 + <word_id>24</word_id>
1976 2005 <id>25</id>
1977 2006 <description></description>
1978 2007 <unique_key_name></unique_key_name>
1979 2008 <logical_name></logical_name>
1980 2009 <physical_name></physical_name>
1981   - <type>text</type>
  2010 + <type>integer</type>
1982 2011 <constraint></constraint>
1983 2012 <default_value></default_value>
1984 2013 <auto_increment>false</auto_increment>
... ... @@ -2004,7 +2033,7 @@
2004 2033 </sequence>
2005 2034 </normal_column>
2006 2035 <normal_column>
2007   - <word_id>15</word_id>
  2036 + <word_id>12</word_id>
2008 2037 <id>26</id>
2009 2038 <description></description>
2010 2039 <unique_key_name></unique_key_name>
... ... @@ -2036,15 +2065,15 @@
2036 2065 </sequence>
2037 2066 </normal_column>
2038 2067 <normal_column>
2039   - <word_id>0</word_id>
  2068 + <word_id>52</word_id>
2040 2069 <id>27</id>
2041 2070 <description></description>
2042 2071 <unique_key_name></unique_key_name>
2043 2072 <logical_name></logical_name>
2044 2073 <physical_name></physical_name>
2045   - <type>integer</type>
  2074 + <type>text</type>
2046 2075 <constraint></constraint>
2047   - <default_value>0</default_value>
  2076 + <default_value>4326</default_value>
2048 2077 <auto_increment>false</auto_increment>
2049 2078 <foreign_key>false</foreign_key>
2050 2079 <not_null>false</not_null>
... ... @@ -2068,18 +2097,17 @@
2068 2097 </sequence>
2069 2098 </normal_column>
2070 2099 <normal_column>
  2100 + <word_id>9</word_id>
2071 2101 <id>28</id>
2072   - <referenced_column>11</referenced_column>
2073   - <relation>5</relation>
2074 2102 <description></description>
2075 2103 <unique_key_name></unique_key_name>
2076 2104 <logical_name></logical_name>
2077 2105 <physical_name></physical_name>
2078   - <type>integer</type>
  2106 + <type>text</type>
2079 2107 <constraint></constraint>
2080 2108 <default_value></default_value>
2081 2109 <auto_increment>false</auto_increment>
2082   - <foreign_key>true</foreign_key>
  2110 + <foreign_key>false</foreign_key>
2083 2111 <not_null>false</not_null>
2084 2112 <primary_key>false</primary_key>
2085 2113 <unique_key>false</unique_key>
... ... @@ -2109,64 +2137,30 @@
2109 2137 <schema></schema>
2110 2138 </table_properties>
2111 2139 </table>
2112   - <note>
2113   - <id>8</id>
2114   - <height>111</height>
2115   - <width>188</width>
2116   - <font_name>Ubuntu</font_name>
2117   - <font_size>9</font_size>
2118   - <x>748</x>
2119   - <y>594</y>
2120   - <color>
2121   - <r>255</r>
2122   - <g>255</g>
2123   - <b>255</b>
2124   - </color>
2125   - <connections>
2126   - </connections>
2127   - <text>As colunas obtidas da junção de medida_variavel com tipo_regiao podem ser utilizadas para definir uma dimensão</text>
2128   - </note>
2129 2140 <table>
2130 2141 <id>9</id>
2131   - <height>107</height>
2132   - <width>247</width>
  2142 + <height>170</height>
  2143 + <width>292</width>
2133 2144 <font_name>Ubuntu</font_name>
2134 2145 <font_size>9</font_size>
2135   - <x>719</x>
2136   - <y>68</y>
  2146 + <x>8</x>
  2147 + <y>499</y>
2137 2148 <color>
2138   - <r>230</r>
2139   - <g>230</g>
2140   - <b>250</b>
  2149 + <r>255</r>
  2150 + <g>165</g>
  2151 + <b>0</b>
2141 2152 </color>
2142 2153 <connections>
2143   - <relation>
2144   - <id>7</id>
2145   - <source>6</source>
2146   - <target>9</target>
2147   - <child_cardinality>1..n</child_cardinality>
2148   - <parent_cardinality>1</parent_cardinality>
2149   - <reference_for_pk>true</reference_for_pk>
2150   - <name></name>
2151   - <on_delete_action>RESTRICT</on_delete_action>
2152   - <on_update_action>RESTRICT</on_update_action>
2153   - <source_xp>-1</source_xp>
2154   - <source_yp>-1</source_yp>
2155   - <target_xp>-1</target_xp>
2156   - <target_yp>-1</target_yp>
2157   - <referenced_column>null</referenced_column>
2158   - <referenced_complex_unique_key>null</referenced_complex_unique_key>
2159   - </relation>
2160 2154 </connections>
2161   - <physical_name>i3geoestat_classificacao</physical_name>
2162   - <logical_name>i3geoestat_classificacao</logical_name>
2163   - <description>Lista de classificacoes de uma medida de variável</description>
  2155 + <physical_name>i3geoestat_conexao</physical_name>
  2156 + <logical_name>i3geoestat_conexao</logical_name>
  2157 + <description>Lista controlada dos parâmetros de conexão com o banco de dados onde residem dados</description>
2164 2158 <constraint></constraint>
2165 2159 <primary_key_name></primary_key_name>
2166 2160 <option></option>
2167 2161 <columns>
2168 2162 <normal_column>
2169   - <word_id>26</word_id>
  2163 + <word_id>3</word_id>
2170 2164 <id>29</id>
2171 2165 <description></description>
2172 2166 <unique_key_name></unique_key_name>
... ... @@ -2198,7 +2192,7 @@
2198 2192 </sequence>
2199 2193 </normal_column>
2200 2194 <normal_column>
2201   - <word_id>31</word_id>
  2195 + <word_id>2</word_id>
2202 2196 <id>30</id>
2203 2197 <description></description>
2204 2198 <unique_key_name></unique_key_name>
... ... @@ -2230,18 +2224,17 @@
2230 2224 </sequence>
2231 2225 </normal_column>
2232 2226 <normal_column>
  2227 + <word_id>23</word_id>
2233 2228 <id>31</id>
2234   - <referenced_column>11</referenced_column>
2235   - <relation>7</relation>
2236 2229 <description></description>
2237 2230 <unique_key_name></unique_key_name>
2238 2231 <logical_name></logical_name>
2239 2232 <physical_name></physical_name>
2240   - <type>integer</type>
  2233 + <type>text</type>
2241 2234 <constraint></constraint>
2242 2235 <default_value></default_value>
2243 2236 <auto_increment>false</auto_increment>
2244   - <foreign_key>true</foreign_key>
  2237 + <foreign_key>false</foreign_key>
2245 2238 <not_null>false</not_null>
2246 2239 <primary_key>false</primary_key>
2247 2240 <unique_key>false</unique_key>
... ... @@ -2263,7 +2256,7 @@
2263 2256 </sequence>
2264 2257 </normal_column>
2265 2258 <normal_column>
2266   - <word_id>37</word_id>
  2259 + <word_id>48</word_id>
2267 2260 <id>32</id>
2268 2261 <description></description>
2269 2262 <unique_key_name></unique_key_name>
... ... @@ -2294,69 +2287,21 @@
2294 2287 <decimal_size>0</decimal_size>
2295 2288 </sequence>
2296 2289 </normal_column>
2297   - </columns>
2298   - <indexes>
2299   - </indexes>
2300   - <complex_unique_key_list>
2301   - </complex_unique_key_list>
2302   - <table_properties>
2303   - <schema></schema>
2304   - </table_properties>
2305   - </table>
2306   - <table>
2307   - <id>10</id>
2308   - <height>317</height>
2309   - <width>210</width>
2310   - <font_name>Ubuntu</font_name>
2311   - <font_size>9</font_size>
2312   - <x>799</x>
2313   - <y>246</y>
2314   - <color>
2315   - <r>230</r>
2316   - <g>230</g>
2317   - <b>250</b>
2318   - </color>
2319   - <connections>
2320   - <relation>
2321   - <id>8</id>
2322   - <source>9</source>
2323   - <target>10</target>
2324   - <child_cardinality>1..n</child_cardinality>
2325   - <parent_cardinality>1</parent_cardinality>
2326   - <reference_for_pk>true</reference_for_pk>
2327   - <name></name>
2328   - <on_delete_action>RESTRICT</on_delete_action>
2329   - <on_update_action>RESTRICT</on_update_action>
2330   - <source_xp>-1</source_xp>
2331   - <source_yp>-1</source_yp>
2332   - <target_xp>-1</target_xp>
2333   - <target_yp>-1</target_yp>
2334   - <referenced_column>null</referenced_column>
2335   - <referenced_complex_unique_key>null</referenced_complex_unique_key>
2336   - </relation>
2337   - </connections>
2338   - <physical_name>i3geoestat_classes</physical_name>
2339   - <logical_name>i3geoestat_classes</logical_name>
2340   - <description>Classes pertencentes a uma classificação</description>
2341   - <constraint></constraint>
2342   - <primary_key_name></primary_key_name>
2343   - <option></option>
2344   - <columns>
2345 2290 <normal_column>
2346   - <word_id>25</word_id>
  2291 + <word_id>58</word_id>
2347 2292 <id>33</id>
2348 2293 <description></description>
2349 2294 <unique_key_name></unique_key_name>
2350 2295 <logical_name></logical_name>
2351 2296 <physical_name></physical_name>
2352   - <type>integer</type>
  2297 + <type>text</type>
2353 2298 <constraint></constraint>
2354 2299 <default_value></default_value>
2355   - <auto_increment>true</auto_increment>
  2300 + <auto_increment>false</auto_increment>
2356 2301 <foreign_key>false</foreign_key>
2357   - <not_null>true</not_null>
2358   - <primary_key>true</primary_key>
2359   - <unique_key>true</unique_key>
  2302 + <not_null>false</not_null>
  2303 + <primary_key>false</primary_key>
  2304 + <unique_key>false</unique_key>
2360 2305 <character_set></character_set>
2361 2306 <collation></collation>
2362 2307 <sequence>
... ... @@ -2375,7 +2320,7 @@
2375 2320 </sequence>
2376 2321 </normal_column>
2377 2322 <normal_column>
2378   - <word_id>21</word_id>
  2323 + <word_id>49</word_id>
2379 2324 <id>34</id>
2380 2325 <description></description>
2381 2326 <unique_key_name></unique_key_name>
... ... @@ -2406,21 +2351,69 @@
2406 2351 <decimal_size>0</decimal_size>
2407 2352 </sequence>
2408 2353 </normal_column>
  2354 + </columns>
  2355 + <indexes>
  2356 + </indexes>
  2357 + <complex_unique_key_list>
  2358 + </complex_unique_key_list>
  2359 + <table_properties>
  2360 + <schema></schema>
  2361 + </table_properties>
  2362 + </table>
  2363 + <table>
  2364 + <id>10</id>
  2365 + <height>128</height>
  2366 + <width>247</width>
  2367 + <font_name>Ubuntu</font_name>
  2368 + <font_size>9</font_size>
  2369 + <x>673</x>
  2370 + <y>-89</y>
  2371 + <color>
  2372 + <r>230</r>
  2373 + <g>230</g>
  2374 + <b>250</b>
  2375 + </color>
  2376 + <connections>
  2377 + <relation>
  2378 + <id>4</id>
  2379 + <source>13</source>
  2380 + <target>10</target>
  2381 + <child_cardinality>1..n</child_cardinality>
  2382 + <parent_cardinality>1</parent_cardinality>
  2383 + <reference_for_pk>true</reference_for_pk>
  2384 + <name></name>
  2385 + <on_delete_action>RESTRICT</on_delete_action>
  2386 + <on_update_action>RESTRICT</on_update_action>
  2387 + <source_xp>-1</source_xp>
  2388 + <source_yp>-1</source_yp>
  2389 + <target_xp>-1</target_xp>
  2390 + <target_yp>-1</target_yp>
  2391 + <referenced_column>null</referenced_column>
  2392 + <referenced_complex_unique_key>null</referenced_complex_unique_key>
  2393 + </relation>
  2394 + </connections>
  2395 + <physical_name>i3geoestat_classificacao</physical_name>
  2396 + <logical_name>i3geoestat_classificacao</logical_name>
  2397 + <description>Lista de classificacoes de uma medida de variável</description>
  2398 + <constraint></constraint>
  2399 + <primary_key_name></primary_key_name>
  2400 + <option></option>
  2401 + <columns>
2409 2402 <normal_column>
2410   - <word_id>51</word_id>
  2403 + <word_id>26</word_id>
2411 2404 <id>35</id>
2412 2405 <description></description>
2413 2406 <unique_key_name></unique_key_name>
2414 2407 <logical_name></logical_name>
2415 2408 <physical_name></physical_name>
2416   - <type>text</type>
  2409 + <type>integer</type>
2417 2410 <constraint></constraint>
2418 2411 <default_value></default_value>
2419   - <auto_increment>false</auto_increment>
  2412 + <auto_increment>true</auto_increment>
2420 2413 <foreign_key>false</foreign_key>
2421   - <not_null>false</not_null>
2422   - <primary_key>false</primary_key>
2423   - <unique_key>false</unique_key>
  2414 + <not_null>true</not_null>
  2415 + <primary_key>true</primary_key>
  2416 + <unique_key>true</unique_key>
2424 2417 <character_set></character_set>
2425 2418 <collation></collation>
2426 2419 <sequence>
... ... @@ -2439,7 +2432,7 @@
2439 2432 </sequence>
2440 2433 </normal_column>
2441 2434 <normal_column>
2442   - <word_id>54</word_id>
  2435 + <word_id>33</word_id>
2443 2436 <id>36</id>
2444 2437 <description></description>
2445 2438 <unique_key_name></unique_key_name>
... ... @@ -2471,17 +2464,18 @@
2471 2464 </sequence>
2472 2465 </normal_column>
2473 2466 <normal_column>
2474   - <word_id>53</word_id>
2475 2467 <id>37</id>
  2468 + <referenced_column>55</referenced_column>
  2469 + <relation>4</relation>
2476 2470 <description></description>
2477 2471 <unique_key_name></unique_key_name>
2478 2472 <logical_name></logical_name>
2479 2473 <physical_name></physical_name>
2480   - <type>text</type>
  2474 + <type>integer</type>
2481 2475 <constraint></constraint>
2482 2476 <default_value></default_value>
2483 2477 <auto_increment>false</auto_increment>
2484   - <foreign_key>false</foreign_key>
  2478 + <foreign_key>true</foreign_key>
2485 2479 <not_null>false</not_null>
2486 2480 <primary_key>false</primary_key>
2487 2481 <unique_key>false</unique_key>
... ... @@ -2503,7 +2497,7 @@
2503 2497 </sequence>
2504 2498 </normal_column>
2505 2499 <normal_column>
2506   - <word_id>1</word_id>
  2500 + <word_id>42</word_id>
2507 2501 <id>38</id>
2508 2502 <description></description>
2509 2503 <unique_key_name></unique_key_name>
... ... @@ -2534,10 +2528,57 @@
2534 2528 <decimal_size>0</decimal_size>
2535 2529 </sequence>
2536 2530 </normal_column>
  2531 + </columns>
  2532 + <indexes>
  2533 + </indexes>
  2534 + <complex_unique_key_list>
  2535 + </complex_unique_key_list>
  2536 + <table_properties>
  2537 + <schema></schema>
  2538 + </table_properties>
  2539 + </table>
  2540 + <table>
  2541 + <id>11</id>
  2542 + <height>317</height>
  2543 + <width>210</width>
  2544 + <font_name>Ubuntu</font_name>
  2545 + <font_size>9</font_size>
  2546 + <x>1018</x>
  2547 + <y>-24</y>
  2548 + <color>
  2549 + <r>230</r>
  2550 + <g>230</g>
  2551 + <b>250</b>
  2552 + </color>
  2553 + <connections>
  2554 + <relation>
  2555 + <id>5</id>
  2556 + <source>10</source>
  2557 + <target>11</target>
  2558 + <child_cardinality>1..n</child_cardinality>
  2559 + <parent_cardinality>1</parent_cardinality>
  2560 + <reference_for_pk>true</reference_for_pk>
  2561 + <name></name>
  2562 + <on_delete_action>RESTRICT</on_delete_action>
  2563 + <on_update_action>RESTRICT</on_update_action>
  2564 + <source_xp>-1</source_xp>
  2565 + <source_yp>-1</source_yp>
  2566 + <target_xp>-1</target_xp>
  2567 + <target_yp>-1</target_yp>
  2568 + <referenced_column>null</referenced_column>
  2569 + <referenced_complex_unique_key>null</referenced_complex_unique_key>
  2570 + </relation>
  2571 + </connections>
  2572 + <physical_name>i3geoestat_classes</physical_name>
  2573 + <logical_name>i3geoestat_classes</logical_name>
  2574 + <description>Classes pertencentes a uma classificação</description>
  2575 + <constraint></constraint>
  2576 + <primary_key_name></primary_key_name>
  2577 + <option></option>
  2578 + <columns>
2537 2579 <normal_column>
  2580 + <word_id>25</word_id>
2538 2581 <id>39</id>
2539   - <referenced_column>29</referenced_column>
2540   - <relation>8</relation>
2541 2582 <description></description>
2542 2583 <unique_key_name></unique_key_name>
2543 2584 <logical_name></logical_name>
... ... @@ -2545,11 +2586,11 @@
2545 2586 <type>integer</type>
2546 2587 <constraint></constraint>
2547 2588 <default_value></default_value>
2548   - <auto_increment>false</auto_increment>
2549   - <foreign_key>true</foreign_key>
2550   - <not_null>false</not_null>
2551   - <primary_key>false</primary_key>
2552   - <unique_key>false</unique_key>
  2589 + <auto_increment>true</auto_increment>
  2590 + <foreign_key>false</foreign_key>
  2591 + <not_null>true</not_null>
  2592 + <primary_key>true</primary_key>
  2593 + <unique_key>true</unique_key>
2553 2594 <character_set></character_set>
2554 2595 <collation></collation>
2555 2596 <sequence>
... ... @@ -2568,7 +2609,7 @@
2568 2609 </sequence>
2569 2610 </normal_column>
2570 2611 <normal_column>
2571   - <word_id>50</word_id>
  2612 + <word_id>21</word_id>
2572 2613 <id>40</id>
2573 2614 <description></description>
2574 2615 <unique_key_name></unique_key_name>
... ... @@ -2600,7 +2641,7 @@
2600 2641 </sequence>
2601 2642 </normal_column>
2602 2643 <normal_column>
2603   - <word_id>46</word_id>
  2644 + <word_id>56</word_id>
2604 2645 <id>41</id>
2605 2646 <description></description>
2606 2647 <unique_key_name></unique_key_name>
... ... @@ -2632,7 +2673,7 @@
2632 2673 </sequence>
2633 2674 </normal_column>
2634 2675 <normal_column>
2635   - <word_id>40</word_id>
  2676 + <word_id>60</word_id>
2636 2677 <id>42</id>
2637 2678 <description></description>
2638 2679 <unique_key_name></unique_key_name>
... ... @@ -2664,7 +2705,7 @@
2664 2705 </sequence>
2665 2706 </normal_column>
2666 2707 <normal_column>
2667   - <word_id>39</word_id>
  2708 + <word_id>59</word_id>
2668 2709 <id>43</id>
2669 2710 <description></description>
2670 2711 <unique_key_name></unique_key_name>
... ... @@ -2696,7 +2737,7 @@
2696 2737 </sequence>
2697 2738 </normal_column>
2698 2739 <normal_column>
2699   - <word_id>36</word_id>
  2740 + <word_id>1</word_id>
2700 2741 <id>44</id>
2701 2742 <description></description>
2702 2743 <unique_key_name></unique_key_name>
... ... @@ -2728,17 +2769,18 @@
2728 2769 </sequence>
2729 2770 </normal_column>
2730 2771 <normal_column>
2731   - <word_id>38</word_id>
2732 2772 <id>45</id>
  2773 + <referenced_column>35</referenced_column>
  2774 + <relation>5</relation>
2733 2775 <description></description>
2734 2776 <unique_key_name></unique_key_name>
2735 2777 <logical_name></logical_name>
2736 2778 <physical_name></physical_name>
2737   - <type>text</type>
  2779 + <type>integer</type>
2738 2780 <constraint></constraint>
2739 2781 <default_value></default_value>
2740 2782 <auto_increment>false</auto_increment>
2741   - <foreign_key>false</foreign_key>
  2783 + <foreign_key>true</foreign_key>
2742 2784 <not_null>false</not_null>
2743 2785 <primary_key>false</primary_key>
2744 2786 <unique_key>false</unique_key>
... ... @@ -2759,74 +2801,21 @@
2759 2801 <decimal_size>0</decimal_size>
2760 2802 </sequence>
2761 2803 </normal_column>
2762   - </columns>
2763   - <indexes>
2764   - </indexes>
2765   - <complex_unique_key_list>
2766   - </complex_unique_key_list>
2767   - <table_properties>
2768   - <schema></schema>
2769   - </table_properties>
2770   - </table>
2771   - <table>
2772   - <id>11</id>
2773   - <height>275</height>
2774   - <width>292</width>
2775   - <font_name>Ubuntu</font_name>
2776   - <font_size>9</font_size>
2777   - <x>-336</x>
2778   - <y>236</y>
2779   - <color>
2780   - <r>255</r>
2781   - <g>165</g>
2782   - <b>0</b>
2783   - </color>
2784   - <connections>
2785   - <relation>
2786   - <id>9</id>
2787   - <source>12</source>
2788   - <target>11</target>
2789   - <child_cardinality>1..n</child_cardinality>
2790   - <parent_cardinality>1</parent_cardinality>
2791   - <reference_for_pk>true</reference_for_pk>
2792   - <name></name>
2793   - <on_delete_action>RESTRICT</on_delete_action>
2794   - <on_update_action>RESTRICT</on_update_action>
2795   - <source_xp>-1</source_xp>
2796   - <source_yp>-1</source_yp>
2797   - <target_xp>-1</target_xp>
2798   - <target_yp>-1</target_yp>
2799   - <referenced_column>null</referenced_column>
2800   - <referenced_complex_unique_key>null</referenced_complex_unique_key>
2801   - </relation>
2802   - <comment_connection>
2803   - <id>10</id>
2804   - <source>0</source>
2805   - <target>11</target>
2806   - </comment_connection>
2807   - </connections>
2808   - <physical_name>i3geoestat_tipo_regiao</physical_name>
2809   - <logical_name>i3geoestat_tipo_regiao</logical_name>
2810   - <description>Identifica as tabelas que possuem colunas com geometrias de determinado local ou região</description>
2811   - <constraint></constraint>
2812   - <primary_key_name></primary_key_name>
2813   - <option></option>
2814   - <columns>
2815 2804 <normal_column>
2816   - <word_id>5</word_id>
  2805 + <word_id>55</word_id>
2817 2806 <id>46</id>
2818 2807 <description></description>
2819 2808 <unique_key_name></unique_key_name>
2820 2809 <logical_name></logical_name>
2821 2810 <physical_name></physical_name>
2822   - <type>integer</type>
  2811 + <type>text</type>
2823 2812 <constraint></constraint>
2824 2813 <default_value></default_value>
2825   - <auto_increment>true</auto_increment>
  2814 + <auto_increment>false</auto_increment>
2826 2815 <foreign_key>false</foreign_key>
2827   - <not_null>true</not_null>
2828   - <primary_key>true</primary_key>
2829   - <unique_key>true</unique_key>
  2816 + <not_null>false</not_null>
  2817 + <primary_key>false</primary_key>
  2818 + <unique_key>false</unique_key>
2830 2819 <character_set></character_set>
2831 2820 <collation></collation>
2832 2821 <sequence>
... ... @@ -2845,7 +2834,7 @@
2845 2834 </sequence>
2846 2835 </normal_column>
2847 2836 <normal_column>
2848   - <word_id>35</word_id>
  2837 + <word_id>51</word_id>
2849 2838 <id>47</id>
2850 2839 <description></description>
2851 2840 <unique_key_name></unique_key_name>
... ... @@ -2877,7 +2866,7 @@
2877 2866 </sequence>
2878 2867 </normal_column>
2879 2868 <normal_column>
2880   - <word_id>18</word_id>
  2869 + <word_id>45</word_id>
2881 2870 <id>48</id>
2882 2871 <description></description>
2883 2872 <unique_key_name></unique_key_name>
... ... @@ -2909,18 +2898,17 @@
2909 2898 </sequence>
2910 2899 </normal_column>
2911 2900 <normal_column>
  2901 + <word_id>44</word_id>
2912 2902 <id>49</id>
2913   - <referenced_column>58</referenced_column>
2914   - <relation>9</relation>
2915 2903 <description></description>
2916 2904 <unique_key_name></unique_key_name>
2917 2905 <logical_name></logical_name>
2918 2906 <physical_name></physical_name>
2919   - <type>integer</type>
  2907 + <type>text</type>
2920 2908 <constraint></constraint>
2921 2909 <default_value></default_value>
2922 2910 <auto_increment>false</auto_increment>
2923   - <foreign_key>true</foreign_key>
  2911 + <foreign_key>false</foreign_key>
2924 2912 <not_null>false</not_null>
2925 2913 <primary_key>false</primary_key>
2926 2914 <unique_key>false</unique_key>
... ... @@ -2942,7 +2930,7 @@
2942 2930 </sequence>
2943 2931 </normal_column>
2944 2932 <normal_column>
2945   - <word_id>20</word_id>
  2933 + <word_id>41</word_id>
2946 2934 <id>50</id>
2947 2935 <description></description>
2948 2936 <unique_key_name></unique_key_name>
... ... @@ -2974,7 +2962,7 @@
2974 2962 </sequence>
2975 2963 </normal_column>
2976 2964 <normal_column>
2977   - <word_id>49</word_id>
  2965 + <word_id>43</word_id>
2978 2966 <id>51</id>
2979 2967 <description></description>
2980 2968 <unique_key_name></unique_key_name>
... ... @@ -3005,21 +2993,52 @@
3005 2993 <decimal_size>0</decimal_size>
3006 2994 </sequence>
3007 2995 </normal_column>
  2996 + </columns>
  2997 + <indexes>
  2998 + </indexes>
  2999 + <complex_unique_key_list>
  3000 + </complex_unique_key_list>
  3001 + <table_properties>
  3002 + <schema></schema>
  3003 + </table_properties>
  3004 + </table>
  3005 + <table>
  3006 + <id>12</id>
  3007 + <height>107</height>
  3008 + <width>228</width>
  3009 + <font_name>Ubuntu</font_name>
  3010 + <font_size>9</font_size>
  3011 + <x>937</x>
  3012 + <y>321</y>
  3013 + <color>
  3014 + <r>144</r>
  3015 + <g>238</g>
  3016 + <b>144</b>
  3017 + </color>
  3018 + <connections>
  3019 + </connections>
  3020 + <physical_name>i3geoestat_fonteinfo</physical_name>
  3021 + <logical_name>i3geoestat_fonteinfo</logical_name>
  3022 + <description></description>
  3023 + <constraint></constraint>
  3024 + <primary_key_name></primary_key_name>
  3025 + <option></option>
  3026 + <columns>
3008 3027 <normal_column>
3009   - <word_id>10</word_id>
  3028 + <word_id>28</word_id>
3010 3029 <id>52</id>
3011 3030 <description></description>
3012 3031 <unique_key_name></unique_key_name>
3013 3032 <logical_name></logical_name>
3014 3033 <physical_name></physical_name>
3015   - <type>text</type>
  3034 + <type>integer</type>
3016 3035 <constraint></constraint>
3017 3036 <default_value></default_value>
3018   - <auto_increment>false</auto_increment>
  3037 + <auto_increment>true</auto_increment>
3019 3038 <foreign_key>false</foreign_key>
3020   - <not_null>false</not_null>
3021   - <primary_key>false</primary_key>
3022   - <unique_key>false</unique_key>
  3039 + <not_null>true</not_null>
  3040 + <primary_key>true</primary_key>
  3041 + <unique_key>true</unique_key>
3023 3042 <character_set></character_set>
3024 3043 <collation></collation>
3025 3044 <sequence>
... ... @@ -3038,7 +3057,7 @@
3038 3057 </sequence>
3039 3058 </normal_column>
3040 3059 <normal_column>
3041   - <word_id>14</word_id>
  3060 + <word_id>57</word_id>
3042 3061 <id>53</id>
3043 3062 <description></description>
3044 3063 <unique_key_name></unique_key_name>
... ... @@ -3051,7 +3070,7 @@
3051 3070 <foreign_key>false</foreign_key>
3052 3071 <not_null>false</not_null>
3053 3072 <primary_key>false</primary_key>
3054   - <unique_key>false</unique_key>
  3073 + <unique_key>true</unique_key>
3055 3074 <character_set></character_set>
3056 3075 <collation></collation>
3057 3076 <sequence>
... ... @@ -3070,13 +3089,13 @@
3070 3089 </sequence>
3071 3090 </normal_column>
3072 3091 <normal_column>
3073   - <word_id>24</word_id>
  3092 + <word_id>32</word_id>
3074 3093 <id>54</id>
3075 3094 <description></description>
3076 3095 <unique_key_name></unique_key_name>
3077 3096 <logical_name></logical_name>
3078 3097 <physical_name></physical_name>
3079   - <type>integer</type>
  3098 + <type>text</type>
3080 3099 <constraint></constraint>
3081 3100 <default_value></default_value>
3082 3101 <auto_increment>false</auto_increment>
... ... @@ -3101,21 +3120,137 @@
3101 3120 <decimal_size>0</decimal_size>
3102 3121 </sequence>
3103 3122 </normal_column>
  3123 + </columns>
  3124 + <indexes>
  3125 + </indexes>
  3126 + <complex_unique_key_list>
  3127 + </complex_unique_key_list>
  3128 + <table_properties>
  3129 + <schema></schema>
  3130 + </table_properties>
  3131 + </table>
  3132 + <table>
  3133 + <id>13</id>
  3134 + <height>339</height>
  3135 + <width>292</width>
  3136 + <font_name>Ubuntu</font_name>
  3137 + <font_size>9</font_size>
  3138 + <x>353</x>
  3139 + <y>155</y>
  3140 + <color>
  3141 + <r>160</r>
  3142 + <g>32</g>
  3143 + <b>240</b>
  3144 + </color>
  3145 + <connections>
  3146 + <relation>
  3147 + <id>6</id>
  3148 + <source>8</source>
  3149 + <target>13</target>
  3150 + <child_cardinality>1..n</child_cardinality>
  3151 + <parent_cardinality>1</parent_cardinality>
  3152 + <reference_for_pk>true</reference_for_pk>
  3153 + <name></name>
  3154 + <on_delete_action>RESTRICT</on_delete_action>
  3155 + <on_update_action>RESTRICT</on_update_action>
  3156 + <source_xp>-1</source_xp>
  3157 + <source_yp>-1</source_yp>
  3158 + <target_xp>-1</target_xp>
  3159 + <target_yp>-1</target_yp>
  3160 + <referenced_column>null</referenced_column>
  3161 + <referenced_complex_unique_key>null</referenced_complex_unique_key>
  3162 + </relation>
  3163 + <relation>
  3164 + <id>7</id>
  3165 + <source>3</source>
  3166 + <target>13</target>
  3167 + <child_cardinality>1..n</child_cardinality>
  3168 + <parent_cardinality>1</parent_cardinality>
  3169 + <reference_for_pk>true</reference_for_pk>
  3170 + <name></name>
  3171 + <on_delete_action>RESTRICT</on_delete_action>
  3172 + <on_update_action>RESTRICT</on_update_action>
  3173 + <source_xp>-1</source_xp>
  3174 + <source_yp>-1</source_yp>
  3175 + <target_xp>-1</target_xp>
  3176 + <target_yp>-1</target_yp>
  3177 + <referenced_column>null</referenced_column>
  3178 + <referenced_complex_unique_key>null</referenced_complex_unique_key>
  3179 + </relation>
  3180 + <relation>
  3181 + <id>8</id>
  3182 + <source>5</source>
  3183 + <target>13</target>
  3184 + <child_cardinality>1..n</child_cardinality>
  3185 + <parent_cardinality>1</parent_cardinality>
  3186 + <reference_for_pk>true</reference_for_pk>
  3187 + <name></name>
  3188 + <on_delete_action>RESTRICT</on_delete_action>
  3189 + <on_update_action>RESTRICT</on_update_action>
  3190 + <source_xp>-1</source_xp>
  3191 + <source_yp>-1</source_yp>
  3192 + <target_xp>-1</target_xp>
  3193 + <target_yp>-1</target_yp>
  3194 + <referenced_column>null</referenced_column>
  3195 + <referenced_complex_unique_key>null</referenced_complex_unique_key>
  3196 + </relation>
  3197 + <relation>
  3198 + <id>9</id>
  3199 + <source>9</source>
  3200 + <target>13</target>
  3201 + <child_cardinality>1..n</child_cardinality>
  3202 + <parent_cardinality>1</parent_cardinality>
  3203 + <reference_for_pk>true</reference_for_pk>
  3204 + <name></name>
  3205 + <on_delete_action>RESTRICT</on_delete_action>
  3206 + <on_update_action>RESTRICT</on_update_action>
  3207 + <source_xp>-1</source_xp>
  3208 + <source_yp>-1</source_yp>
  3209 + <target_xp>-1</target_xp>
  3210 + <target_yp>-1</target_yp>
  3211 + <referenced_column>null</referenced_column>
  3212 + <referenced_complex_unique_key>null</referenced_complex_unique_key>
  3213 + </relation>
  3214 + <relation>
  3215 + <id>10</id>
  3216 + <source>4</source>
  3217 + <target>13</target>
  3218 + <child_cardinality>1..n</child_cardinality>
  3219 + <parent_cardinality>1</parent_cardinality>
  3220 + <reference_for_pk>true</reference_for_pk>
  3221 + <name></name>
  3222 + <on_delete_action>RESTRICT</on_delete_action>
  3223 + <on_update_action>RESTRICT</on_update_action>
  3224 + <source_xp>-1</source_xp>
  3225 + <source_yp>-1</source_yp>
  3226 + <target_xp>-1</target_xp>
  3227 + <target_yp>-1</target_yp>
  3228 + <referenced_column>null</referenced_column>
  3229 + <referenced_complex_unique_key>null</referenced_complex_unique_key>
  3230 + </relation>
  3231 + </connections>
  3232 + <physical_name>i3geoestat_medida_variavel</physical_name>
  3233 + <logical_name>i3geoestat_medida_variavel</logical_name>
  3234 + <description>Descreve as colunas que contém valores de algum tipo de medida, por exemplo população residente</description>
  3235 + <constraint></constraint>
  3236 + <primary_key_name></primary_key_name>
  3237 + <option></option>
  3238 + <columns>
3104 3239 <normal_column>
3105   - <word_id>12</word_id>
  3240 + <word_id>30</word_id>
3106 3241 <id>55</id>
3107 3242 <description></description>
3108 3243 <unique_key_name></unique_key_name>
3109 3244 <logical_name></logical_name>
3110 3245 <physical_name></physical_name>
3111   - <type>text</type>
  3246 + <type>integer</type>
3112 3247 <constraint></constraint>
3113 3248 <default_value></default_value>
3114   - <auto_increment>false</auto_increment>
  3249 + <auto_increment>true</auto_increment>
3115 3250 <foreign_key>false</foreign_key>
3116   - <not_null>false</not_null>
3117   - <primary_key>false</primary_key>
3118   - <unique_key>false</unique_key>
  3251 + <not_null>true</not_null>
  3252 + <primary_key>true</primary_key>
  3253 + <unique_key>true</unique_key>
3119 3254 <character_set></character_set>
3120 3255 <collation></collation>
3121 3256 <sequence>
... ... @@ -3134,17 +3269,18 @@
3134 3269 </sequence>
3135 3270 </normal_column>
3136 3271 <normal_column>
3137   - <word_id>47</word_id>
3138 3272 <id>56</id>
  3273 + <referenced_column>0</referenced_column>
  3274 + <relation>7</relation>
3139 3275 <description></description>
3140 3276 <unique_key_name></unique_key_name>
3141 3277 <logical_name></logical_name>
3142 3278 <physical_name></physical_name>
3143   - <type>text</type>
  3279 + <type>integer</type>
3144 3280 <constraint></constraint>
3145   - <default_value>4326</default_value>
  3281 + <default_value></default_value>
3146 3282 <auto_increment>false</auto_increment>
3147   - <foreign_key>false</foreign_key>
  3283 + <foreign_key>true</foreign_key>
3148 3284 <not_null>false</not_null>
3149 3285 <primary_key>false</primary_key>
3150 3286 <unique_key>false</unique_key>
... ... @@ -3166,17 +3302,18 @@
3166 3302 </sequence>
3167 3303 </normal_column>
3168 3304 <normal_column>
3169   - <word_id>9</word_id>
3170 3305 <id>57</id>
  3306 + <referenced_column>5</referenced_column>
  3307 + <relation>10</relation>
3171 3308 <description></description>
3172 3309 <unique_key_name></unique_key_name>
3173 3310 <logical_name></logical_name>
3174 3311 <physical_name></physical_name>
3175   - <type>text</type>
  3312 + <type>integer</type>
3176 3313 <constraint></constraint>
3177 3314 <default_value></default_value>
3178 3315 <auto_increment>false</auto_increment>
3179   - <foreign_key>false</foreign_key>
  3316 + <foreign_key>true</foreign_key>
3180 3317 <not_null>false</not_null>
3181 3318 <primary_key>false</primary_key>
3182 3319 <unique_key>false</unique_key>
... ... @@ -3197,40 +3334,10 @@
3197 3334 <decimal_size>0</decimal_size>
3198 3335 </sequence>
3199 3336 </normal_column>
3200   - </columns>
3201   - <indexes>
3202   - </indexes>
3203   - <complex_unique_key_list>
3204   - </complex_unique_key_list>
3205   - <table_properties>
3206   - <schema></schema>
3207   - </table_properties>
3208   - </table>
3209   - <table>
3210   - <id>12</id>
3211   - <height>170</height>
3212   - <width>292</width>
3213   - <font_name>Ubuntu</font_name>
3214   - <font_size>9</font_size>
3215   - <x>8</x>
3216   - <y>499</y>
3217   - <color>
3218   - <r>255</r>
3219   - <g>165</g>
3220   - <b>0</b>
3221   - </color>
3222   - <connections>
3223   - </connections>
3224   - <physical_name>i3geoestat_conexao</physical_name>
3225   - <logical_name>i3geoestat_conexao</logical_name>
3226   - <description>Lista controlada dos parâmetros de conexão com o banco de dados onde residem dados</description>
3227   - <constraint></constraint>
3228   - <primary_key_name></primary_key_name>
3229   - <option></option>
3230   - <columns>
3231 3337 <normal_column>
3232   - <word_id>3</word_id>
3233 3338 <id>58</id>
  3339 + <referenced_column>8</referenced_column>
  3340 + <relation>8</relation>
3234 3341 <description></description>
3235 3342 <unique_key_name></unique_key_name>
3236 3343 <logical_name></logical_name>
... ... @@ -3238,11 +3345,11 @@
3238 3345 <type>integer</type>
3239 3346 <constraint></constraint>
3240 3347 <default_value></default_value>
3241   - <auto_increment>true</auto_increment>
3242   - <foreign_key>false</foreign_key>
3243   - <not_null>true</not_null>
3244   - <primary_key>true</primary_key>
3245   - <unique_key>true</unique_key>
  3348 + <auto_increment>false</auto_increment>
  3349 + <foreign_key>true</foreign_key>
  3350 + <not_null>false</not_null>
  3351 + <primary_key>false</primary_key>
  3352 + <unique_key>false</unique_key>
3246 3353 <character_set></character_set>
3247 3354 <collation></collation>
3248 3355 <sequence>
... ... @@ -3261,17 +3368,18 @@
3261 3368 </sequence>
3262 3369 </normal_column>
3263 3370 <normal_column>
3264   - <word_id>2</word_id>
3265 3371 <id>59</id>
  3372 + <referenced_column>17</referenced_column>
  3373 + <relation>6</relation>
3266 3374 <description></description>
3267 3375 <unique_key_name></unique_key_name>
3268 3376 <logical_name></logical_name>
3269 3377 <physical_name></physical_name>
3270   - <type>text</type>
  3378 + <type>integer</type>
3271 3379 <constraint></constraint>
3272 3380 <default_value></default_value>
3273 3381 <auto_increment>false</auto_increment>
3274   - <foreign_key>false</foreign_key>
  3382 + <foreign_key>true</foreign_key>
3275 3383 <not_null>false</not_null>
3276 3384 <primary_key>false</primary_key>
3277 3385 <unique_key>false</unique_key>
... ... @@ -3293,17 +3401,18 @@
3293 3401 </sequence>
3294 3402 </normal_column>
3295 3403 <normal_column>
3296   - <word_id>23</word_id>
3297 3404 <id>60</id>
  3405 + <referenced_column>29</referenced_column>
  3406 + <relation>9</relation>
3298 3407 <description></description>
3299 3408 <unique_key_name></unique_key_name>
3300 3409 <logical_name></logical_name>
3301 3410 <physical_name></physical_name>
3302   - <type>text</type>
  3411 + <type>integer</type>
3303 3412 <constraint></constraint>
3304 3413 <default_value></default_value>
3305 3414 <auto_increment>false</auto_increment>
3306   - <foreign_key>false</foreign_key>
  3415 + <foreign_key>true</foreign_key>
3307 3416 <not_null>false</not_null>
3308 3417 <primary_key>false</primary_key>
3309 3418 <unique_key>false</unique_key>
... ... @@ -3325,7 +3434,7 @@
3325 3434 </sequence>
3326 3435 </normal_column>
3327 3436 <normal_column>
3328   - <word_id>43</word_id>
  3437 + <word_id>19</word_id>
3329 3438 <id>61</id>
3330 3439 <description></description>
3331 3440 <unique_key_name></unique_key_name>
... ... @@ -3357,7 +3466,7 @@
3357 3466 </sequence>
3358 3467 </normal_column>
3359 3468 <normal_column>
3360   - <word_id>52</word_id>
  3469 + <word_id>53</word_id>
3361 3470 <id>62</id>
3362 3471 <description></description>
3363 3472 <unique_key_name></unique_key_name>
... ... @@ -3389,7 +3498,7 @@
3389 3498 </sequence>
3390 3499 </normal_column>
3391 3500 <normal_column>
3392   - <word_id>44</word_id>
  3501 + <word_id>13</word_id>
3393 3502 <id>63</id>
3394 3503 <description></description>
3395 3504 <unique_key_name></unique_key_name>
... ... @@ -3420,15 +3529,419 @@
3420 3529 <decimal_size>0</decimal_size>
3421 3530 </sequence>
3422 3531 </normal_column>
3423   - </columns>
3424   - <indexes>
3425   - </indexes>
3426   - <complex_unique_key_list>
3427   - </complex_unique_key_list>
3428   - <table_properties>
3429   - <schema></schema>
3430   - </table_properties>
3431   - </table>
  3532 + <normal_column>
  3533 + <word_id>11</word_id>
  3534 + <id>64</id>
  3535 + <description></description>
  3536 + <unique_key_name></unique_key_name>
  3537 + <logical_name></logical_name>
  3538 + <physical_name></physical_name>
  3539 + <type>text</type>
  3540 + <constraint></constraint>
  3541 + <default_value></default_value>
  3542 + <auto_increment>false</auto_increment>
  3543 + <foreign_key>false</foreign_key>
  3544 + <not_null>false</not_null>
  3545 + <primary_key>false</primary_key>
  3546 + <unique_key>false</unique_key>
  3547 + <character_set></character_set>
  3548 + <collation></collation>
  3549 + <sequence>
  3550 + <name></name>
  3551 + <schema></schema>
  3552 + <increment></increment>
  3553 + <min_value></min_value>
  3554 + <max_value></max_value>
  3555 + <start></start>
  3556 + <cache></cache>
  3557 + <cycle>false</cycle>
  3558 + <order>false</order>
  3559 + <description></description>
  3560 + <data_type></data_type>
  3561 + <decimal_size>0</decimal_size>
  3562 + </sequence>
  3563 + </normal_column>
  3564 + <normal_column>
  3565 + <word_id>22</word_id>
  3566 + <id>65</id>
  3567 + <description></description>
  3568 + <unique_key_name></unique_key_name>
  3569 + <logical_name></logical_name>
  3570 + <physical_name></physical_name>
  3571 + <type>text</type>
  3572 + <constraint></constraint>
  3573 + <default_value></default_value>
  3574 + <auto_increment>false</auto_increment>
  3575 + <foreign_key>false</foreign_key>
  3576 + <not_null>false</not_null>
  3577 + <primary_key>false</primary_key>
  3578 + <unique_key>false</unique_key>
  3579 + <character_set></character_set>
  3580 + <collation></collation>
  3581 + <sequence>
  3582 + <name></name>
  3583 + <schema></schema>
  3584 + <increment></increment>
  3585 + <min_value></min_value>
  3586 + <max_value></max_value>
  3587 + <start></start>
  3588 + <cache></cache>
  3589 + <cycle>false</cycle>
  3590 + <order>false</order>
  3591 + <description></description>
  3592 + <data_type></data_type>
  3593 + <decimal_size>0</decimal_size>
  3594 + </sequence>
  3595 + </normal_column>
  3596 + <normal_column>
  3597 + <word_id>39</word_id>
  3598 + <id>66</id>
  3599 + <description></description>
  3600 + <unique_key_name></unique_key_name>
  3601 + <logical_name></logical_name>
  3602 + <physical_name></physical_name>
  3603 + <type>text</type>
  3604 + <constraint></constraint>
  3605 + <default_value></default_value>
  3606 + <auto_increment>false</auto_increment>
  3607 + <foreign_key>false</foreign_key>
  3608 + <not_null>false</not_null>
  3609 + <primary_key>false</primary_key>
  3610 + <unique_key>false</unique_key>
  3611 + <character_set></character_set>
  3612 + <collation></collation>
  3613 + <sequence>
  3614 + <name></name>
  3615 + <schema></schema>
  3616 + <increment></increment>
  3617 + <min_value></min_value>
  3618 + <max_value></max_value>
  3619 + <start></start>
  3620 + <cache></cache>
  3621 + <cycle>false</cycle>
  3622 + <order>false</order>
  3623 + <description></description>
  3624 + <data_type></data_type>
  3625 + <decimal_size>0</decimal_size>
  3626 + </sequence>
  3627 + </normal_column>
  3628 + </columns>
  3629 + <indexes>
  3630 + </indexes>
  3631 + <complex_unique_key_list>
  3632 + </complex_unique_key_list>
  3633 + <table_properties>
  3634 + <schema></schema>
  3635 + </table_properties>
  3636 + </table>
  3637 + <table>
  3638 + <id>14</id>
  3639 + <height>128</height>
  3640 + <width>269</width>
  3641 + <font_name>Ubuntu</font_name>
  3642 + <font_size>9</font_size>
  3643 + <x>753</x>
  3644 + <y>442</y>
  3645 + <color>
  3646 + <r>230</r>
  3647 + <g>230</g>
  3648 + <b>250</b>
  3649 + </color>
  3650 + <connections>
  3651 + <relation>
  3652 + <id>11</id>
  3653 + <source>13</source>
  3654 + <target>14</target>
  3655 + <child_cardinality>1..n</child_cardinality>
  3656 + <parent_cardinality>1</parent_cardinality>
  3657 + <reference_for_pk>true</reference_for_pk>
  3658 + <name></name>
  3659 + <on_delete_action>RESTRICT</on_delete_action>
  3660 + <on_update_action>RESTRICT</on_update_action>
  3661 + <source_xp>-1</source_xp>
  3662 + <source_yp>-1</source_yp>
  3663 + <target_xp>-1</target_xp>
  3664 + <target_yp>-1</target_yp>
  3665 + <referenced_column>null</referenced_column>
  3666 + <referenced_complex_unique_key>null</referenced_complex_unique_key>
  3667 + </relation>
  3668 + </connections>
  3669 + <physical_name>i3geoestat_medida_variavel_link</physical_name>
  3670 + <logical_name>i3geoestat_medida_variavel_link</logical_name>
  3671 + <description></description>
  3672 + <constraint></constraint>
  3673 + <primary_key_name></primary_key_name>
  3674 + <option></option>
  3675 + <columns>
  3676 + <normal_column>
  3677 + <word_id>31</word_id>
  3678 + <id>67</id>
  3679 + <description></description>
  3680 + <unique_key_name></unique_key_name>
  3681 + <logical_name></logical_name>
  3682 + <physical_name></physical_name>
  3683 + <type>text</type>
  3684 + <constraint></constraint>
  3685 + <default_value></default_value>
  3686 + <auto_increment>false</auto_increment>
  3687 + <foreign_key>false</foreign_key>
  3688 + <not_null>false</not_null>
  3689 + <primary_key>false</primary_key>
  3690 + <unique_key>false</unique_key>
  3691 + <character_set></character_set>
  3692 + <collation></collation>
  3693 + <sequence>
  3694 + <name></name>
  3695 + <schema></schema>
  3696 + <increment></increment>
  3697 + <min_value></min_value>
  3698 + <max_value></max_value>
  3699 + <start></start>
  3700 + <cache></cache>
  3701 + <cycle>false</cycle>
  3702 + <order>false</order>
  3703 + <description></description>
  3704 + <data_type></data_type>
  3705 + <decimal_size>0</decimal_size>
  3706 + </sequence>
  3707 + </normal_column>
  3708 + <normal_column>
  3709 + <id>68</id>
  3710 + <referenced_column>55</referenced_column>
  3711 + <relation>11</relation>
  3712 + <description></description>
  3713 + <unique_key_name></unique_key_name>
  3714 + <logical_name></logical_name>
  3715 + <physical_name></physical_name>
  3716 + <type>integer</type>
  3717 + <constraint></constraint>
  3718 + <default_value></default_value>
  3719 + <auto_increment>false</auto_increment>
  3720 + <foreign_key>true</foreign_key>
  3721 + <not_null>false</not_null>
  3722 + <primary_key>false</primary_key>
  3723 + <unique_key>false</unique_key>
  3724 + <character_set></character_set>
  3725 + <collation></collation>
  3726 + <sequence>
  3727 + <name></name>
  3728 + <schema></schema>
  3729 + <increment></increment>
  3730 + <min_value></min_value>
  3731 + <max_value></max_value>
  3732 + <start></start>
  3733 + <cache></cache>
  3734 + <cycle>false</cycle>
  3735 + <order>false</order>
  3736 + <description></description>
  3737 + <data_type></data_type>
  3738 + <decimal_size>0</decimal_size>
  3739 + </sequence>
  3740 + </normal_column>
  3741 + <normal_column>
  3742 + <word_id>37</word_id>
  3743 + <id>69</id>
  3744 + <description></description>
  3745 + <unique_key_name></unique_key_name>
  3746 + <logical_name></logical_name>
  3747 + <physical_name></physical_name>
  3748 + <type>text</type>
  3749 + <constraint></constraint>
  3750 + <default_value></default_value>
  3751 + <auto_increment>false</auto_increment>
  3752 + <foreign_key>false</foreign_key>
  3753 + <not_null>false</not_null>
  3754 + <primary_key>false</primary_key>
  3755 + <unique_key>false</unique_key>
  3756 + <character_set></character_set>
  3757 + <collation></collation>
  3758 + <sequence>
  3759 + <name></name>
  3760 + <schema></schema>
  3761 + <increment></increment>
  3762 + <min_value></min_value>
  3763 + <max_value></max_value>
  3764 + <start></start>
  3765 + <cache></cache>
  3766 + <cycle>false</cycle>
  3767 + <order>false</order>
  3768 + <description></description>
  3769 + <data_type></data_type>
  3770 + <decimal_size>0</decimal_size>
  3771 + </sequence>
  3772 + </normal_column>
  3773 + <normal_column>
  3774 + <word_id>29</word_id>
  3775 + <id>70</id>
  3776 + <description></description>
  3777 + <unique_key_name></unique_key_name>
  3778 + <logical_name></logical_name>
  3779 + <physical_name></physical_name>
  3780 + <type>integer</type>
  3781 + <constraint></constraint>
  3782 + <default_value></default_value>
  3783 + <auto_increment>true</auto_increment>
  3784 + <foreign_key>false</foreign_key>
  3785 + <not_null>true</not_null>
  3786 + <primary_key>true</primary_key>
  3787 + <unique_key>true</unique_key>
  3788 + <character_set></character_set>
  3789 + <collation></collation>
  3790 + <sequence>
  3791 + <name></name>
  3792 + <schema></schema>
  3793 + <increment></increment>
  3794 + <min_value></min_value>
  3795 + <max_value></max_value>
  3796 + <start></start>
  3797 + <cache></cache>
  3798 + <cycle>false</cycle>
  3799 + <order>false</order>
  3800 + <description></description>
  3801 + <data_type></data_type>
  3802 + <decimal_size>0</decimal_size>
  3803 + </sequence>
  3804 + </normal_column>
  3805 + </columns>
  3806 + <indexes>
  3807 + </indexes>
  3808 + <complex_unique_key_list>
  3809 + </complex_unique_key_list>
  3810 + <table_properties>
  3811 + <schema></schema>
  3812 + </table_properties>
  3813 + </table>
  3814 + <table>
  3815 + <id>15</id>
  3816 + <height>86</height>
  3817 + <width>269</width>
  3818 + <font_name>Ubuntu</font_name>
  3819 + <font_size>9</font_size>
  3820 + <x>705</x>
  3821 + <y>152</y>
  3822 + <color>
  3823 + <r>144</r>
  3824 + <g>238</g>
  3825 + <b>144</b>
  3826 + </color>
  3827 + <connections>
  3828 + <relation>
  3829 + <id>12</id>
  3830 + <source>13</source>
  3831 + <target>15</target>
  3832 + <child_cardinality>1..n</child_cardinality>
  3833 + <parent_cardinality>1</parent_cardinality>
  3834 + <reference_for_pk>true</reference_for_pk>
  3835 + <name></name>
  3836 + <on_delete_action>RESTRICT</on_delete_action>
  3837 + <on_update_action>RESTRICT</on_update_action>
  3838 + <source_xp>-1</source_xp>
  3839 + <source_yp>-1</source_yp>
  3840 + <target_xp>-1</target_xp>
  3841 + <target_yp>-1</target_yp>
  3842 + <referenced_column>null</referenced_column>
  3843 + <referenced_complex_unique_key>null</referenced_complex_unique_key>
  3844 + </relation>
  3845 + <relation>
  3846 + <id>13</id>
  3847 + <source>12</source>
  3848 + <target>15</target>
  3849 + <child_cardinality>1..n</child_cardinality>
  3850 + <parent_cardinality>1</parent_cardinality>
  3851 + <reference_for_pk>true</reference_for_pk>
  3852 + <name></name>
  3853 + <on_delete_action>RESTRICT</on_delete_action>
  3854 + <on_update_action>RESTRICT</on_update_action>
  3855 + <source_xp>-1</source_xp>
  3856 + <source_yp>-1</source_yp>
  3857 + <target_xp>-1</target_xp>
  3858 + <target_yp>-1</target_yp>
  3859 + <referenced_column>null</referenced_column>
  3860 + <referenced_complex_unique_key>null</referenced_complex_unique_key>
  3861 + </relation>
  3862 + </connections>
  3863 + <physical_name>i3geoestat_fonteinfo_medida</physical_name>
  3864 + <logical_name>i3geoestat_fonteinfo_medida</logical_name>
  3865 + <description></description>
  3866 + <constraint></constraint>
  3867 + <primary_key_name></primary_key_name>
  3868 + <option></option>
  3869 + <columns>
  3870 + <normal_column>
  3871 + <id>71</id>
  3872 + <referenced_column>55</referenced_column>
  3873 + <relation>12</relation>
  3874 + <description></description>
  3875 + <unique_key_name></unique_key_name>
  3876 + <logical_name></logical_name>
  3877 + <physical_name></physical_name>
  3878 + <type>integer</type>
  3879 + <constraint></constraint>
  3880 + <default_value></default_value>
  3881 + <auto_increment>false</auto_increment>
  3882 + <foreign_key>true</foreign_key>
  3883 + <not_null>true</not_null>
  3884 + <primary_key>false</primary_key>
  3885 + <unique_key>false</unique_key>
  3886 + <character_set></character_set>
  3887 + <collation></collation>
  3888 + <sequence>
  3889 + <name></name>
  3890 + <schema></schema>
  3891 + <increment></increment>
  3892 + <min_value></min_value>
  3893 + <max_value></max_value>
  3894 + <start></start>
  3895 + <cache></cache>
  3896 + <cycle>false</cycle>
  3897 + <order>false</order>
  3898 + <description></description>
  3899 + <data_type></data_type>
  3900 + <decimal_size>0</decimal_size>
  3901 + </sequence>
  3902 + </normal_column>
  3903 + <normal_column>
  3904 + <id>72</id>
  3905 + <referenced_column>52</referenced_column>
  3906 + <relation>13</relation>
  3907 + <description></description>
  3908 + <unique_key_name></unique_key_name>
  3909 + <logical_name></logical_name>
  3910 + <physical_name></physical_name>
  3911 + <type>integer</type>
  3912 + <constraint></constraint>
  3913 + <default_value></default_value>
  3914 + <auto_increment>false</auto_increment>
  3915 + <foreign_key>true</foreign_key>
  3916 + <not_null>true</not_null>
  3917 + <primary_key>false</primary_key>
  3918 + <unique_key>false</unique_key>
  3919 + <character_set></character_set>
  3920 + <collation></collation>
  3921 + <sequence>
  3922 + <name></name>
  3923 + <schema></schema>
  3924 + <increment></increment>
  3925 + <min_value></min_value>
  3926 + <max_value></max_value>
  3927 + <start></start>
  3928 + <cache></cache>
  3929 + <cycle>false</cycle>
  3930 + <order>false</order>
  3931 + <description></description>
  3932 + <data_type></data_type>
  3933 + <decimal_size>0</decimal_size>
  3934 + </sequence>
  3935 + </normal_column>
  3936 + </columns>
  3937 + <indexes>
  3938 + </indexes>
  3939 + <complex_unique_key_list>
  3940 + </complex_unique_key_list>
  3941 + <table_properties>
  3942 + <schema></schema>
  3943 + </table_properties>
  3944 + </table>
3432 3945 </contents>
3433 3946 <column_groups>
3434 3947 </column_groups>
... ... @@ -3437,31 +3950,31 @@
3437 3950 <name>metaestat_basededados</name>
3438 3951 <export_order>0</export_order>
3439 3952 <table_test_data>
3440   - <table_id>12</table_id>
  3953 + <table_id>9</table_id>
3441 3954 <direct_test_data>
3442 3955 <data>
3443 3956 <column_data>
3444   - <column_id>58</column_id>
  3957 + <column_id>29</column_id>
3445 3958 <value>1</value>
3446 3959 </column_data>
3447 3960 <column_data>
3448   - <column_id>59</column_id>
  3961 + <column_id>30</column_id>
3449 3962 <value>dbspo</value>
3450 3963 </column_data>
3451 3964 <column_data>
3452   - <column_id>60</column_id>
  3965 + <column_id>31</column_id>
3453 3966 <value>localhost</value>
3454 3967 </column_data>
3455 3968 <column_data>
3456   - <column_id>61</column_id>
  3969 + <column_id>32</column_id>
3457 3970 <value>5432</value>
3458 3971 </column_data>
3459 3972 <column_data>
3460   - <column_id>62</column_id>
  3973 + <column_id>33</column_id>
3461 3974 <value>postgres</value>
3462 3975 </column_data>
3463 3976 <column_data>
3464   - <column_id>63</column_id>
  3977 + <column_id>34</column_id>
3465 3978 <value>postgres</value>
3466 3979 </column_data>
3467 3980 </data>
... ... @@ -3470,7 +3983,7 @@
3470 3983 <test_data_num>0</test_data_num>
3471 3984 <data_def_list>
3472 3985 <data_def>
3473   - <column_id>58</column_id>
  3986 + <column_id>29</column_id>
3474 3987 <type>Format</type>
3475 3988 <repeat_num>1</repeat_num>
3476 3989 <template>%</template>
... ... @@ -3485,7 +3998,7 @@
3485 3998 </modified_values>
3486 3999 </data_def>
3487 4000 <data_def>
3488   - <column_id>59</column_id>
  4001 + <column_id>30</column_id>
3489 4002 <type>Format</type>
3490 4003 <repeat_num>1</repeat_num>
3491 4004 <template>database%</template>
... ... @@ -3500,7 +4013,7 @@
3500 4013 </modified_values>
3501 4014 </data_def>
3502 4015 <data_def>
3503   - <column_id>60</column_id>
  4016 + <column_id>31</column_id>
3504 4017 <type>Format</type>
3505 4018 <repeat_num>1</repeat_num>
3506 4019 <template>host%</template>
... ... @@ -3515,7 +4028,7 @@
3515 4028 </modified_values>
3516 4029 </data_def>
3517 4030 <data_def>
3518   - <column_id>61</column_id>
  4031 + <column_id>32</column_id>
3519 4032 <type>Format</type>
3520 4033 <repeat_num>1</repeat_num>
3521 4034 <template>porta%</template>
... ... @@ -3530,7 +4043,7 @@
3530 4043 </modified_values>
3531 4044 </data_def>
3532 4045 <data_def>
3533   - <column_id>62</column_id>
  4046 + <column_id>33</column_id>
3534 4047 <type>Format</type>
3535 4048 <repeat_num>1</repeat_num>
3536 4049 <template>usuario%</template>
... ... @@ -3545,7 +4058,7 @@
3545 4058 </modified_values>
3546 4059 </data_def>
3547 4060 <data_def>
3548   - <column_id>63</column_id>
  4061 + <column_id>34</column_id>
3549 4062 <type>Format</type>
3550 4063 <repeat_num>1</repeat_num>
3551 4064 <template>senha%</template>
... ... @@ -3646,55 +4159,55 @@
3646 4159 </repeat_test_data>
3647 4160 </table_test_data>
3648 4161 <table_test_data>
3649   - <table_id>11</table_id>
  4162 + <table_id>8</table_id>
3650 4163 <direct_test_data>
3651 4164 <data>
3652 4165 <column_data>
3653   - <column_id>46</column_id>
  4166 + <column_id>17</column_id>
3654 4167 <value>1</value>
3655 4168 </column_data>
3656 4169 <column_data>
3657   - <column_id>47</column_id>
  4170 + <column_id>18</column_id>
3658 4171 <value>Município</value>
3659 4172 </column_data>
3660 4173 <column_data>
3661   - <column_id>48</column_id>
  4174 + <column_id>19</column_id>
3662 4175 <value>Limites municipais</value>
3663 4176 </column_data>
3664 4177 <column_data>
3665   - <column_id>49</column_id>
  4178 + <column_id>20</column_id>
3666 4179 <value>1</value>
3667 4180 </column_data>
3668 4181 <column_data>
3669   - <column_id>50</column_id>
  4182 + <column_id>21</column_id>
3670 4183 <value>public</value>
3671 4184 </column_data>
3672 4185 <column_data>
3673   - <column_id>51</column_id>
  4186 + <column_id>22</column_id>
3674 4187 <value>tb_ibge</value>
3675 4188 </column_data>
3676 4189 <column_data>
3677   - <column_id>52</column_id>
  4190 + <column_id>23</column_id>
3678 4191 <value>the_geom</value>
3679 4192 </column_data>
3680 4193 <column_data>
3681   - <column_id>53</column_id>
  4194 + <column_id>24</column_id>
3682 4195 <value></value>
3683 4196 </column_data>
3684 4197 <column_data>
3685   - <column_id>54</column_id>
  4198 + <column_id>25</column_id>
3686 4199 <value>ibge</value>
3687 4200 </column_data>
3688 4201 <column_data>
3689   - <column_id>55</column_id>
  4202 + <column_id>26</column_id>
3690 4203 <value>no_cidade</value>
3691 4204 </column_data>
3692 4205 <column_data>
3693   - <column_id>56</column_id>
  4206 + <column_id>27</column_id>
3694 4207 <value>4326</value>
3695 4208 </column_data>
3696 4209 <column_data>
3697   - <column_id>57</column_id>
  4210 + <column_id>28</column_id>
3698 4211 <value>the_geom2</value>
3699 4212 </column_data>
3700 4213 </data>
... ... @@ -3703,7 +4216,7 @@
3703 4216 <test_data_num>0</test_data_num>
3704 4217 <data_def_list>
3705 4218 <data_def>
3706   - <column_id>46</column_id>
  4219 + <column_id>17</column_id>
3707 4220 <type>Format</type>
3708 4221 <repeat_num>1</repeat_num>
3709 4222 <template>%</template>
... ... @@ -3718,7 +4231,7 @@
3718 4231 </modified_values>
3719 4232 </data_def>
3720 4233 <data_def>
3721   - <column_id>47</column_id>
  4234 + <column_id>18</column_id>
3722 4235 <type>Format</type>
3723 4236 <repeat_num>1</repeat_num>
3724 4237 <template>nome_tipo_regiao%</template>
... ... @@ -3733,7 +4246,7 @@
3733 4246 </modified_values>
3734 4247 </data_def>
3735 4248 <data_def>
3736   - <column_id>48</column_id>
  4249 + <column_id>19</column_id>
3737 4250 <type>Format</type>
3738 4251 <repeat_num>1</repeat_num>
3739 4252 <template>descricao_tipo_regiao%</template>
... ... @@ -3748,7 +4261,7 @@
3748 4261 </modified_values>
3749 4262 </data_def>
3750 4263 <data_def>
3751   - <column_id>49</column_id>
  4264 + <column_id>20</column_id>
3752 4265 <type>Foreign Key</type>
3753 4266 <repeat_num>1</repeat_num>
3754 4267 <template>%</template>
... ... @@ -3763,7 +4276,7 @@
3763 4276 </modified_values>
3764 4277 </data_def>
3765 4278 <data_def>
3766   - <column_id>50</column_id>
  4279 + <column_id>21</column_id>
3767 4280 <type>Format</type>
3768 4281 <repeat_num>1</repeat_num>
3769 4282 <template>esquemadb%</template>
... ... @@ -3778,7 +4291,7 @@
3778 4291 </modified_values>
3779 4292 </data_def>
3780 4293 <data_def>
3781   - <column_id>51</column_id>
  4294 + <column_id>22</column_id>
3782 4295 <type>Format</type>
3783 4296 <repeat_num>1</repeat_num>
3784 4297 <template>tabela%</template>
... ... @@ -3793,7 +4306,7 @@
3793 4306 </modified_values>
3794 4307 </data_def>
3795 4308 <data_def>
3796   - <column_id>52</column_id>
  4309 + <column_id>23</column_id>
3797 4310 <type>Format</type>
3798 4311 <repeat_num>1</repeat_num>
3799 4312 <template>colunageo%</template>
... ... @@ -3808,7 +4321,7 @@
3808 4321 </modified_values>
3809 4322 </data_def>
3810 4323 <data_def>
3811   - <column_id>53</column_id>
  4324 + <column_id>24</column_id>
3812 4325 <type>Format</type>
3813 4326 <repeat_num>1</repeat_num>
3814 4327 <template>data%</template>
... ... @@ -3823,7 +4336,7 @@
3823 4336 </modified_values>
3824 4337 </data_def>
3825 4338 <data_def>
3826   - <column_id>54</column_id>
  4339 + <column_id>25</column_id>
3827 4340 <type>Format</type>
3828 4341 <repeat_num>1</repeat_num>
3829 4342 <template>%</template>
... ... @@ -3838,7 +4351,7 @@
3838 4351 </modified_values>
3839 4352 </data_def>
3840 4353 <data_def>
3841   - <column_id>55</column_id>
  4354 + <column_id>26</column_id>
3842 4355 <type>Format</type>
3843 4356 <repeat_num>1</repeat_num>
3844 4357 <template>colunanomeregiao%</template>
... ... @@ -3853,7 +4366,7 @@
3853 4366 </modified_values>
3854 4367 </data_def>
3855 4368 <data_def>
3856   - <column_id>56</column_id>
  4369 + <column_id>27</column_id>
3857 4370 <type>Format</type>
3858 4371 <repeat_num>1</repeat_num>
3859 4372 <template>srid%</template>
... ... @@ -3868,7 +4381,7 @@
3868 4381 </modified_values>
3869 4382 </data_def>
3870 4383 <data_def>
3871   - <column_id>57</column_id>
  4384 + <column_id>28</column_id>
3872 4385 <type>Format</type>
3873 4386 <repeat_num>1</repeat_num>
3874 4387 <template>colunacentroide%</template>
... ... @@ -3993,55 +4506,55 @@
3993 4506 </repeat_test_data>
3994 4507 </table_test_data>
3995 4508 <table_test_data>
3996   - <table_id>6</table_id>
  4509 + <table_id>13</table_id>
3997 4510 <direct_test_data>
3998 4511 <data>
3999 4512 <column_data>
4000   - <column_id>11</column_id>
  4513 + <column_id>55</column_id>
4001 4514 <value>1</value>
4002 4515 </column_data>
4003 4516 <column_data>
4004   - <column_id>12</column_id>
  4517 + <column_id>56</column_id>
4005 4518 <value>1</value>
4006 4519 </column_data>
4007 4520 <column_data>
4008   - <column_id>13</column_id>
  4521 + <column_id>57</column_id>
4009 4522 <value>2</value>
4010 4523 </column_data>
4011 4524 <column_data>
4012   - <column_id>14</column_id>
  4525 + <column_id>58</column_id>
4013 4526 <value>1</value>
4014 4527 </column_data>
4015 4528 <column_data>
4016   - <column_id>15</column_id>
  4529 + <column_id>59</column_id>
4017 4530 <value>1</value>
4018 4531 </column_data>
4019 4532 <column_data>
4020   - <column_id>16</column_id>
  4533 + <column_id>60</column_id>
4021 4534 <value>1</value>
4022 4535 </column_data>
4023 4536 <column_data>
4024   - <column_id>17</column_id>
  4537 + <column_id>61</column_id>
4025 4538 <value>dbacoes_saude</value>
4026 4539 </column_data>
4027 4540 <column_data>
4028   - <column_id>18</column_id>
  4541 + <column_id>62</column_id>
4029 4542 <value>tb_farmacia_pop</value>
4030 4543 </column_data>
4031 4544 <column_data>
4032   - <column_id>19</column_id>
  4545 + <column_id>63</column_id>
4033 4546 <value>nu_farm_funcionando</value>
4034 4547 </column_data>
4035 4548 <column_data>
4036   - <column_id>20</column_id>
  4549 + <column_id>64</column_id>
4037 4550 <value>co_ibge</value>
4038 4551 </column_data>
4039 4552 <column_data>
4040   - <column_id>21</column_id>
  4553 + <column_id>65</column_id>
4041 4554 <value></value>
4042 4555 </column_data>
4043 4556 <column_data>
4044   - <column_id>22</column_id>
  4557 + <column_id>66</column_id>
4045 4558 <value>Número de farmácias em funcionamento por mês e ano</value>
4046 4559 </column_data>
4047 4560 </data>
... ... @@ -4050,7 +4563,7 @@
4050 4563 <test_data_num>0</test_data_num>
4051 4564 <data_def_list>
4052 4565 <data_def>
4053   - <column_id>11</column_id>
  4566 + <column_id>55</column_id>
4054 4567 <type>Format</type>
4055 4568 <repeat_num>1</repeat_num>
4056 4569 <template>%</template>
... ... @@ -4065,7 +4578,7 @@
4065 4578 </modified_values>
4066 4579 </data_def>
4067 4580 <data_def>
4068   - <column_id>12</column_id>
  4581 + <column_id>56</column_id>
4069 4582 <type>Foreign Key</type>
4070 4583 <repeat_num>1</repeat_num>
4071 4584 <template>%</template>
... ... @@ -4080,7 +4593,7 @@
4080 4593 </modified_values>
4081 4594 </data_def>
4082 4595 <data_def>
4083   - <column_id>13</column_id>
  4596 + <column_id>57</column_id>
4084 4597 <type>Foreign Key</type>
4085 4598 <repeat_num>1</repeat_num>
4086 4599 <template>%</template>
... ... @@ -4095,7 +4608,7 @@
4095 4608 </modified_values>
4096 4609 </data_def>
4097 4610 <data_def>
4098   - <column_id>14</column_id>
  4611 + <column_id>58</column_id>
4099 4612 <type>Foreign Key</type>
4100 4613 <repeat_num>1</repeat_num>
4101 4614 <template>%</template>
... ... @@ -4110,7 +4623,7 @@
4110 4623 </modified_values>
4111 4624 </data_def>
4112 4625 <data_def>
4113   - <column_id>15</column_id>
  4626 + <column_id>59</column_id>
4114 4627 <type>Foreign Key</type>
4115 4628 <repeat_num>1</repeat_num>
4116 4629 <template>%</template>
... ... @@ -4125,7 +4638,7 @@
4125 4638 </modified_values>
4126 4639 </data_def>
4127 4640 <data_def>
4128   - <column_id>16</column_id>
  4641 + <column_id>60</column_id>
4129 4642 <type>Foreign Key</type>
4130 4643 <repeat_num>1</repeat_num>
4131 4644 <template>%</template>
... ... @@ -4140,7 +4653,7 @@
4140 4653 </modified_values>
4141 4654 </data_def>
4142 4655 <data_def>
4143   - <column_id>17</column_id>
  4656 + <column_id>61</column_id>
4144 4657 <type>Format</type>
4145 4658 <repeat_num>1</repeat_num>
4146 4659 <template>esquemadb%</template>
... ... @@ -4155,7 +4668,7 @@
4155 4668 </modified_values>
4156 4669 </data_def>
4157 4670 <data_def>
4158   - <column_id>18</column_id>
  4671 + <column_id>62</column_id>
4159 4672 <type>Format</type>
4160 4673 <repeat_num>1</repeat_num>
4161 4674 <template>tabela%</template>
... ... @@ -4170,7 +4683,7 @@
4170 4683 </modified_values>
4171 4684 </data_def>
4172 4685 <data_def>
4173   - <column_id>19</column_id>
  4686 + <column_id>63</column_id>
4174 4687 <type>Format</type>
4175 4688 <repeat_num>1</repeat_num>
4176 4689 <template>colunavalor%</template>
... ... @@ -4185,7 +4698,7 @@
4185 4698 </modified_values>
4186 4699 </data_def>
4187 4700 <data_def>
4188   - <column_id>20</column_id>
  4701 + <column_id>64</column_id>
4189 4702 <type>Format</type>
4190 4703 <repeat_num>1</repeat_num>
4191 4704 <template>colunaidgeo_%</template>
... ... @@ -4200,7 +4713,7 @@
4200 4713 </modified_values>
4201 4714 </data_def>
4202 4715 <data_def>
4203   - <column_id>21</column_id>
  4716 + <column_id>65</column_id>
4204 4717 <type>Format</type>
4205 4718 <repeat_num>1</repeat_num>
4206 4719 <template>filtro%</template>
... ... @@ -4215,7 +4728,7 @@
4215 4728 </modified_values>
4216 4729 </data_def>
4217 4730 <data_def>
4218   - <column_id>22</column_id>
  4731 + <column_id>66</column_id>
4219 4732 <type>Format</type>
4220 4733 <repeat_num>1</repeat_num>
4221 4734 <template>nomemedida_%</template>
... ... @@ -4233,57 +4746,57 @@
4233 4746 </repeat_test_data>
4234 4747 </table_test_data>
4235 4748 <table_test_data>
4236   - <table_id>7</table_id>
  4749 + <table_id>6</table_id>
4237 4750 <direct_test_data>
4238 4751 <data>
4239 4752 <column_data>
4240   - <column_id>23</column_id>
  4753 + <column_id>11</column_id>
4241 4754 <value>1</value>
4242 4755 </column_data>
4243 4756 <column_data>
4244   - <column_id>24</column_id>
  4757 + <column_id>12</column_id>
4245 4758 <value>to_date(mes_farm_pop||&apos; &apos;||ano_farm,&apos;MM YYYY&apos;) as mes</value>
4246 4759 </column_data>
4247 4760 <column_data>
4248   - <column_id>25</column_id>
  4761 + <column_id>13</column_id>
4249 4762 <value>mês e ano</value>
4250 4763 </column_data>
4251 4764 <column_data>
4252   - <column_id>26</column_id>
  4765 + <column_id>14</column_id>
4253 4766 <value></value>
4254 4767 </column_data>
4255 4768 <column_data>
4256   - <column_id>27</column_id>
  4769 + <column_id>15</column_id>
4257 4770 <value>0</value>
4258 4771 </column_data>
4259 4772 <column_data>
4260   - <column_id>28</column_id>
  4773 + <column_id>16</column_id>
4261 4774 <value>1</value>
4262 4775 </column_data>
4263 4776 </data>
4264 4777 <data>
4265 4778 <column_data>
4266   - <column_id>23</column_id>
  4779 + <column_id>11</column_id>
4267 4780 <value>2</value>
4268 4781 </column_data>
4269 4782 <column_data>
4270   - <column_id>24</column_id>
  4783 + <column_id>12</column_id>
4271 4784 <value>ano_farm</value>
4272 4785 </column_data>
4273 4786 <column_data>
4274   - <column_id>25</column_id>
  4787 + <column_id>13</column_id>
4275 4788 <value>ano</value>
4276 4789 </column_data>
4277 4790 <column_data>
4278   - <column_id>26</column_id>
  4791 + <column_id>14</column_id>
4279 4792 <value></value>
4280 4793 </column_data>
4281 4794 <column_data>
4282   - <column_id>27</column_id>
  4795 + <column_id>15</column_id>
4283 4796 <value>1</value>
4284 4797 </column_data>
4285 4798 <column_data>
4286   - <column_id>28</column_id>
  4799 + <column_id>16</column_id>
4287 4800 <value>1</value>
4288 4801 </column_data>
4289 4802 </data>
... ... @@ -4292,7 +4805,7 @@
4292 4805 <test_data_num>0</test_data_num>
4293 4806 <data_def_list>
4294 4807 <data_def>
4295   - <column_id>23</column_id>
  4808 + <column_id>11</column_id>
4296 4809 <type>Format</type>
4297 4810 <repeat_num>1</repeat_num>
4298 4811 <template>%</template>
... ... @@ -4307,7 +4820,7 @@
4307 4820 </modified_values>
4308 4821 </data_def>
4309 4822 <data_def>
4310   - <column_id>24</column_id>
  4823 + <column_id>12</column_id>
4311 4824 <type>Format</type>
4312 4825 <repeat_num>1</repeat_num>
4313 4826 <template>coluna%</template>
... ... @@ -4322,7 +4835,7 @@
4322 4835 </modified_values>
4323 4836 </data_def>
4324 4837 <data_def>
4325   - <column_id>25</column_id>
  4838 + <column_id>13</column_id>
4326 4839 <type>Format</type>
4327 4840 <repeat_num>1</repeat_num>
4328 4841 <template>nomedimensao%</template>
... ... @@ -4337,7 +4850,7 @@
4337 4850 </modified_values>
4338 4851 </data_def>
4339 4852 <data_def>
4340   - <column_id>26</column_id>
  4853 + <column_id>14</column_id>
4341 4854 <type>Format</type>
4342 4855 <repeat_num>1</repeat_num>
4343 4856 <template>descricao%</template>
... ... @@ -4352,7 +4865,7 @@
4352 4865 </modified_values>
4353 4866 </data_def>
4354 4867 <data_def>
4355   - <column_id>27</column_id>
  4868 + <column_id>15</column_id>
4356 4869 <type>Format</type>
4357 4870 <repeat_num>1</repeat_num>
4358 4871 <template>%</template>
... ... @@ -4367,7 +4880,7 @@
4367 4880 </modified_values>
4368 4881 </data_def>
4369 4882 <data_def>
4370   - <column_id>28</column_id>
  4883 + <column_id>16</column_id>
4371 4884 <type>Foreign Key</type>
4372 4885 <repeat_num>1</repeat_num>
4373 4886 <template>%</template>
... ... @@ -4454,23 +4967,23 @@
4454 4967 </repeat_test_data>
4455 4968 </table_test_data>
4456 4969 <table_test_data>
4457   - <table_id>9</table_id>
  4970 + <table_id>10</table_id>
4458 4971 <direct_test_data>
4459 4972 <data>
4460 4973 <column_data>
4461   - <column_id>29</column_id>
  4974 + <column_id>35</column_id>
4462 4975 <value>1</value>
4463 4976 </column_data>
4464 4977 <column_data>
4465   - <column_id>30</column_id>
  4978 + <column_id>36</column_id>
4466 4979 <value>Pela média</value>
4467 4980 </column_data>
4468 4981 <column_data>
4469   - <column_id>31</column_id>
  4982 + <column_id>37</column_id>
4470 4983 <value>1</value>
4471 4984 </column_data>
4472 4985 <column_data>
4473   - <column_id>32</column_id>
  4986 + <column_id>38</column_id>
4474 4987 <value></value>
4475 4988 </column_data>
4476 4989 </data>
... ... @@ -4479,7 +4992,7 @@
4479 4992 <test_data_num>0</test_data_num>
4480 4993 <data_def_list>
4481 4994 <data_def>
4482   - <column_id>29</column_id>
  4995 + <column_id>35</column_id>
4483 4996 <type>Format</type>
4484 4997 <repeat_num>1</repeat_num>
4485 4998 <template>%</template>
... ... @@ -4494,7 +5007,7 @@
4494 5007 </modified_values>
4495 5008 </data_def>
4496 5009 <data_def>
4497   - <column_id>30</column_id>
  5010 + <column_id>36</column_id>
4498 5011 <type>Format</type>
4499 5012 <repeat_num>1</repeat_num>
4500 5013 <template>nome%</template>
... ... @@ -4509,7 +5022,7 @@
4509 5022 </modified_values>
4510 5023 </data_def>
4511 5024 <data_def>
4512   - <column_id>31</column_id>
  5025 + <column_id>37</column_id>
4513 5026 <type>Foreign Key</type>
4514 5027 <repeat_num>1</repeat_num>
4515 5028 <template>%</template>
... ... @@ -4524,7 +5037,7 @@
4524 5037 </modified_values>
4525 5038 </data_def>
4526 5039 <data_def>
4527   - <column_id>32</column_id>
  5040 + <column_id>38</column_id>
4528 5041 <type>Format</type>
4529 5042 <repeat_num>1</repeat_num>
4530 5043 <template>observacao%</template>
... ... @@ -4542,167 +5055,167 @@
4542 5055 </repeat_test_data>
4543 5056 </table_test_data>
4544 5057 <table_test_data>
4545   - <table_id>10</table_id>
  5058 + <table_id>11</table_id>
4546 5059 <direct_test_data>
4547 5060 <data>
4548 5061 <column_data>
4549   - <column_id>33</column_id>
  5062 + <column_id>39</column_id>
4550 5063 <value>1</value>
4551 5064 </column_data>
4552 5065 <column_data>
4553   - <column_id>34</column_id>
  5066 + <column_id>40</column_id>
4554 5067 <value>([nu_farm_funcionando] &lt; 1)</value>
4555 5068 </column_data>
4556 5069 <column_data>
4557   - <column_id>35</column_id>
  5070 + <column_id>41</column_id>
4558 5071 <value>Nenhuma</value>
4559 5072 </column_data>
4560 5073 <column_data>
4561   - <column_id>36</column_id>
  5074 + <column_id>42</column_id>
4562 5075 <value>255</value>
4563 5076 </column_data>
4564 5077 <column_data>
4565   - <column_id>37</column_id>
  5078 + <column_id>43</column_id>
4566 5079 <value>0</value>
4567 5080 </column_data>
4568 5081 <column_data>
4569   - <column_id>38</column_id>
  5082 + <column_id>44</column_id>
4570 5083 <value>0</value>
4571 5084 </column_data>
4572 5085 <column_data>
4573   - <column_id>39</column_id>
  5086 + <column_id>45</column_id>
4574 5087 <value>1</value>
4575 5088 </column_data>
4576 5089 <column_data>
4577   - <column_id>40</column_id>
  5090 + <column_id>46</column_id>
4578 5091 <value></value>
4579 5092 </column_data>
4580 5093 <column_data>
4581   - <column_id>41</column_id>
  5094 + <column_id>47</column_id>
4582 5095 <value></value>
4583 5096 </column_data>
4584 5097 <column_data>
4585   - <column_id>42</column_id>
  5098 + <column_id>48</column_id>
4586 5099 <value>0</value>
4587 5100 </column_data>
4588 5101 <column_data>
4589   - <column_id>43</column_id>
  5102 + <column_id>49</column_id>
4590 5103 <value>0</value>
4591 5104 </column_data>
4592 5105 <column_data>
4593   - <column_id>44</column_id>
  5106 + <column_id>50</column_id>
4594 5107 <value>0</value>
4595 5108 </column_data>
4596 5109 <column_data>
4597   - <column_id>45</column_id>
  5110 + <column_id>51</column_id>
4598 5111 <value></value>
4599 5112 </column_data>
4600 5113 </data>
4601 5114 <data>
4602 5115 <column_data>
4603   - <column_id>33</column_id>
  5116 + <column_id>39</column_id>
4604 5117 <value>2</value>
4605 5118 </column_data>
4606 5119 <column_data>
4607   - <column_id>34</column_id>
  5120 + <column_id>40</column_id>
4608 5121 <value>([nu_farm_funcionando] = 1)</value>
4609 5122 </column_data>
4610 5123 <column_data>
4611   - <column_id>35</column_id>
  5124 + <column_id>41</column_id>
4612 5125 <value>Uma</value>
4613 5126 </column_data>
4614 5127 <column_data>
4615   - <column_id>36</column_id>
  5128 + <column_id>42</column_id>
4616 5129 <value>0</value>
4617 5130 </column_data>
4618 5131 <column_data>
4619   - <column_id>37</column_id>
  5132 + <column_id>43</column_id>
4620 5133 <value>255</value>
4621 5134 </column_data>
4622 5135 <column_data>
4623   - <column_id>38</column_id>
  5136 + <column_id>44</column_id>
4624 5137 <value>0</value>
4625 5138 </column_data>
4626 5139 <column_data>
4627   - <column_id>39</column_id>
  5140 + <column_id>45</column_id>
4628 5141 <value>1</value>
4629 5142 </column_data>
4630 5143 <column_data>
4631   - <column_id>40</column_id>
  5144 + <column_id>46</column_id>
4632 5145 <value></value>
4633 5146 </column_data>
4634 5147 <column_data>
4635   - <column_id>41</column_id>
  5148 + <column_id>47</column_id>
4636 5149 <value></value>
4637 5150 </column_data>
4638 5151 <column_data>
4639   - <column_id>42</column_id>
  5152 + <column_id>48</column_id>
4640 5153 <value></value>
4641 5154 </column_data>
4642 5155 <column_data>
4643   - <column_id>43</column_id>
  5156 + <column_id>49</column_id>
4644 5157 <value></value>
4645 5158 </column_data>
4646 5159 <column_data>
4647   - <column_id>44</column_id>
  5160 + <column_id>50</column_id>
4648 5161 <value></value>
4649 5162 </column_data>
4650 5163 <column_data>
4651   - <column_id>45</column_id>
  5164 + <column_id>51</column_id>
4652 5165 <value></value>
4653 5166 </column_data>
4654 5167 </data>
4655 5168 <data>
4656 5169 <column_data>
4657   - <column_id>33</column_id>
  5170 + <column_id>39</column_id>
4658 5171 <value>3</value>
4659 5172 </column_data>
4660 5173 <column_data>
4661   - <column_id>34</column_id>
  5174 + <column_id>40</column_id>
4662 5175 <value>([nu_farm_funcionando] &gt; 1)</value>
4663 5176 </column_data>
4664 5177 <column_data>
4665   - <column_id>35</column_id>
  5178 + <column_id>41</column_id>
4666 5179 <value>Mais de uma</value>
4667 5180 </column_data>
4668 5181 <column_data>
4669   - <column_id>36</column_id>
  5182 + <column_id>42</column_id>
4670 5183 <value>0</value>
4671 5184 </column_data>
4672 5185 <column_data>
4673   - <column_id>37</column_id>
  5186 + <column_id>43</column_id>
4674 5187 <value>0</value>
4675 5188 </column_data>
4676 5189 <column_data>
4677   - <column_id>38</column_id>
  5190 + <column_id>44</column_id>
4678 5191 <value>255</value>
4679 5192 </column_data>
4680 5193 <column_data>
4681   - <column_id>39</column_id>
  5194 + <column_id>45</column_id>
4682 5195 <value>1</value>
4683 5196 </column_data>
4684 5197 <column_data>
4685   - <column_id>40</column_id>
  5198 + <column_id>46</column_id>
4686 5199 <value></value>
4687 5200 </column_data>
4688 5201 <column_data>
4689   - <column_id>41</column_id>
  5202 + <column_id>47</column_id>
4690 5203 <value></value>
4691 5204 </column_data>
4692 5205 <column_data>
4693   - <column_id>42</column_id>
  5206 + <column_id>48</column_id>
4694 5207 <value></value>
4695 5208 </column_data>
4696 5209 <column_data>
4697   - <column_id>43</column_id>
  5210 + <column_id>49</column_id>
4698 5211 <value></value>
4699 5212 </column_data>
4700 5213 <column_data>
4701   - <column_id>44</column_id>
  5214 + <column_id>50</column_id>
4702 5215 <value></value>
4703 5216 </column_data>
4704 5217 <column_data>
4705   - <column_id>45</column_id>
  5218 + <column_id>51</column_id>
4706 5219 <value></value>
4707 5220 </column_data>
4708 5221 </data>
... ... @@ -4711,7 +5224,7 @@
4711 5224 <test_data_num>0</test_data_num>
4712 5225 <data_def_list>
4713 5226 <data_def>
4714   - <column_id>33</column_id>
  5227 + <column_id>39</column_id>
4715 5228 <type>Format</type>
4716 5229 <repeat_num>1</repeat_num>
4717 5230 <template>%</template>
... ... @@ -4726,7 +5239,7 @@
4726 5239 </modified_values>
4727 5240 </data_def>
4728 5241 <data_def>
4729   - <column_id>34</column_id>
  5242 + <column_id>40</column_id>
4730 5243 <type>Format</type>
4731 5244 <repeat_num>1</repeat_num>
4732 5245 <template>expressao%</template>
... ... @@ -4741,7 +5254,7 @@
4741 5254 </modified_values>
4742 5255 </data_def>
4743 5256 <data_def>
4744   - <column_id>35</column_id>
  5257 + <column_id>41</column_id>
4745 5258 <type>Format</type>
4746 5259 <repeat_num>1</repeat_num>
4747 5260 <template>titulo%</template>
... ... @@ -4756,7 +5269,7 @@
4756 5269 </modified_values>
4757 5270 </data_def>
4758 5271 <data_def>
4759   - <column_id>36</column_id>
  5272 + <column_id>42</column_id>
4760 5273 <type>Format</type>
4761 5274 <repeat_num>1</repeat_num>
4762 5275 <template>vermelho%</template>
... ... @@ -4771,7 +5284,7 @@
4771 5284 </modified_values>
4772 5285 </data_def>
4773 5286 <data_def>
4774   - <column_id>37</column_id>
  5287 + <column_id>43</column_id>
4775 5288 <type>Format</type>
4776 5289 <repeat_num>1</repeat_num>
4777 5290 <template>verde%</template>
... ... @@ -4786,7 +5299,7 @@
4786 5299 </modified_values>
4787 5300 </data_def>
4788 5301 <data_def>
4789   - <column_id>38</column_id>
  5302 + <column_id>44</column_id>
4790 5303 <type>Format</type>
4791 5304 <repeat_num>1</repeat_num>
4792 5305 <template>azul%</template>
... ... @@ -4801,7 +5314,7 @@
4801 5314 </modified_values>
4802 5315 </data_def>
4803 5316 <data_def>
4804   - <column_id>39</column_id>
  5317 + <column_id>45</column_id>
4805 5318 <type>Foreign Key</type>
4806 5319 <repeat_num>1</repeat_num>
4807 5320 <template>%</template>
... ... @@ -4816,7 +5329,7 @@
4816 5329 </modified_values>
4817 5330 </data_def>
4818 5331 <data_def>
4819   - <column_id>40</column_id>
  5332 + <column_id>46</column_id>
4820 5333 <type>Format</type>
4821 5334 <repeat_num>1</repeat_num>
4822 5335 <template>tamanho%</template>
... ... @@ -4831,7 +5344,7 @@
4831 5344 </modified_values>
4832 5345 </data_def>
4833 5346 <data_def>
4834   - <column_id>41</column_id>
  5347 + <column_id>47</column_id>
4835 5348 <type>Format</type>
4836 5349 <repeat_num>1</repeat_num>
4837 5350 <template>simbolo%</template>
... ... @@ -4846,7 +5359,7 @@
4846 5359 </modified_values>
4847 5360 </data_def>
4848 5361 <data_def>
4849   - <column_id>42</column_id>
  5362 + <column_id>48</column_id>
4850 5363 <type>Format</type>
4851 5364 <repeat_num>1</repeat_num>
4852 5365 <template>overmelho%</template>
... ... @@ -4861,7 +5374,7 @@
4861 5374 </modified_values>
4862 5375 </data_def>
4863 5376 <data_def>
4864   - <column_id>43</column_id>
  5377 + <column_id>49</column_id>
4865 5378 <type>Format</type>
4866 5379 <repeat_num>1</repeat_num>
4867 5380 <template>overde%</template>
... ... @@ -4876,7 +5389,7 @@
4876 5389 </modified_values>
4877 5390 </data_def>
4878 5391 <data_def>
4879   - <column_id>44</column_id>
  5392 + <column_id>50</column_id>
4880 5393 <type>Format</type>
4881 5394 <repeat_num>1</repeat_num>
4882 5395 <template>oazul%</template>
... ... @@ -4891,7 +5404,7 @@
4891 5404 </modified_values>
4892 5405 </data_def>
4893 5406 <data_def>
4894   - <column_id>45</column_id>
  5407 + <column_id>51</column_id>
4895 5408 <type>Format</type>
4896 5409 <repeat_num>1</repeat_num>
4897 5410 <template>otamanho%</template>
... ... @@ -4908,6 +5421,213 @@
4908 5421 </data_def_list>
4909 5422 </repeat_test_data>
4910 5423 </table_test_data>
  5424 + <table_test_data>
  5425 + <table_id>14</table_id>
  5426 + <direct_test_data>
  5427 + <data>
  5428 + <column_data>
  5429 + <column_id>67</column_id>
  5430 + <value>http://portal.saude.gov.br/portal/saude/area.cfm?id_area=1095</value>
  5431 + </column_data>
  5432 + <column_data>
  5433 + <column_id>68</column_id>
  5434 + <value>1</value>
  5435 + </column_data>
  5436 + <column_data>
  5437 + <column_id>69</column_id>
  5438 + <value>Site das Fármacias Populares</value>
  5439 + </column_data>
  5440 + <column_data>
  5441 + <column_id>70</column_id>
  5442 + <value>1</value>
  5443 + </column_data>
  5444 + </data>
  5445 + </direct_test_data>
  5446 + <repeat_test_data>
  5447 + <test_data_num>0</test_data_num>
  5448 + <data_def_list>
  5449 + <data_def>
  5450 + <column_id>67</column_id>
  5451 + <type>Format</type>
  5452 + <repeat_num>1</repeat_num>
  5453 + <template>link%</template>
  5454 + <from>1</from>
  5455 + <to>100</to>
  5456 + <increment>1</increment>
  5457 + <select>link1</select>
  5458 + <select>link2</select>
  5459 + <select>link3</select>
  5460 + <select>link4</select>
  5461 + <modified_values>
  5462 + </modified_values>
  5463 + </data_def>
  5464 + <data_def>
  5465 + <column_id>68</column_id>
  5466 + <type>Foreign Key</type>
  5467 + <repeat_num>1</repeat_num>
  5468 + <template>%</template>
  5469 + <from>1</from>
  5470 + <to>100</to>
  5471 + <increment>1</increment>
  5472 + <select>1</select>
  5473 + <select>2</select>
  5474 + <select>3</select>
  5475 + <select>4</select>
  5476 + <modified_values>
  5477 + </modified_values>
  5478 + </data_def>
  5479 + <data_def>
  5480 + <column_id>69</column_id>
  5481 + <type>Format</type>
  5482 + <repeat_num>1</repeat_num>
  5483 + <template>nome%</template>
  5484 + <from>1</from>
  5485 + <to>100</to>
  5486 + <increment>1</increment>
  5487 + <select>nome1</select>
  5488 + <select>nome2</select>
  5489 + <select>nome3</select>
  5490 + <select>nome4</select>
  5491 + <modified_values>
  5492 + </modified_values>
  5493 + </data_def>
  5494 + <data_def>
  5495 + <column_id>70</column_id>
  5496 + <type>Format</type>
  5497 + <repeat_num>1</repeat_num>
  5498 + <template>%</template>
  5499 + <from>1</from>
  5500 + <to>100</to>
  5501 + <increment>1</increment>
  5502 + <select>1</select>
  5503 + <select>2</select>
  5504 + <select>3</select>
  5505 + <select>4</select>
  5506 + <modified_values>
  5507 + </modified_values>
  5508 + </data_def>
  5509 + </data_def_list>
  5510 + </repeat_test_data>
  5511 + </table_test_data>
  5512 + <table_test_data>
  5513 + <table_id>15</table_id>
  5514 + <direct_test_data>
  5515 + <data>
  5516 + <column_data>
  5517 + <column_id>71</column_id>
  5518 + <value>1</value>
  5519 + </column_data>
  5520 + <column_data>
  5521 + <column_id>72</column_id>
  5522 + <value>1</value>
  5523 + </column_data>
  5524 + </data>
  5525 + </direct_test_data>
  5526 + <repeat_test_data>
  5527 + <test_data_num>0</test_data_num>
  5528 + <data_def_list>
  5529 + <data_def>
  5530 + <column_id>71</column_id>
  5531 + <type>Foreign Key</type>
  5532 + <repeat_num>1</repeat_num>
  5533 + <template>%</template>
  5534 + <from>1</from>
  5535 + <to>100</to>
  5536 + <increment>1</increment>
  5537 + <select>1</select>
  5538 + <select>2</select>
  5539 + <select>3</select>
  5540 + <select>4</select>
  5541 + <modified_values>
  5542 + </modified_values>
  5543 + </data_def>
  5544 + <data_def>
  5545 + <column_id>72</column_id>
  5546 + <type>Foreign Key</type>
  5547 + <repeat_num>1</repeat_num>
  5548 + <template>%</template>
  5549 + <from>1</from>
  5550 + <to>100</to>
  5551 + <increment>1</increment>
  5552 + <select>1</select>
  5553 + <select>2</select>
  5554 + <select>3</select>
  5555 + <select>4</select>
  5556 + <modified_values>
  5557 + </modified_values>
  5558 + </data_def>
  5559 + </data_def_list>
  5560 + </repeat_test_data>
  5561 + </table_test_data>
  5562 + <table_test_data>
  5563 + <table_id>12</table_id>
  5564 + <direct_test_data>
  5565 + <data>
  5566 + <column_data>
  5567 + <column_id>52</column_id>
  5568 + <value>1</value>
  5569 + </column_data>
  5570 + <column_data>
  5571 + <column_id>53</column_id>
  5572 + <value>Ministério da Saúde</value>
  5573 + </column_data>
  5574 + <column_data>
  5575 + <column_id>54</column_id>
  5576 + <value>http://saude.gov.br</value>
  5577 + </column_data>
  5578 + </data>
  5579 + </direct_test_data>
  5580 + <repeat_test_data>
  5581 + <test_data_num>0</test_data_num>
  5582 + <data_def_list>
  5583 + <data_def>
  5584 + <column_id>52</column_id>
  5585 + <type>Format</type>
  5586 + <repeat_num>1</repeat_num>
  5587 + <template>%</template>
  5588 + <from>1</from>
  5589 + <to>100</to>
  5590 + <increment>1</increment>
  5591 + <select>1</select>
  5592 + <select>2</select>
  5593 + <select>3</select>
  5594 + <select>4</select>
  5595 + <modified_values>
  5596 + </modified_values>
  5597 + </data_def>
  5598 + <data_def>
  5599 + <column_id>53</column_id>
  5600 + <type>Format</type>
  5601 + <repeat_num>1</repeat_num>
  5602 + <template>titulo%</template>
  5603 + <from>1</from>
  5604 + <to>100</to>
  5605 + <increment>1</increment>
  5606 + <select>titulo1</select>
  5607 + <select>titulo2</select>
  5608 + <select>titulo3</select>
  5609 + <select>titulo4</select>
  5610 + <modified_values>
  5611 + </modified_values>
  5612 + </data_def>
  5613 + <data_def>
  5614 + <column_id>54</column_id>
  5615 + <type>Format</type>
  5616 + <repeat_num>1</repeat_num>
  5617 + <template>link%</template>
  5618 + <from>1</from>
  5619 + <to>100</to>
  5620 + <increment>1</increment>
  5621 + <select>link1</select>
  5622 + <select>link2</select>
  5623 + <select>link3</select>
  5624 + <select>link4</select>
  5625 + <modified_values>
  5626 + </modified_values>
  5627 + </data_def>
  5628 + </data_def_list>
  5629 + </repeat_test_data>
  5630 + </table_test_data>
4911 5631 </test_data>
4912 5632 </test_data_list>
4913 5633 <sequence_set>
... ...