Commit c3914df2c932b9a8ab838957c0d1375e5e2c6ae0
1 parent
3692dfef
Exists in
master
and in
7 other branches
--no commit message
Showing
4 changed files
with
11 additions
and
8 deletions
Show diff stats
classesphp/classe_analise.php
| @@ -2801,8 +2801,9 @@ function gravaCoordenadasPt($tema,$limitepontos="TRUE",$extendelimite) | @@ -2801,8 +2801,9 @@ function gravaCoordenadasPt($tema,$limitepontos="TRUE",$extendelimite) | ||
| 2801 | $shp_index = $result->shapeindex; | 2801 | $shp_index = $result->shapeindex; |
| 2802 | $shape = $layerPt->getfeature($shp_index,-1); | 2802 | $shape = $layerPt->getfeature($shp_index,-1); |
| 2803 | } | 2803 | } |
| 2804 | - $lineo = $shape->line(0); | ||
| 2805 | - $pt = $lineo->point(0); | 2804 | + //$lineo = $shape->line(0); |
| 2805 | + //$pt = $lineo->point(0); | ||
| 2806 | + $pt = $shape->getCentroid(); | ||
| 2806 | if (($prjTema != "") && ($prjMapa != $prjTema)) | 2807 | if (($prjTema != "") && ($prjMapa != $prjTema)) |
| 2807 | { | 2808 | { |
| 2808 | $pt->project($projInObj, $projOutObj); | 2809 | $pt->project($projInObj, $projOutObj); |
classesphp/classe_legenda.php
| @@ -306,9 +306,11 @@ array | @@ -306,9 +306,11 @@ array | ||
| 306 | $layer = $this->mapa->getlayerbyname($l); | 306 | $layer = $this->mapa->getlayerbyname($l); |
| 307 | //verifica se é wms ou wfs | 307 | //verifica se é wms ou wfs |
| 308 | $c = $layer->connectiontype; | 308 | $c = $layer->connectiontype; |
| 309 | + | ||
| 309 | $s = $layer->getmetadata("wms_sld_url"); | 310 | $s = $layer->getmetadata("wms_sld_url"); |
| 310 | $im = $layer->getmetadata("legendaimg"); | 311 | $im = $layer->getmetadata("legendaimg"); |
| 311 | $nc = $layer->numclasses; | 312 | $nc = $layer->numclasses; |
| 313 | + | ||
| 312 | // | 314 | // |
| 313 | //se for wms e tiver classes define o tipo de layer para poder gerar a legenda corretamente | 315 | //se for wms e tiver classes define o tipo de layer para poder gerar a legenda corretamente |
| 314 | // | 316 | // |
ferramentas/legenda/index.js.php
| @@ -102,7 +102,7 @@ i3GEOF.legenda = { | @@ -102,7 +102,7 @@ i3GEOF.legenda = { | ||
| 102 | iddiv {String} - id do div que receberá o conteudo HTML da ferramenta | 102 | iddiv {String} - id do div que receberá o conteudo HTML da ferramenta |
| 103 | */ | 103 | */ |
| 104 | inicia: function(iddiv){ | 104 | inicia: function(iddiv){ |
| 105 | - i3GEO.janela.comboCabecalhoTemas("i3GEOFlegendaComboCabeca","i3GEOFlegendaComboCabecaSel","legenda","ligadosComTabela"); | 105 | + i3GEO.janela.comboCabecalhoTemas("i3GEOFlegendaComboCabeca","i3GEOFlegendaComboCabecaSel","legenda","ligados"); |
| 106 | if(i3GEO.temaAtivo === ""){ | 106 | if(i3GEO.temaAtivo === ""){ |
| 107 | $i(iddiv).innerHTML = "Escolha um tema na lista mostrada no cabeçalho"; | 107 | $i(iddiv).innerHTML = "Escolha um tema na lista mostrada no cabeçalho"; |
| 108 | return; | 108 | return; |
| @@ -217,7 +217,7 @@ i3GEOF.legenda = { | @@ -217,7 +217,7 @@ i3GEOF.legenda = { | ||
| 217 | }, | 217 | }, |
| 218 | "i3GEOlegendaitens" | 218 | "i3GEOlegendaitens" |
| 219 | ); | 219 | ); |
| 220 | - if(i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema).classe.toLowerCase() == "nao") | 220 | + if(i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema).classe && i3GEO.arvoreDeCamadas.pegaTema(i3GEOF.legenda.tema).classe.toLowerCase() == "nao") |
| 221 | {$i("i3GEOFlegendamostra").checked = false;} | 221 | {$i("i3GEOFlegendamostra").checked = false;} |
| 222 | $i("i3GEOFlegendamostra").onclick = function(){i3GEO.tema.invertestatuslegenda(i3GEOF.legenda.tema);}; | 222 | $i("i3GEOFlegendamostra").onclick = function(){i3GEO.tema.invertestatuslegenda(i3GEOF.legenda.tema);}; |
| 223 | } | 223 | } |
| @@ -370,8 +370,8 @@ i3GEOF.legenda = { | @@ -370,8 +370,8 @@ i3GEOF.legenda = { | ||
| 370 | $i("i3GEOF.legenda_corpo").style.backgroundColor = "white"; | 370 | $i("i3GEOF.legenda_corpo").style.backgroundColor = "white"; |
| 371 | i3GEOF.legenda.inicia(divid); | 371 | i3GEOF.legenda.inicia(divid); |
| 372 | temp = function(){ | 372 | temp = function(){ |
| 373 | - if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search('i3GEO.janela.comboCabecalhoTemas("i3GEOFlegendaComboCabeca","i3GEOFlegendaComboCabecaSel","legenda","ligadosComTabela")') > 0) | ||
| 374 | - {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove('i3GEO.janela.comboCabecalhoTemas("i3GEOFlegendaComboCabeca","i3GEOFlegendaComboCabecaSel","legenda","ligadosComTabela")');} | 373 | + if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search('i3GEO.janela.comboCabecalhoTemas("i3GEOFlegendaComboCabeca","i3GEOFlegendaComboCabecaSel","legenda","ligados")') > 0) |
| 374 | + {i3GEO.eventos.ATUALIZAARVORECAMADAS.remove('i3GEO.janela.comboCabecalhoTemas("i3GEOFlegendaComboCabeca","i3GEOFlegendaComboCabecaSel","legenda","ligados")');} | ||
| 375 | }; | 375 | }; |
| 376 | YAHOO.util.Event.addListener(janela[0].close, "click", temp); | 376 | YAHOO.util.Event.addListener(janela[0].close, "click", temp); |
| 377 | }, | 377 | }, |
ferramentas/pontosdistri/index.js.php
| @@ -109,7 +109,7 @@ i3GEOF.pontosDistri = { | @@ -109,7 +109,7 @@ i3GEOF.pontosDistri = { | ||
| 109 | ins += ' </ul>'; | 109 | ins += ' </ul>'; |
| 110 | ins += '</div><br>'; | 110 | ins += '</div><br>'; |
| 111 | ins += '<div class="guiaobj" id="i3GEOpontosDistriguia1obj" style="left:1px;display:none;">'; | 111 | ins += '<div class="guiaobj" id="i3GEOpontosDistriguia1obj" style="left:1px;display:none;">'; |
| 112 | - ins += ' <p class="paragrafo" >Escolha o tema de pontos que será utilizado:</p>'; | 112 | + ins += ' <p class="paragrafo" >Escolha o tema que será utilizado (no caso de linhas ou polígonos, será calculado o centróide):</p>'; |
| 113 | ins += ' <div id=i3GEOpontosDistriTemas ></div>'; | 113 | ins += ' <div id=i3GEOpontosDistriTemas ></div>'; |
| 114 | ins += ' <p class="paragrafo">Restringe a análise aos limites de abrangência dos pontos?'; | 114 | ins += ' <p class="paragrafo">Restringe a análise aos limites de abrangência dos pontos?'; |
| 115 | ins += i3GEO.util.comboSimNao("i3GEOpontosDistrilimitePontos","sim"); | 115 | ins += i3GEO.util.comboSimNao("i3GEOpontosDistrilimitePontos","sim"); |
| @@ -221,7 +221,7 @@ i3GEOF.pontosDistri = { | @@ -221,7 +221,7 @@ i3GEOF.pontosDistri = { | ||
| 221 | "i3GEOpontosDistriTemas", | 221 | "i3GEOpontosDistriTemas", |
| 222 | "", | 222 | "", |
| 223 | false, | 223 | false, |
| 224 | - "pontosSelecionados" | 224 | + "selecionados" |
| 225 | ); | 225 | ); |
| 226 | var i = $i("i3GEOF.pontosDistri_c").style; | 226 | var i = $i("i3GEOF.pontosDistri_c").style; |
| 227 | i3GEO.janela.ULTIMOZINDEX++; | 227 | i3GEO.janela.ULTIMOZINDEX++; |