Commit ce43744463621da5b778c991073a487c64b0694e
1 parent
e0027624
Exists in
master
and in
7 other branches
--no commit message
Showing
5 changed files
with
78 additions
and
5 deletions
Show diff stats
classesjs/classe_arvoredetemas.js
... | ... | @@ -110,7 +110,9 @@ i3GEO.arvoreDeTemas = { |
110 | 110 | |
111 | 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 | 118 | Tipo: |
... | ... | @@ -144,7 +146,8 @@ i3GEO.arvoreDeTemas = { |
144 | 146 | importarwmc: true, |
145 | 147 | googleearth: true, |
146 | 148 | carregaKml: true, |
147 | - flutuante: true | |
149 | + flutuante: true, | |
150 | + metaestat: true | |
148 | 151 | }, |
149 | 152 | /* |
150 | 153 | Propriedade: FATORESTRELA |
... | ... | @@ -176,6 +179,15 @@ i3GEO.arvoreDeTemas = { |
176 | 179 | */ |
177 | 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 | 191 | Propriedade: INCLUIESTRELAS |
180 | 192 | |
181 | 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 | 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ã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 | 451 | Lista os layers de um WMS e preenche o no OGC-WMS |
412 | 452 | */ |
413 | 453 | listaLayersWMS: function(node){ |
... | ... | @@ -915,6 +955,19 @@ i3GEO.arvoreDeTemas = { |
915 | 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> OGC-WMS Metaestat</b></span>"+" <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=4&idajuda=112' > </a>"+editor, | |
964 | + idwmsmetaestat:"raiz",expanded:false,enableHighlight:false | |
965 | + }, | |
966 | + root | |
967 | + ); | |
968 | + tempNode.setDynamicLoad(i3GEO.arvoreDeTemas.listaWMSmetaestat, 1); | |
969 | + } | |
970 | + // | |
918 | 971 | //estrelas |
919 | 972 | // |
920 | 973 | if(i3GEO.arvoreDeTemas.INCLUIESTRELAS === true){ |
... | ... | @@ -1484,6 +1537,10 @@ i3GEO.arvoreDeTemas = { |
1484 | 1537 | ins += "<td><img "+estilo("buscaInde")+" onclick='i3GEO.arvoreDeTemas.dialogo.buscaInde()' title='Pesquisa na INDE'/></td>"; |
1485 | 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 | 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 | 940 | complemento:"", |
941 | 941 | tela:"", |
942 | 942 | apijs:"i3GEO.mapa.dialogo.locregiao()" |
943 | + }, | |
944 | + "112": { | |
945 | + titulo: "Árvore de endereços WMS Metaestat", | |
946 | + diretorio:"classe_arvoredetemas.js", | |
947 | + categoria:"4", | |
948 | + pt:"Mostra os WMS cuja origem é o sistema de metadados estatícos. Esse sistema apresenta cartogramas gerados de forma dinámica no padrã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 | 460 | |
461 | 461 | $rss {string} - Endereços dos RSS. |
462 | 462 | |
463 | -$tipo {string} - Tipo de recurso, permite a escolha do programa PHP que será usado GEORSS|WMS|WS|DOWNLOAD | |
463 | +$tipo {string} - Tipo de recurso, permite a escolha do programa PHP que será usado GEORSS|WMS|WS|DOWNLOAD|WMSMETAESTAT | |
464 | 464 | |
465 | 465 | Retorno: |
466 | 466 | |
... | ... | @@ -581,4 +581,4 @@ function listaRSSws() |
581 | 581 | else {$retorna = $erro;} |
582 | 582 | $cp->set_data($retorna); |
583 | 583 | } |
584 | -?> | |
585 | 584 | \ No newline at end of file |
585 | +?> | ... | ... |
css/botoes2.css
... | ... | @@ -296,6 +296,14 @@ |
296 | 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 | 307 | #barraedicao { |
300 | 308 | background-image: URL('../imagens/visual/default/sprite2.png'); |
301 | 309 | background-repeat: no-repeat; |
... | ... | @@ -989,4 +997,4 @@ button { |
989 | 997 | margin-top: 5px; |
990 | 998 | font-size: 11px; |
991 | 999 | top: 38px; |
992 | -} | |
993 | 1000 | \ No newline at end of file |
1001 | +} | ... | ... |
imagens/visual/default/sprite2.png