From a750af3551bb59674c311ab401ea0b1c13976533 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Fri, 26 Oct 2012 21:14:46 +0000 Subject: [PATCH] Inclusão da coluna TIPO na tabela de i3geoestat_parametro_medida para permitir a elaboração de filtro por período --- admin/admin.db | Bin 146432 -> 0 bytes admin/js/estat_variavel.js | 19 +++++++++++++++++-- admin/php/classe_metaestat.php | 4 ++-- admin/php/metaestat.php | 18 +++++++++--------- admin/sql/metaestat.sql | 38 +++++++++++++++++++++++--------------- admin/sql/metaestat_basededados.sql | 2 +- documentacao/diagramas/metaestat.erm | 1402 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ferramentas/metaestat/index.js | 1 + 8 files changed, 786 insertions(+), 698 deletions(-) diff --git a/admin/admin.db b/admin/admin.db index 178dc42..635bb18 100644 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/admin/js/estat_variavel.js b/admin/js/estat_variavel.js index af67a2b..fbbb6d1 100755 --- a/admin/js/estat_variavel.js +++ b/admin/js/estat_variavel.js @@ -541,12 +541,20 @@ i3GEOadmin.variaveis = { {titulo:"Nome:",id:"Enome",size:"50",value:i.nome,tipo:"text",div:""}, {titulo:"Descrição:",id:"Edescricao",size:"50",value:i.descricao,tipo:"text",div:""}, {titulo:"Coluna:",id:"Ecoluna",size:"50",value:i.coluna,tipo:"text",div:""}, - {titulo:"id_pai:",id:"Eid_pai",size:"50",value:i.id_pai,tipo:"text",div:""} + {titulo:"id_pai:",id:"Eid_pai",size:"50",value:i.id_pai,tipo:"text",div:""}, + {titulo:"Tipo:",id:"",size:"50",value:i.tipo,tipo:"text",div:"
"} ] }; ins += core_geraLinhas(param); ins += "


"; $i("editor_bd").innerHTML = ins; + //para saber a lista de tipos, veja a descricao da tabela de parametros no MER do banco de dados + if($i("Ctipo_parametro")){ + temp = ""; + $i("Ctipo_parametro").innerHTML = temp; + } } }, link: { @@ -1024,7 +1032,7 @@ i3GEOadmin.variaveis = { prog = i3GEO.configura.locaplic+"/admin/php/metaestat.php?funcao=alteraMedidaVariavel"; } if(tipo == "parametroMedida"){ - campos = new Array("nome","descricao","coluna","id_pai"); + campos = new Array("nome","descricao","coluna","id_pai","tipo"); par = "&id_parametro_medida="+id; prog = i3GEO.configura.locaplic+"/admin/php/metaestat.php?funcao=alteraParametroMedida"; } @@ -1160,6 +1168,13 @@ i3GEOadmin.variaveis = { success:function(o){ try { i3GEOadmin.variaveis.dadosAuxiliares = YAHOO.lang.JSON.parse(o.responseText); + i3GEOadmin.variaveis.dadosAuxiliares["tiposDeParametros"] = [ + {"id":"0","valor":"Nao definido"}, + {"id":"1","valor":"Ano"}, + {"id":"2","valor":"Mes"}, + {"id":"3","valor":"Dia"}, + {"id":"4","valor":"Hora"} + ]; } catch(e){core_handleFailure(e,o.responseText);} }, diff --git a/admin/php/classe_metaestat.php b/admin/php/classe_metaestat.php index ac9c1b5..bc08c68 100755 --- a/admin/php/classe_metaestat.php +++ b/admin/php/classe_metaestat.php @@ -860,7 +860,7 @@ class Metaestat{ Altera uma parametro de uma medida ou cria uma nova */ - function alteraParametroMedida($id_medida_variavel,$id_parametro_medida="",$nome,$descricao,$coluna,$id_pai){ + function alteraParametroMedida($id_medida_variavel,$id_parametro_medida="",$nome,$descricao,$coluna,$id_pai,$tipo="0"){ try { if($id_parametro_medida != ""){ if($this->convUTF){ @@ -868,7 +868,7 @@ class Metaestat{ $descricao = utf8_encode($descricao); } //echo "UPDATE ".$this->esquemaadmin."i3geoestat_parametro_medida SET nomeparametro = '$nomeparametro',descricao = '$descricao',coluna = '$coluna',agregavalores = '$agregavalores' WHERE id_parametro_medida = $id_parametro_medida";exit; - $this->dbhw->query("UPDATE ".$this->esquemaadmin."i3geoestat_parametro_medida SET nome = '$nome',descricao = '$descricao',coluna = '$coluna',id_pai = '$id_pai' WHERE id_parametro_medida = $id_parametro_medida"); + $this->dbhw->query("UPDATE ".$this->esquemaadmin."i3geoestat_parametro_medida SET nome = '$nome',descricao = '$descricao',coluna = '$coluna',id_pai = '$id_pai', tipo = '$tipo' WHERE id_parametro_medida = $id_parametro_medida"); $retorna = $id_parametro_medida; } else{ diff --git a/admin/php/metaestat.php b/admin/php/metaestat.php index 17973c6..225b0cc 100644 --- a/admin/php/metaestat.php +++ b/admin/php/metaestat.php @@ -291,26 +291,26 @@ switch (strtoupper($funcao)) $id_pai = 0; //anual if($codigo_tipo_periodo >= 1){ - $id_parametro_medida = $m->alteraParametroMedida($id_medida_variavel,"","","","",""); - $m->alteraParametroMedida($id_medida_variavel,$id_parametro_medida,"Ano","","ano",$id_pai); + $id_parametro_medida = $m->alteraParametroMedida($id_medida_variavel,"","","","","",""); + $m->alteraParametroMedida($id_medida_variavel,$id_parametro_medida,"Ano","","ano",$id_pai,1); $id_pai = $id_parametro_medida; } //mensal if($codigo_tipo_periodo >= 2){ - $id_parametro_medida = $m->alteraParametroMedida($id_medida_variavel,"","","","",""); - $m->alteraParametroMedida($id_medida_variavel,$id_parametro_medida,"Mes","","mes",$id_pai); + $id_parametro_medida = $m->alteraParametroMedida($id_medida_variavel,"","","","","",""); + $m->alteraParametroMedida($id_medida_variavel,$id_parametro_medida,"Mes","","mes",$id_pai,2); $id_pai = $id_parametro_medida; } //diario if($codigo_tipo_periodo >= 3){ - $id_parametro_medida = $m->alteraParametroMedida($id_medida_variavel,"","","","",""); - $m->alteraParametroMedida($id_medida_variavel,$id_parametro_medida,"Dia","","dia",$id_pai); + $id_parametro_medida = $m->alteraParametroMedida($id_medida_variavel,"","","","","",""); + $m->alteraParametroMedida($id_medida_variavel,$id_parametro_medida,"Dia","","dia",$id_pai,3); $id_pai = $id_parametro_medida; } //horario if($codigo_tipo_periodo == 4){ - $id_parametro_medida = $m->alteraParametroMedida($id_medida_variavel,"","","","",""); - $m->alteraParametroMedida($id_medida_variavel,$id_parametro_medida,"Hora","","hora",$id_pai); + $id_parametro_medida = $m->alteraParametroMedida($id_medida_variavel,"","","","","",""); + $m->alteraParametroMedida($id_medida_variavel,$id_parametro_medida,"Hora","","hora",$id_pai,4); } } retornaJSON($m->listaMedidaVariavel("",$id_medida_variavel)); @@ -332,7 +332,7 @@ switch (strtoupper($funcao)) $id_parametro_medida = $m->alteraParametroMedida($id_medida_variavel); } else{ - $m->alteraParametroMedida("",$id_parametro_medida,$nome,$descricao,$coluna,$id_pai); + $m->alteraParametroMedida("",$id_parametro_medida,$nome,$descricao,$coluna,$id_pai,$tipo); } retornaJSON($m->listaParametro($id_medida_variavel,$id_parametro_medida)); exit; diff --git a/admin/sql/metaestat.sql b/admin/sql/metaestat.sql index 3dcbc82..5f0ff38 100644 --- a/admin/sql/metaestat.sql +++ b/admin/sql/metaestat.sql @@ -80,10 +80,10 @@ create table i3geoestat_agregaregiao ); --- tabela com o nome e descrição de uma variável variável -create table i3geoestat_variavel +-- lista controlada de tipos de período de tempo +create table i3geoestat_tipo_periodo ( - codigo_variavel integer not null unique primary key autoincrement, + codigo_tipo_periodo integer not null unique primary key autoincrement, nome text, descricao text ); @@ -101,10 +101,10 @@ create table i3geoestat_unidade_medida ); --- lista controlada de tipos de período de tempo -create table i3geoestat_tipo_periodo +-- tabela com o nome e descrição de uma variável variável +create table i3geoestat_variavel ( - codigo_tipo_periodo integer not null unique primary key autoincrement, + codigo_variavel integer not null unique primary key autoincrement, nome text, descricao text ); @@ -133,16 +133,16 @@ create table i3geoestat_medida_variavel nomemedida text, -- nome da coluna da tabela que contem os dados e que é um identificador único de cada registro colunaidunico text, - foreign key (codigo_variavel) - references i3geoestat_variavel (codigo_variavel), foreign key (codigo_tipo_regiao) references i3geoestat_tipo_regiao (codigo_tipo_regiao), - foreign key (codigo_unidade_medida) - references i3geoestat_unidade_medida (codigo_unidade_medida), + foreign key (codigo_estat_conexao) + references i3geoestat_conexao (codigo_estat_conexao), foreign key (codigo_tipo_periodo) references i3geoestat_tipo_periodo (codigo_tipo_periodo), - foreign key (codigo_estat_conexao) - references i3geoestat_conexao (codigo_estat_conexao) + foreign key (codigo_unidade_medida) + references i3geoestat_unidade_medida (codigo_unidade_medida), + foreign key (codigo_variavel) + references i3geoestat_variavel (codigo_variavel) ); @@ -204,10 +204,10 @@ create table i3geoestat_fonteinfo_medida ( id_medida_variavel integer not null, id_fonteinfo integer not null, - foreign key (id_fonteinfo) - references i3geoestat_fonteinfo (id_fonteinfo), foreign key (id_medida_variavel) - references i3geoestat_medida_variavel (id_medida_variavel) + references i3geoestat_medida_variavel (id_medida_variavel), + foreign key (id_fonteinfo) + references i3geoestat_fonteinfo (id_fonteinfo) ); @@ -231,6 +231,14 @@ create table i3geoestat_parametro_medida -- (0 ou 1) indica se a coluna de valores da variável deve ser agregada ou não (soma dos valores ou média) conforme o tipo de unidade de medida id_pai integer default 0, id_medida_variavel integer, + -- tipo de parâmetro, podendo ser: + -- 0 - não definido + -- 1 - ano + -- 2 - mês + -- 3 - dia + -- 4 - hora + -- 5 - lista de opção + tipo integer default 0, foreign key (id_medida_variavel) references i3geoestat_medida_variavel (id_medida_variavel) ); diff --git a/admin/sql/metaestat_basededados.sql b/admin/sql/metaestat_basededados.sql index 3ca97be..4aa7699 100644 --- a/admin/sql/metaestat_basededados.sql +++ b/admin/sql/metaestat_basededados.sql @@ -25,7 +25,7 @@ INSERT INTO i3geoestat_medida_variavel (id_medida_variavel, codigo_unidade_medid -- i3geoestat_parametro_medida -INSERT INTO i3geoestat_parametro_medida (id_parametro_medida, coluna, nome, descricao, id_pai, id_medida_variavel) VALUES ('1', 'nu_ano', 'ano', '', '0', '1'); +INSERT INTO i3geoestat_parametro_medida (id_parametro_medida, coluna, nome, descricao, id_pai, id_medida_variavel, tipo) VALUES ('1', 'nu_ano', 'ano', '', '0', '1', '1'); -- i3geoestat_variavel diff --git a/documentacao/diagramas/metaestat.erm b/documentacao/diagramas/metaestat.erm index 7f7dfbc..bbe8b5f 100644 --- a/documentacao/diagramas/metaestat.erm +++ b/documentacao/diagramas/metaestat.erm @@ -11,8 +11,8 @@ 0 1.0 - -372 - 51 + 171 + 208 255 128 @@ -110,7 +110,7 @@ false 2012-07-17 15:03:53 - 2012-10-23 08:35:27 + 2012-10-26 18:48:54 Project Name @@ -944,13 +944,26 @@ null false + Tipo de parâmetro, podendo ser: 0 - Não definido 1 - Ano 2 - Mês 3 - Dia 4 - Hora 5 - Lista de opção + tipo + tipo + integer + + + 62 + null + null + false + null + false + Título completo da fonte, devendo conter o ano quando for o caso titulo titulo text - 62 + 63 null null false @@ -963,7 +976,7 @@ text - 63 + 64 null null false @@ -976,7 +989,7 @@ text - 64 + 65 null null false @@ -989,7 +1002,7 @@ text - 65 + 66 null null false @@ -1285,7 +1298,7 @@ - 39 + 38 6 @@ -1317,7 +1330,7 @@ - 19 + 20 7 @@ -1412,7 +1425,7 @@ - 38 + 42 9 @@ -1500,7 +1513,7 @@ 0 - 12 + 10 5 1..n 1 @@ -1556,7 +1569,7 @@ - 43 + 39 12 @@ -1589,7 +1602,7 @@ 13 - 49 + 39 0 @@ -1765,7 +1778,7 @@ - 62 + 63 17 @@ -1797,7 +1810,7 @@ - 65 + 66 18 @@ -1829,7 +1842,7 @@ - 64 + 65 19 @@ -2181,7 +2194,7 @@ - 61 + 62 29 @@ -2213,7 +2226,7 @@ - 37 + 36 30 @@ -2255,21 +2268,38 @@ 8 - 128 + 86269Ubuntu9 - 753 - 442 + 705 + 152 - 230 - 230 - 250 + 144 + 238 + 144 2 - 12 + 10 + 8 + 1..n + 1 + true + + RESTRICT + RESTRICT + -1 + -1 + -1 + -1 + null + null + + + 3 + 7 8 1..n 1 @@ -2285,26 +2315,27 @@ null - i3geoestat_medida_variavel_link - i3geoestat_medida_variavel_link + i3geoestat_fonteinfo_medida + i3geoestat_fonteinfo_medida - 36 31 + 39 + 2 - text + integer false - false - false + true + true false false @@ -2326,8 +2357,8 @@ 32 - 49 - 2 + 28 + 3 @@ -2337,7 +2368,7 @@ false true - false + true false false @@ -2357,13 +2388,76 @@ 0 + + + + + + + + +
+ + 9 + 170 + 292 + Ubuntu + 9 + 8 + 499 + + 255 + 165 + 0 + + + + i3geoestat_conexao + i3geoestat_conexao + Lista controlada dos parâmetros de conexão com o banco de dados onde residem dados Código 0 indica que será utilizada a conexão padrão + + + + - 42 + 2 33 + integer + + + true + false + true + true + true + + + + + + + + + + + false + false + + + 0 + + + + 1 + 34 + + + + text @@ -2390,20 +2484,20 @@ - 32 - 34 + 26 + 35 - integer + text - true + false false - true - true - true + false + false + false @@ -2421,85 +2515,19 @@ 0 - - - - - - - - -
- - 9 - 86 - 269 - Ubuntu - 9 - 705 - 152 - - 144 - 238 - 144 - - - - 3 - 7 - 9 - 1..n - 1 - true - - RESTRICT - RESTRICT - -1 - -1 - -1 - -1 - null - null - - - 4 - 12 - 9 - 1..n - 1 - true - - RESTRICT - RESTRICT - -1 - -1 - -1 - -1 - null - null - - - i3geoestat_fonteinfo_medida - i3geoestat_fonteinfo_medida - - - - - - 35 - 49 - 4 + 53 + 36 - integer + text false - true - true + false + false false false @@ -2520,19 +2548,18 @@ - 36 - 28 - 3 + 64 + 37 - integer + text false - true - true + false + false false false @@ -2552,23 +2579,55 @@ 0 - - - - - - - - -
- - 10 - 170 - 292 + + 54 + 38 + + + + + text + + + false + false + false + false + false + + + + + + + + + + + false + false + + + 0 + + + + + + + + + + +
+ + 10 + 339 + 292Ubuntu9 - 387 - 533 + 353 + 155 160 32 @@ -2576,7 +2635,7 @@ - 5 + 4 12 10 1..n @@ -2592,17 +2651,85 @@ null null + + 5 + 9 + 10 + 1..n + 1 + true + + RESTRICT + RESTRICT + -1 + -1 + -1 + -1 + null + null + + + 6 + 3 + 10 + 1..n + 1 + true + + RESTRICT + RESTRICT + -1 + -1 + -1 + -1 + null + null + + + 7 + 2 + 10 + 1..n + 1 + true + + RESTRICT + RESTRICT + -1 + -1 + -1 + -1 + null + null + + + 8 + 4 + 10 + 1..n + 1 + true + + RESTRICT + RESTRICT + -1 + -1 + -1 + -1 + null + null + - i3geoestat_parametro_medida - i3geoestat_parametro_medida - + i3geoestat_medida_variavel + i3geoestat_medida_variavel + Descreve as colunas que contém valores de algum tipo de medida, por exemplo população residente - 35 - 37 + 33 + 39 @@ -2633,17 +2760,18 @@ - 8 - 38 + 40 + 0 + 7 - text + integer false - false + true false false false @@ -2665,17 +2793,18 @@ - 41 - 39 + 41 + 5 + 6 - text + integer false - false + true false false false @@ -2697,17 +2826,18 @@ - 20 - 40 + 42 + 8 + 8 - text + integer false - false + true false false false @@ -2729,17 +2859,18 @@ - 34 - 41 + 43 + 56 + 4 integer - 0 + false - false + true false false false @@ -2761,8 +2892,8 @@ - 42 - 49 + 44 + 33 5 @@ -2793,52 +2924,21 @@ 0 - - - - - - - - -
- - 11 - 170 - 292 - Ubuntu - 9 - 8 - 499 - - 255 - 165 - 0 - - - - i3geoestat_conexao - i3geoestat_conexao - Lista controlada dos parâmetros de conexão com o banco de dados onde residem dados Código 0 indica que será utilizada a conexão padrão - - - - - 2 - 43 + 22 + 45 - integer + text - true + false false - true - true - true + false + false + false @@ -2857,8 +2957,8 @@ - 1 - 44 + 58 + 46 @@ -2889,8 +2989,8 @@ - 26 - 45 + 16 + 47 @@ -2921,8 +3021,8 @@ - 53 - 46 + 11 + 48 @@ -2953,8 +3053,8 @@ - 63 - 47 + 25 + 49 @@ -2985,8 +3085,8 @@ - 54 - 48 + 44 + 50 @@ -3016,101 +3116,65 @@ 0 - - - - - - - - -
- - 12 - 339 - 292 - Ubuntu - 9 - 353 - 155 - - 160 - 32 - 240 - - - - 6 - 4 - 12 - 1..n - 1 - true - - RESTRICT - RESTRICT - -1 - -1 - -1 - -1 - null - null - - - 7 - 14 - 12 - 1..n - 1 - true - - RESTRICT - RESTRICT - -1 - -1 - -1 - -1 - null - null - - - 8 - 2 - 12 - 1..n - 1 - true - - RESTRICT - RESTRICT - -1 - -1 - -1 - -1 - null - null - + + 12 + 51 + + + + + text + + + false + false + false + false + false + + + + + + + + + + + false + false + + + 0 + + + + + + + + + + +
+ + 11 + 128 + 270 + Ubuntu + 9 + -372 + 596 + + 255 + 128 + 255 + + 9 - 3 - 12 - 1..n - 1 - true - - RESTRICT - RESTRICT - -1 - -1 - -1 - -1 - null - null - - - 10 - 11 - 12 + 12 + 11 1..n 1 true @@ -3125,16 +3189,16 @@ null - i3geoestat_medida_variavel - i3geoestat_medida_variavel - Descreve as colunas que contém valores de algum tipo de medida, por exemplo população residente + i3geoestat_agregaregiao + i3geoestat_agregaregiao + - 33 - 49 + 28 + 52 @@ -3165,9 +3229,9 @@ - 50 - 0 - 8 + 53 + 56 + 9 @@ -3198,9 +3262,8 @@ - 51 - 5 - 9 + 5 + 54 @@ -3209,7 +3272,7 @@ false - true + false false false false @@ -3231,18 +3294,17 @@ - 52 - 8 - 6 + 13 + 55 - integer + text false - true + false false false false @@ -3263,10 +3325,57 @@ 0 + + + + + + + + +
+ + 12 + 275 + 292 + Ubuntu + 9 + -336 + 236 + + 255 + 128 + 255 + + + + 10 + 9 + 12 + 1..n + 1 + true + + RESTRICT + RESTRICT + -1 + -1 + -1 + -1 + null + null + + + i3geoestat_tipo_regiao + i3geoestat_tipo_regiao + Identifica as tabelas que possuem colunas com geometrias de determinado local ou região + + + + - 53 - 66 - 7 + 4 + 56 @@ -3274,11 +3383,11 @@ integer - false - true - false - false - false + true + false + true + true + true @@ -3297,18 +3406,17 @@ - 54 - 43 - 10 + 45 + 57 - integer + text false - true + false false false false @@ -3330,8 +3438,8 @@ - 22 - 55 + 21 + 58 @@ -3362,17 +3470,18 @@ - 58 - 56 + 59 + 33 + 10 - text + integer false - false + true false false false @@ -3394,8 +3503,8 @@ - 16 - 57 + 23 + 60 @@ -3426,8 +3535,8 @@ - 11 - 58 + 59 + 61 @@ -3458,8 +3567,8 @@ - 25 - 59 + 10 + 62 @@ -3490,8 +3599,8 @@ - 44 - 60 + 17 + 63 @@ -3522,13 +3631,13 @@ - 12 - 61 + 27 + 64 - text + integer false @@ -3553,69 +3662,21 @@ 0 - - - - - - - - -
- - 13 - 128 - 270 - Ubuntu - 9 - -372 - 596 - - 255 - 128 - 255 - - - - 11 - 14 - 13 - 1..n - 1 - true - - RESTRICT - RESTRICT - -1 - -1 - -1 - -1 - null - null - - - i3geoestat_agregaregiao - i3geoestat_agregaregiao - - - - - - 28 - 62 + 14 + 65 - integer + text - true + false false - true - true - true + false + false + false @@ -3634,18 +3695,17 @@ - 63 - 66 - 11 + 57 + 66 - integer + text - + 4326 false - true + false false false false @@ -3667,13 +3727,13 @@ - 5 - 64 + 9 + 67 - integer + text false @@ -3699,8 +3759,8 @@ - 13 - 65 + 15 + 68 @@ -3740,23 +3800,23 @@
- 14 - 275 - 292 + 13 + 128 + 269Ubuntu9 - -336 - 236 + 810 + 466 - 255 - 128 - 255 + 230 + 230 + 250 - 12 - 11 - 14 + 11 + 10 + 13 1..n 1 true @@ -3771,80 +3831,16 @@ null - i3geoestat_tipo_regiao - i3geoestat_tipo_regiao - Identifica as tabelas que possuem colunas com geometrias de determinado local ou região + i3geoestat_medida_variavel_link + i3geoestat_medida_variavel_link + - 4 - 66 - - - - - integer - - - true - false - true - true - true - - - - - - - - - - - false - false - - - 0 - - - - 45 - 67 - - - - - text - - - false - false - false - false - false - - - - - - - - - - - false - false - - - 0 - - - - 21 - 68 + 37 + 69 @@ -3875,9 +3871,9 @@ - 69 - 43 - 12 + 70 + 39 + 11 @@ -3908,8 +3904,8 @@ - 23 - 70 + 41 + 71 @@ -3940,20 +3936,20 @@ - 59 - 71 + 32 + 72 - text + integer - false + true false - false - false - false + true + true + true @@ -3971,21 +3967,69 @@ 0 + + + + + + + + +
+ + 14 + 170 + 292 + Ubuntu + 9 + 350 + 539 + + 160 + 32 + 240 + + + + 12 + 10 + 14 + 1..n + 1 + true + + RESTRICT + RESTRICT + -1 + -1 + -1 + -1 + null + null + + + i3geoestat_parametro_medida + i3geoestat_parametro_medida + + + + + - 10 - 72 + 35 + 73 - text + integer - false + true false - false - false - false + true + true + true @@ -4004,8 +4048,8 @@ - 17 - 73 + 8 + 74 @@ -4036,13 +4080,13 @@ - 27 - 74 + 43 + 75 - integer + text false @@ -4068,8 +4112,8 @@ - 14 - 75 + 19 + 76 @@ -4100,15 +4144,15 @@ - 57 - 76 + 34 + 77 - text + integer - 4326 + 0 false false false @@ -4132,17 +4176,18 @@ - 9 - 77 + 78 + 39 + 12 - text + integer false - false + true false false false @@ -4164,15 +4209,15 @@ - 15 - 78 + 61 + 79 - text + integer - + 0 false false false @@ -4212,57 +4257,57 @@ metaestat_basededados 0 - 11 + 9 - 43 + 33 1 - 44 + 34 geosaude - 45 + 35 localhost - 46 + 36 5432 - 47 + 37 postgres - 48 + 38 postgres - 43 + 33 0 - 44 + 34 i3geo_metaestat - 45 + 35 localhost - 46 + 36 5432 - 47 + 37 postgres - 48 + 38 postgres @@ -4271,7 +4316,7 @@ 0 - 43 + 33 Format 1 @@ -4286,7 +4331,7 @@ - 44 + 34 Format 1 @@ -4301,7 +4346,7 @@ - 45 + 35 Format 1 @@ -4316,7 +4361,7 @@ - 46 + 36 Format 1 @@ -4331,7 +4376,7 @@ - 47 + 37 Format 1 @@ -4346,7 +4391,7 @@ - 48 + 38 Format 1 @@ -4475,167 +4520,167 @@ - 14 + 12 - 66 + 56 2 - 67 + 57 Município - 68 + 58 Limites municipais - 69 + 59 1 - 70 + 60 i3geo_metaestat - 71 + 61 municipios - 72 + 62 the_geom - 73 + 63 2010 - 74 + 64 co_municipio - 75 + 65 no_cidade - 76 + 66 4326 - 77 + 67 the_geom2 - 78 + 68 co_municipio,no_cidade,co_uf,area_territorial,nu_ano_instalacao - 66 + 56 3 - 67 + 57 Estado - 68 + 58 Limites estaduais - 69 + 59 1 - 70 + 60 i3geo_metaestat - 71 + 61 uf - 72 + 62 the_geom - 73 + 63 2010 - 74 + 64 co_uf - 75 + 65 no_uf - 76 + 66 4326 - 77 + 67 the_geom - 78 + 68 co_uf,sg_uf,no_uf,no_regiao - 66 + 56 1 - 67 + 57 Bairro - 68 + 58 Limites de bairros - 69 + 59 1 - 70 + 60 i3geo_metaestat - 71 + 61 bairros - 72 + 62 the_geom - 73 + 63 2010 - 74 + 64 co_bairro - 75 + 65 no_bairro - 76 + 66 4326 - 77 + 67 the_geom - 78 + 68 co_bairro,no_bairro,no_distr,no_municip @@ -4644,7 +4689,7 @@ 0 - 66 + 56 Format 1 @@ -4659,7 +4704,7 @@ - 67 + 57 Format 1 @@ -4674,7 +4719,7 @@ - 68 + 58 Format 1 @@ -4689,7 +4734,7 @@ - 69 + 59 Foreign Key 1 @@ -4704,7 +4749,7 @@ - 70 + 60 Format 1 @@ -4719,7 +4764,7 @@ - 71 + 61 Format 1 @@ -4734,7 +4779,7 @@ - 72 + 62 Format 1 @@ -4749,7 +4794,7 @@ - 73 + 63 Format 1 @@ -4764,7 +4809,7 @@ - 74 + 64 Format 1 @@ -4779,7 +4824,7 @@ - 75 + 65 Format 1 @@ -4794,7 +4839,7 @@ - 76 + 66 Format 1 @@ -4809,7 +4854,7 @@ - 77 + 67 Format 1 @@ -4824,7 +4869,7 @@ - 78 + 68 Format 1 @@ -4949,59 +4994,59 @@ - 12 + 10 - 49 + 39 1 - 50 + 40 1 - 51 + 41 2 - 52 + 42 1 - 53 + 43 2 - 54 + 44 1 - 55 + 45 dbdemografia - 56 + 46 tb_demografia - 57 + 47 nu_populacao - 58 + 48 co_ibge - 59 + 49 - 60 + 50 População residente - 61 + 51 @@ -5010,7 +5055,7 @@ 0 - 49 + 39 Format 1 @@ -5025,7 +5070,7 @@ - 50 + 40 Foreign Key 1 @@ -5040,7 +5085,7 @@ - 51 + 41 Foreign Key 1 @@ -5055,7 +5100,7 @@ - 52 + 42 Foreign Key 1 @@ -5070,7 +5115,7 @@ - 53 + 43 Foreign Key 1 @@ -5085,7 +5130,7 @@ - 54 + 44 Foreign Key 1 @@ -5100,7 +5145,7 @@ - 55 + 45 Format 1 @@ -5115,7 +5160,7 @@ - 56 + 46 Format 1 @@ -5130,7 +5175,7 @@ - 57 + 47 Format 1 @@ -5145,7 +5190,7 @@ - 58 + 48 Format 1 @@ -5160,7 +5205,7 @@ - 59 + 49 Format 1 @@ -5175,7 +5220,7 @@ - 60 + 50 Format 1 @@ -5190,7 +5235,7 @@ - 61 + 51 Format 1 @@ -5208,31 +5253,35 @@ - 10 + 14 - 37 + 73 1 - 38 + 74 nu_ano - 39 + 75 ano - 40 + 76 - 41 + 77 0 - 42 + 78 + 1 + + + 79 1 @@ -5241,7 +5290,7 @@ 0 - 37 + 73 Format 1 @@ -5256,7 +5305,7 @@ - 38 + 74 Format 1 @@ -5271,7 +5320,7 @@ - 39 + 75 Format 1 @@ -5286,7 +5335,7 @@ - 40 + 76 Format 1 @@ -5301,7 +5350,7 @@ - 41 + 77 Format 1 @@ -5316,7 +5365,7 @@ - 42 + 78 Foreign Key 1 @@ -5330,6 +5379,21 @@ + + 79 + Format + 1 + + 1 + 100 + 1 + + + + + + + @@ -5912,23 +5976,23 @@ - 8 + 13 - 31 + 69 http://portal.saude.gov.br/portal/saude/area.cfm?id_area=1095 - 32 + 70 1 - 33 + 71 Site das Fármacias Populares - 34 + 72 1 @@ -5937,7 +6001,7 @@ 0 - 31 + 69 Format 1 @@ -5952,7 +6016,7 @@ - 32 + 70 Foreign Key 1 @@ -5967,7 +6031,7 @@ - 33 + 71 Format 1 @@ -5982,7 +6046,7 @@ - 34 + 72 Format 1 @@ -6000,15 +6064,15 @@ - 9 + 8 - 35 + 31 1 - 36 + 32 1 @@ -6017,7 +6081,7 @@ 0 - 35 + 31 Foreign Key 1 @@ -6032,7 +6096,7 @@ - 36 + 32 Foreign Key 1 @@ -6119,41 +6183,41 @@ - 13 + 11 - 62 + 52 1 - 63 + 53 1 - 64 + 54 2 - 65 + 55 co_municipio - 62 + 52 2 - 63 + 53 2 - 64 + 54 3 - 65 + 55 co_uf @@ -6162,7 +6226,7 @@ 0 - 62 + 52 Format 1 @@ -6177,7 +6241,7 @@ - 63 + 53 Foreign Key 1 @@ -6192,7 +6256,7 @@ - 64 + 54 Format 1 @@ -6207,7 +6271,7 @@ - 65 + 55 Format 1 diff --git a/ferramentas/metaestat/index.js b/ferramentas/metaestat/index.js index f5cf5ee..d2604ca 100644 --- a/ferramentas/metaestat/index.js +++ b/ferramentas/metaestat/index.js @@ -124,6 +124,7 @@ i3GEOF.metaestat = { ' ' + ' ' + ' ' + + ' ' + '' + ''; //utilizado pelo seletor de colourramp return ins; -- libgit2 0.21.2