From c3914df2c932b9a8ab838957c0d1375e5e2c6ae0 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 5 Oct 2011 03:52:12 +0000 Subject: [PATCH] --- classesphp/classe_analise.php | 5 +++-- classesphp/classe_legenda.php | 2 ++ ferramentas/legenda/index.js.php | 8 ++++---- ferramentas/pontosdistri/index.js.php | 4 ++-- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/classesphp/classe_analise.php b/classesphp/classe_analise.php index 5037447..ba6a4d1 100644 --- a/classesphp/classe_analise.php +++ b/classesphp/classe_analise.php @@ -2801,8 +2801,9 @@ function gravaCoordenadasPt($tema,$limitepontos="TRUE",$extendelimite) $shp_index = $result->shapeindex; $shape = $layerPt->getfeature($shp_index,-1); } - $lineo = $shape->line(0); - $pt = $lineo->point(0); + //$lineo = $shape->line(0); + //$pt = $lineo->point(0); + $pt = $shape->getCentroid(); if (($prjTema != "") && ($prjMapa != $prjTema)) { $pt->project($projInObj, $projOutObj); diff --git a/classesphp/classe_legenda.php b/classesphp/classe_legenda.php index 9346599..76c40b5 100644 --- a/classesphp/classe_legenda.php +++ b/classesphp/classe_legenda.php @@ -306,9 +306,11 @@ array $layer = $this->mapa->getlayerbyname($l); //verifica se é wms ou wfs $c = $layer->connectiontype; + $s = $layer->getmetadata("wms_sld_url"); $im = $layer->getmetadata("legendaimg"); $nc = $layer->numclasses; + // //se for wms e tiver classes define o tipo de layer para poder gerar a legenda corretamente // diff --git a/ferramentas/legenda/index.js.php b/ferramentas/legenda/index.js.php index 0c5cc75..601adff 100644 --- a/ferramentas/legenda/index.js.php +++ b/ferramentas/legenda/index.js.php @@ -102,7 +102,7 @@ i3GEOF.legenda = { iddiv {String} - id do div que receberá o conteudo HTML da ferramenta */ inicia: function(iddiv){ - i3GEO.janela.comboCabecalhoTemas("i3GEOFlegendaComboCabeca","i3GEOFlegendaComboCabecaSel","legenda","ligadosComTabela"); + i3GEO.janela.comboCabecalhoTemas("i3GEOFlegendaComboCabeca","i3GEOFlegendaComboCabecaSel","legenda","ligados"); if(i3GEO.temaAtivo === ""){ $i(iddiv).innerHTML = "Escolha um tema na lista mostrada no cabeçalho"; return; @@ -217,7 +217,7 @@ i3GEOF.legenda = { }, "i3GEOlegendaitens" ); - if(i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema).classe.toLowerCase() == "nao") + if(i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema).classe && i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema).classe.toLowerCase() == "nao") {$i("i3GEOFlegendamostra").checked = false;} $i("i3GEOFlegendamostra").onclick = function(){i3GEO.tema.invertestatuslegenda(i3GEOF.legenda.tema);}; } @@ -370,8 +370,8 @@ i3GEOF.legenda = { $i("i3GEOF.legenda_corpo").style.backgroundColor = "white"; i3GEOF.legenda.inicia(divid); temp = function(){ - if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search('i3GEO.janela.comboCabecalhoTemas("i3GEOFlegendaComboCabeca","i3GEOFlegendaComboCabecaSel","legenda","ligadosComTabela")') > 0) - {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove('i3GEO.janela.comboCabecalhoTemas("i3GEOFlegendaComboCabeca","i3GEOFlegendaComboCabecaSel","legenda","ligadosComTabela")');} + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search('i3GEO.janela.comboCabecalhoTemas("i3GEOFlegendaComboCabeca","i3GEOFlegendaComboCabecaSel","legenda","ligados")') > 0) + {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove('i3GEO.janela.comboCabecalhoTemas("i3GEOFlegendaComboCabeca","i3GEOFlegendaComboCabecaSel","legenda","ligados")');} }; YAHOO.util.Event.addListener(janela[0].close, "click", temp); }, diff --git a/ferramentas/pontosdistri/index.js.php b/ferramentas/pontosdistri/index.js.php index 0ea9690..f19813b 100644 --- a/ferramentas/pontosdistri/index.js.php +++ b/ferramentas/pontosdistri/index.js.php @@ -109,7 +109,7 @@ i3GEOF.pontosDistri = { ins += ' '; ins += '
'; ins += '