Commit ce43744463621da5b778c991073a487c64b0694e

Authored by Edmar Moretti
1 parent e0027624

--no commit message

classesjs/classe_arvoredetemas.js
@@ -110,7 +110,9 @@ i3GEO.arvoreDeTemas = { @@ -110,7 +110,9 @@ i3GEO.arvoreDeTemas = {
110 110
111 uploadarquivo: true, //upload de GPX, SHAPEFILE, DBF, CSV e KML 111 uploadarquivo: true, //upload de GPX, SHAPEFILE, DBF, CSV e KML
112 112
113 - flutuante: true //mostra a opcao que permite abrir o catalogo em uma janela flutuante 113 + flutuante: true, //mostra a opcao que permite abrir o catalogo em uma janela flutuante
  114 +
  115 + metaestat: true
114 } 116 }
115 117
116 Tipo: 118 Tipo:
@@ -144,7 +146,8 @@ i3GEO.arvoreDeTemas = { @@ -144,7 +146,8 @@ i3GEO.arvoreDeTemas = {
144 importarwmc: true, 146 importarwmc: true,
145 googleearth: true, 147 googleearth: true,
146 carregaKml: true, 148 carregaKml: true,
147 - flutuante: true 149 + flutuante: true,
  150 + metaestat: true
148 }, 151 },
149 /* 152 /*
150 Propriedade: FATORESTRELA 153 Propriedade: FATORESTRELA
@@ -176,6 +179,15 @@ i3GEO.arvoreDeTemas = { @@ -176,6 +179,15 @@ i3GEO.arvoreDeTemas = {
176 */ 179 */
177 INCLUIWMS: true, 180 INCLUIWMS: true,
178 /* 181 /*
  182 + Propriedade: INCLUIWMSMETAESTAT
  183 +
  184 + Inclui na arvore a lista de Web Services WMS advindos do sistema de metadados estatisticos?
  185 +
  186 + Tipo:
  187 + {Boolean}
  188 + */
  189 + INCLUIWMSMETAESTAT: true,
  190 + /*
179 Propriedade: INCLUIESTRELAS 191 Propriedade: INCLUIESTRELAS
180 192
181 Inclui na arvore um no com a lista de temas classificados conforme o numero de estrelas que possui 193 Inclui na arvore um no com a lista de temas classificados conforme o numero de estrelas que possui
@@ -408,6 +420,34 @@ i3GEO.arvoreDeTemas = { @@ -408,6 +420,34 @@ i3GEO.arvoreDeTemas = {
408 i3GEO.php.listaRSSwsARRAY(monta,"WMS"); 420 i3GEO.php.listaRSSwsARRAY(monta,"WMS");
409 }, 421 },
410 /* 422 /*
  423 + Lista os WMS cadastrados no sistema METAESTAT preenchendo o no OGC-WMS
  424 + */
  425 + listaWMSmetaestat: function(){
  426 + if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.listaWMSmetaestat()");}
  427 + var monta = function(retorno){
  428 + var node,raiz,nraiz,i,html,tempNode;
  429 + node = i3GEO.arvoreDeTemas.ARVORE.getNodeByProperty("idwmsmetaestat","raiz");
  430 + raiz = retorno.data.canais;
  431 + nraiz = raiz.length;
  432 + for (i=0;i<nraiz; i += 1){
  433 + html = "<span title='"+raiz[i].description+"'> "+raiz[i].title;
  434 + if(raiz[i].nacessos > 0){
  435 + html += " ("+((raiz[i].nacessosok * 100) / (raiz[i].nacessos*1))+"%)</span>";
  436 + }
  437 + else
  438 + {html += " (% de acessos n&atilde;o definido)</span>";}
  439 + html += "<hr>";
  440 + tempNode = new YAHOO.widget.HTMLNode(
  441 + {html:html,id_ws:raiz[i].id_ws,url:raiz[i].link,nivel:0,expanded:false,enableHighlight:false},
  442 + node
  443 + );
  444 + tempNode.setDynamicLoad(i3GEO.arvoreDeTemas.listaLayersWMS, 1);
  445 + }
  446 + node.loadComplete();
  447 + };
  448 + i3GEO.php.listaRSSwsARRAY(monta,"WMSMETAESTAT");
  449 + },
  450 + /*
411 Lista os layers de um WMS e preenche o no OGC-WMS 451 Lista os layers de um WMS e preenche o no OGC-WMS
412 */ 452 */
413 listaLayersWMS: function(node){ 453 listaLayersWMS: function(node){
@@ -915,6 +955,19 @@ i3GEO.arvoreDeTemas = { @@ -915,6 +955,19 @@ i3GEO.arvoreDeTemas = {
915 tempNode.setDynamicLoad(i3GEO.arvoreDeTemas.listaWMS, 1); 955 tempNode.setDynamicLoad(i3GEO.arvoreDeTemas.listaWMS, 1);
916 } 956 }
917 // 957 //
  958 + //wmsmetaestat
  959 + //
  960 + if(i3GEO.arvoreDeTemas.INCLUIWMSMETAESTAT === true){
  961 + tempNode = new YAHOO.widget.HTMLNode(
  962 + {
  963 + html:"<span style='position:relative;top:-2px;'><b>&nbsp;OGC-WMS Metaestat</b></span>"+" <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=4&idajuda=112' >&nbsp;&nbsp;&nbsp;</a>"+editor,
  964 + idwmsmetaestat:"raiz",expanded:false,enableHighlight:false
  965 + },
  966 + root
  967 + );
  968 + tempNode.setDynamicLoad(i3GEO.arvoreDeTemas.listaWMSmetaestat, 1);
  969 + }
  970 + //
918 //estrelas 971 //estrelas
919 // 972 //
920 if(i3GEO.arvoreDeTemas.INCLUIESTRELAS === true){ 973 if(i3GEO.arvoreDeTemas.INCLUIESTRELAS === true){
@@ -1484,6 +1537,10 @@ i3GEO.arvoreDeTemas = { @@ -1484,6 +1537,10 @@ i3GEO.arvoreDeTemas = {
1484 ins += "<td><img "+estilo("buscaInde")+" onclick='i3GEO.arvoreDeTemas.dialogo.buscaInde()' title='Pesquisa na INDE'/></td>"; 1537 ins += "<td><img "+estilo("buscaInde")+" onclick='i3GEO.arvoreDeTemas.dialogo.buscaInde()' title='Pesquisa na INDE'/></td>";
1485 t += 20; 1538 t += 20;
1486 } 1539 }
  1540 + if(OPCOESADICIONAIS.metaestat === true){
  1541 + ins += "<td><img "+estilo("iconeMetaestat")+" onclick='i3GEO.mapa.dialogo.metaestat()' title='Cartogramas estatisticos'/></td>";
  1542 + t += 20;
  1543 + }
1487 return("<table width='"+t+"px' ><tr>"+ins+"</tr></table>"); 1544 return("<table width='"+t+"px' ><tr>"+ins+"</tr></table>");
1488 }, 1545 },
1489 /* 1546 /*
classesjs/dicionario_ajuda.js
@@ -940,6 +940,14 @@ g_traducao_ajuda = { @@ -940,6 +940,14 @@ g_traducao_ajuda = {
940 complemento:"", 940 complemento:"",
941 tela:"", 941 tela:"",
942 apijs:"i3GEO.mapa.dialogo.locregiao()" 942 apijs:"i3GEO.mapa.dialogo.locregiao()"
  943 + },
  944 + "112": {
  945 + titulo: "&Aacute;rvore de endere&ccedil;os WMS Metaestat",
  946 + diretorio:"classe_arvoredetemas.js",
  947 + categoria:"4",
  948 + pt:"Mostra os WMS cuja origem &eacute; o sistema de metadados estat&iacute;cos. Esse sistema apresenta cartogramas gerados de forma din&aacute;mica no padr&atilde;o WMS-Time",
  949 + complemento:"",
  950 + apijs: "i3GEO.arvoreDeTemas.listaWMSmetaestat(node)"
943 } 951 }
944 } 952 }
945 }; 953 };
classesphp/wscliente.php
@@ -460,7 +460,7 @@ $cp {CPAINT} - Objeto CPAINT. @@ -460,7 +460,7 @@ $cp {CPAINT} - Objeto CPAINT.
460 460
461 $rss {string} - Endere&ccedil;os dos RSS. 461 $rss {string} - Endere&ccedil;os dos RSS.
462 462
463 -$tipo {string} - Tipo de recurso, permite a escolha do programa PHP que ser&aacute; usado GEORSS|WMS|WS|DOWNLOAD 463 +$tipo {string} - Tipo de recurso, permite a escolha do programa PHP que ser&aacute; usado GEORSS|WMS|WS|DOWNLOAD|WMSMETAESTAT
464 464
465 Retorno: 465 Retorno:
466 466
@@ -581,4 +581,4 @@ function listaRSSws() @@ -581,4 +581,4 @@ function listaRSSws()
581 else {$retorna = $erro;} 581 else {$retorna = $erro;}
582 $cp->set_data($retorna); 582 $cp->set_data($retorna);
583 } 583 }
584 -?>  
585 \ No newline at end of file 584 \ No newline at end of file
  585 +?>
css/botoes2.css
@@ -296,6 +296,14 @@ @@ -296,6 +296,14 @@
296 border: 1px solid #DCDCDC; 296 border: 1px solid #DCDCDC;
297 } 297 }
298 298
  299 +.iconeMetaestat {
  300 + background-image: URL('../imagens/visual/default/sprite2.png');
  301 + background-repeat: no-repeat;
  302 + background-position: 0px -728px;
  303 + width: 16px;
  304 + border: 1px solid #DCDCDC;
  305 +}
  306 +
299 #barraedicao { 307 #barraedicao {
300 background-image: URL('../imagens/visual/default/sprite2.png'); 308 background-image: URL('../imagens/visual/default/sprite2.png');
301 background-repeat: no-repeat; 309 background-repeat: no-repeat;
@@ -989,4 +997,4 @@ button { @@ -989,4 +997,4 @@ button {
989 margin-top: 5px; 997 margin-top: 5px;
990 font-size: 11px; 998 font-size: 11px;
991 top: 38px; 999 top: 38px;
992 -}  
993 \ No newline at end of file 1000 \ No newline at end of file
  1001 +}
imagens/visual/default/sprite2.png

22.1 KB | W: | H:

22.8 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin