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 | 2801 | $shp_index = $result->shapeindex; |
2802 | 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 | 2807 | if (($prjTema != "") && ($prjMapa != $prjTema)) |
2807 | 2808 | { |
2808 | 2809 | $pt->project($projInObj, $projOutObj); | ... | ... |
classesphp/classe_legenda.php
... | ... | @@ -306,9 +306,11 @@ array |
306 | 306 | $layer = $this->mapa->getlayerbyname($l); |
307 | 307 | //verifica se é wms ou wfs |
308 | 308 | $c = $layer->connectiontype; |
309 | + | |
309 | 310 | $s = $layer->getmetadata("wms_sld_url"); |
310 | 311 | $im = $layer->getmetadata("legendaimg"); |
311 | 312 | $nc = $layer->numclasses; |
313 | + | |
312 | 314 | // |
313 | 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 | 102 | iddiv {String} - id do div que receberá o conteudo HTML da ferramenta |
103 | 103 | */ |
104 | 104 | inicia: function(iddiv){ |
105 | - i3GEO.janela.comboCabecalhoTemas("i3GEOFlegendaComboCabeca","i3GEOFlegendaComboCabecaSel","legenda","ligadosComTabela"); | |
105 | + i3GEO.janela.comboCabecalhoTemas("i3GEOFlegendaComboCabeca","i3GEOFlegendaComboCabecaSel","legenda","ligados"); | |
106 | 106 | if(i3GEO.temaAtivo === ""){ |
107 | 107 | $i(iddiv).innerHTML = "Escolha um tema na lista mostrada no cabeçalho"; |
108 | 108 | return; |
... | ... | @@ -217,7 +217,7 @@ i3GEOF.legenda = { |
217 | 217 | }, |
218 | 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 | 221 | {$i("i3GEOFlegendamostra").checked = false;} |
222 | 222 | $i("i3GEOFlegendamostra").onclick = function(){i3GEO.tema.invertestatuslegenda(i3GEOF.legenda.tema);}; |
223 | 223 | } |
... | ... | @@ -370,8 +370,8 @@ i3GEOF.legenda = { |
370 | 370 | $i("i3GEOF.legenda_corpo").style.backgroundColor = "white"; |
371 | 371 | i3GEOF.legenda.inicia(divid); |
372 | 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 | 376 | YAHOO.util.Event.addListener(janela[0].close, "click", temp); |
377 | 377 | }, | ... | ... |
ferramentas/pontosdistri/index.js.php
... | ... | @@ -109,7 +109,7 @@ i3GEOF.pontosDistri = { |
109 | 109 | ins += ' </ul>'; |
110 | 110 | ins += '</div><br>'; |
111 | 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 | 113 | ins += ' <div id=i3GEOpontosDistriTemas ></div>'; |
114 | 114 | ins += ' <p class="paragrafo">Restringe a análise aos limites de abrangência dos pontos?'; |
115 | 115 | ins += i3GEO.util.comboSimNao("i3GEOpontosDistrilimitePontos","sim"); |
... | ... | @@ -221,7 +221,7 @@ i3GEOF.pontosDistri = { |
221 | 221 | "i3GEOpontosDistriTemas", |
222 | 222 | "", |
223 | 223 | false, |
224 | - "pontosSelecionados" | |
224 | + "selecionados" | |
225 | 225 | ); |
226 | 226 | var i = $i("i3GEOF.pontosDistri_c").style; |
227 | 227 | i3GEO.janela.ULTIMOZINDEX++; | ... | ... |