From c233b02c3fb70d2cc2eed6867c0b4b666d2be349 Mon Sep 17 00:00:00 2001
From: Edmar Moretti
Date: Mon, 5 Nov 2012 23:11:27 +0000
Subject: [PATCH] Correções na ferramenta de geração de KML 3d (TME)
---
admin/admin.db | Bin 152576 -> 0 bytes
admin/js/core.js | 20 ++++++++++++++------
admin/js/editormapfile.js | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++---------------
admin/php/editormapfile.php | 42 +++++++++++++++++++++++++++++++++++-------
classesjs/classe_gadgets.js | 2 +-
classesjs/classe_janela.js | 15 ++++++++-------
ferramentas/metaestat/index.js | 12 ++++++++----
ferramentas/tme/index.js | 11 +++++++----
pacotes/tme/TME_Engine.php | 64 +++++++++++++++++++++++++++++++++++++++-------------------------
pacotes/tme/TME_i3geo.php | 33 ++++++++++++++++++++++-----------
pacotes/tme/TME_i3geo_DataConnector.php | 8 +++++++-
temas/bairros.map | 12 +++++++++---
12 files changed, 202 insertions(+), 84 deletions(-)
diff --git a/admin/admin.db b/admin/admin.db
index ed5cc64..5fea3b1 100644
Binary files a/admin/admin.db and b/admin/admin.db differ
diff --git a/admin/js/core.js b/admin/js/core.js
index 7469c2f..a721107 100644
--- a/admin/js/core.js
+++ b/admin/js/core.js
@@ -953,7 +953,7 @@ function core_menuCheckBox(valores,textos,selecionados,target,record,key){
{ label: "Cancel", value: "CANCEL", checked: false }
]);
og_core.on("checkedButtonChange", on_menuCheckBoxChange);
- YAHOO.admin.container.panelCK = new YAHOO.widget.Overlay("core_menuCK", { zindex:"100",close:false,underlay:false,width:"300px", height:"200px",overflow:"auto", visible:false,constraintoviewport:true } );
+ YAHOO.admin.container.panelCK = new YAHOO.widget.Overlay("core_menuCK", { zindex:"100",close:false,underlay:false,width:"300px", height:"200px",overflow:"auto", visible:false,constraintoviewport:false } );
YAHOO.admin.container.panelCK.render();
}
onde = $i("core_menuCK_bd");
@@ -1428,7 +1428,7 @@ function core_montaEditor(funcaoOK,w,h,funcaoClose,titulo,modal)
}}}
);
}
- YAHOO.admin.container.panelEditor = new YAHOO.widget.Panel("janela_editor", { fixedcenter:true,close:true,width:w, overflow:"auto",modal: modal,visible:false,constraintoviewport:true } );
+ YAHOO.admin.container.panelEditor = new YAHOO.widget.Panel("janela_editor", { fixedcenter:"contained",close:true,width:w, overflow:"auto",modal: modal,visible:false,constraintoviewport:true } );
YAHOO.admin.container.panelEditor.render();
}
else
@@ -1479,16 +1479,24 @@ function core_abreCor(janela,elemento)
}
function core_desativaforms(lista){
var n = lista.length,
- i;
+ i,t;
for (i=0;i
";
+ ins += "
Esse mapfile baseia-se no sistema de metadados estatísticos? Caso escolha sim, a conexão com o banco e o sql de acesso aos dados serão construídos de forma dinâmica
";
+ ins += "";
ins += "
Título do novo tema
";
ins += "
Em português:
";
ins += "";
@@ -657,17 +661,17 @@ Adiciona um novo mapfile
*/
function adicionaNovoMapfile()
{
- var nome = $i("Etitulo").value;
- var it = $i("EtituloIT").value;
- var es = $i("EtituloES").value;
- var en = $i("EtituloEN").value;
- var codigo = $i("Ecodigo").value;
+ var nome = $i("Etitulo").value,
+ it = $i("EtituloIT").value,
+ es = $i("EtituloES").value,
+ en = $i("EtituloEN").value,
+ codigo = $i("Ecodigo").value,
+ metaestat = $i("Emetaestat").value;
if(codigo === "")
{alert("Digite o nome do arquivo");return;}
- sUrl = "../php/editormapfile.php?funcao=criarNovoMap&nome="+nome+"&codigo="+codigo+"&it="+it+"&en="+en+"&es="+es;
+ sUrl = "../php/editormapfile.php?funcao=criarNovoMap&nome="+nome+"&codigo="+codigo+"&it="+it+"&en="+en+"&es="+es+"&metaestat="+metaestat;
core_carregando("ativa");
core_carregando(" adicionando um novo mapfile");
-
var callback =
{
success:function(o)
@@ -1443,8 +1447,11 @@ function montaEditorDispo(dados)
function montaEditorDados(dados)
{
var idsForms = ["connection","data","tileitem","tileindex","type","tipooriginal"];
+ var idsMetaestat = ["connection","data","tileitem","tileindex","tipooriginal"];
var param = {
"linhas":[
+ {ajuda:"Indica se as definições da camada estão relacionadas ao sistema de metadados estatísticos. Se estiver, alguns parâmetros são obtidos de forma automática, como a conexão e o SQL de acesso aos dados.",
+ titulo:"Esse mapfile está integrado ao sistema de metadados estatísticos?",id:"",value:dados.metaestat,tipo:"text",div:""},
{ajuda:"Type of connection. Default is local.",
titulo:"Connectiontype",id:"",value:"",div:"",tipo:"text"},
{ajuda:"Aplica a conversão de caracteres nas ferramentas que obtém os dados descritivos referentes aos elementos do LAYER. Em alguns casos, a conversão pode provocar problemas de acentuação. Se isso ocorrer, na ferramenta tabela por exemplo, experimente marcar essa opção como 'nao'",
@@ -1468,7 +1475,7 @@ function montaEditorDados(dados)
{ajuda:"Name of the tileindex file or layer. A tileindex is similar to an ArcInfo library index. The tileindex contains polygon features for each tile. The item that contains the location of the tiled data is given using the TILEITEM parameter. When a file is used as the tileindex for shapefile or raster layers, the tileindex should be a shapefile. For CONNECTIONTYPE OGR layers, any OGR supported datasource can be a tileindex. Normally the location should contain the path to the tile file relative to the shapepath, not relative to the tileindex itself. If the DATA parameter contains a value then it is added to the end of the location. When a tileindex layer is used, it works similarly to directly referring to a file, but any supported feature source can be used (ie. postgres, oracle).NOTE: All files in the tileindex should have the same coordinate system, and for vector files the same set of attributes in the same order.",
titulo:"tileindex",id:"tileindex",value:dados.tileindex,tipo:"text"},
{ajuda:"Tipo de representação das feições mostradas da camada. É importante definir esse parâmetro para que as funções de geração de SLD funcionem corretamente.",
- titulo:"Tipo de representação (tipooriginal) - para temas do tipo WMS",id:"",value:dados.tipooriginal,tipo:"text",div:""}
+ titulo:"Tipo de representação (tipooriginal) - para temas do tipo WMS",id:"",value:dados.tipooriginal,tipo:"text",div:""}
]
};
var ins = "";
@@ -1488,17 +1495,24 @@ function montaEditorDados(dados)
ins += core_geraLinhas(param);
ins += "