Commit b96a3623bcfb31c0944b7549015567267847d649
1 parent
dc4184be
Exists in
master
and in
7 other branches
Incluida opção de acesso ao WMS na árvore de camadas
Showing
8 changed files
with
95 additions
and
44 deletions
Show diff stats
classesjs/classe_arvoredecamadas.js
... | ... | @@ -281,7 +281,8 @@ i3GEO.arvoreDeCamadas = { |
281 | 281 | cortina:true, |
282 | 282 | sql:true, |
283 | 283 | comentar:true, |
284 | - temporizador:true | |
284 | + temporizador:true, | |
285 | + wms: true | |
285 | 286 | }, |
286 | 287 | /* |
287 | 288 | Variavel: CAMADAS |
... | ... | @@ -920,8 +921,12 @@ i3GEO.arvoreDeCamadas = { |
920 | 921 | {i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t40"),$trad("t41"),'i3GEO.tema.dialogo.editorsql(\"'+ltema.name+'\")',node);} |
921 | 922 | if(funcoes.comentar === true && ltema.permitecomentario.toLowerCase() !== "nao" && i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios === true) |
922 | 923 | {i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t45"),$trad("t45"),'i3GEO.tema.dialogo.comentario(\"'+ltema.name+'\")',node);} |
924 | + if(funcoes.wms === true && ltema.permiteogc.toLowerCase() !== "nao"){ | |
925 | + i3GEO.arvoreDeCamadas.adicionaOpcaoTema("Getcapabilities",'WMS-OGC','i3GEO.tema.dialogo.mostraWms(\"'+ltema.name+'\")',node); | |
926 | + } | |
923 | 927 | if(i3GEO.parametros.editor.toLowerCase() === "sim") |
924 | 928 | {i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t44"),"<span style=color:red title='Apenas usuários editores podem ver essa opção' >"+$trad("t44")+"</span>",'i3GEO.tema.dialogo.salvaMapfile(\"'+ltema.name+'\")',node);} |
929 | + | |
925 | 930 | node.loadComplete(); |
926 | 931 | }, |
927 | 932 | /* | ... | ... |
classesjs/classe_janela.js
... | ... | @@ -511,9 +511,9 @@ i3GEO.janela = { |
511 | 511 | } |
512 | 512 | }, |
513 | 513 | /* |
514 | - Function: alerta | |
514 | + Function: ativaAlerta | |
515 | 515 | |
516 | - Abre uma janela com mensagem (windows.alert) | |
516 | + Substitui a janelça de alerta padrão do sistema operacional por uma outra customizada | |
517 | 517 | |
518 | 518 | Parametros: |
519 | 519 | |
... | ... | @@ -546,6 +546,38 @@ i3GEO.janela = { |
546 | 546 | }; |
547 | 547 | }, |
548 | 548 | /* |
549 | + Function: mensagemSimples | |
550 | + | |
551 | + Mostra uma janela simples com uma mensagem | |
552 | + | |
553 | + Parametros: | |
554 | + | |
555 | + texto {String} - texto da mensagem | |
556 | + */ | |
557 | + mensagemSimples: function(texto,cabecalho){ | |
558 | + if(!$i("mensagemSimples1")){ | |
559 | + YAHOO.namespace("mensagemSimples"); | |
560 | + YAHOO.mensagemSimples = new YAHOO.widget.SimpleDialog("mensagemSimples1", | |
561 | + { | |
562 | + width: "300px", | |
563 | + fixedcenter: true, | |
564 | + visible: true, | |
565 | + draggable: true, | |
566 | + zIndex: 100000, | |
567 | + textAlign: "left", | |
568 | + close: true, | |
569 | + modal: false, | |
570 | + effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}, | |
571 | + constraintoviewport: true, | |
572 | + text: "" | |
573 | + }); | |
574 | + } | |
575 | + YAHOO.mensagemSimples.setHeader(cabecalho); | |
576 | + YAHOO.mensagemSimples.render(document.body); | |
577 | + YAHOO.mensagemSimples.cfg.setProperty("text",texto); | |
578 | + YAHOO.mensagemSimples.show(); | |
579 | + }, | |
580 | + /* | |
549 | 581 | Function: tip |
550 | 582 | |
551 | 583 | Cria um DIV e posiciona sobre o mapa na posição do mouse. | ... | ... |
classesjs/classe_tema.js
... | ... | @@ -409,6 +409,18 @@ i3GEO.tema = { |
409 | 409 | */ |
410 | 410 | dialogo:{ |
411 | 411 | /* |
412 | + Function: mostraWms | |
413 | + | |
414 | + Mostra a url que dá acesso ao WMS de um tema | |
415 | + | |
416 | + Parametros: | |
417 | + | |
418 | + tema - código do tema escolhido | |
419 | + */ | |
420 | + mostraWms: function(tema){ | |
421 | + i3GEO.janela.mensagemSimples(i3GEO.configura.locaplic+"/ogc.php?tema="+tema,"Endereço do WMS"); | |
422 | + }, | |
423 | + /* | |
412 | 424 | Function: comentario |
413 | 425 | |
414 | 426 | Abre a janela de diálogo para o usuário ver e inserir comentarios em um tema | ... | ... |
classesjs/dicionario.js
... | ... | @@ -595,7 +595,7 @@ it:"Clicca per regolare la mappa per visualizzare tutto lo strato" |
595 | 595 | }], |
596 | 596 | "t18a":[ |
597 | 597 | { |
598 | -pt:"Opções", | |
598 | +pt:"Opções e propriedades", | |
599 | 599 | en:"Options", |
600 | 600 | es:"Opciones", |
601 | 601 | it:"Opzioni" |
... | ... | @@ -644,7 +644,7 @@ it:"Trova gli elementi nel tema secondo i suoi attributi descrittivi." |
644 | 644 | }], |
645 | 645 | "t23":[ |
646 | 646 | { |
647 | -pt:"Procurar...", | |
647 | +pt:"Procurar", | |
648 | 648 | en:"Search...", |
649 | 649 | es:"Buscar...", |
650 | 650 | it:"Cerca..." |
... | ... | @@ -658,7 +658,7 @@ it:"Creare un nuovo strato sulla mappa per visualizzare testi descrittivi sul te |
658 | 658 | }], |
659 | 659 | "t25":[ |
660 | 660 | { |
661 | -pt:"Texto...", | |
661 | +pt:"Texto (nomes ou valores)", | |
662 | 662 | en:"Label...", |
663 | 663 | es:"Texto...", |
664 | 664 | it:"Testo..." |
... | ... | @@ -672,7 +672,7 @@ it:"Definire le etichette da visualizzare quando il mouse si ferma su un element |
672 | 672 | }], |
673 | 673 | "t27":[ |
674 | 674 | { |
675 | -pt:"Etiquetas...", | |
675 | +pt:"Ativar etiquetas", | |
676 | 676 | en:"Tooltip...", |
677 | 677 | es:"Etiquetas...", |
678 | 678 | it:"Descrizioni..." |
... | ... | @@ -686,7 +686,7 @@ it:"Inserisci un filtro in questo tema per mostrare solo determinate informazion |
686 | 686 | }], |
687 | 687 | "t29":[ |
688 | 688 | { |
689 | -pt:"Filtro...", | |
689 | +pt:"Filtrar", | |
690 | 690 | en:"Filter...", |
691 | 691 | es:"Filtro...", |
692 | 692 | it:"Filtro..." |
... | ... | @@ -700,7 +700,7 @@ it:"Vedi la tabella degli attributi di questo tema." |
700 | 700 | }], |
701 | 701 | "t31":[ |
702 | 702 | { |
703 | -pt:"Tabela...", | |
703 | +pt:"Tabela com os dados", | |
704 | 704 | en:"Table...", |
705 | 705 | es:"Tabla...", |
706 | 706 | it:"Tabella..." |
... | ... | @@ -714,7 +714,7 @@ it:"Aprire l'editor di legenda, che consente la modifica della forma di rapprese |
714 | 714 | }], |
715 | 715 | "t33":[ |
716 | 716 | { |
717 | -pt:"Editar legenda...", | |
717 | +pt:"Editar legenda", | |
718 | 718 | en:"Legend edit...", |
719 | 719 | es:"Editar subtítulo...", |
720 | 720 | it:"Modifica la legenda" |
... | ... | @@ -728,7 +728,7 @@ it:"Mostra i dati di questo tema in una finestra che accompagna il mouse." |
728 | 728 | }], |
729 | 729 | "t35":[ |
730 | 730 | { |
731 | -pt:"Mostra em janela...", | |
731 | +pt:"Mostra em janela", | |
732 | 732 | en:"Show in window", |
733 | 733 | es:"Muestra en la ventana...", |
734 | 734 | it: "Mostra nella finestra..." |
... | ... | @@ -756,7 +756,7 @@ it:"Exporta a legenda para o padrão SLD." |
756 | 756 | }], |
757 | 757 | "t39":[ |
758 | 758 | { |
759 | -pt:"Exportar SLD...", | |
759 | +pt:"Exportar SLD", | |
760 | 760 | en:"SLD...", |
761 | 761 | es:"SLD...", |
762 | 762 | it:"SLD..." |
... | ... | @@ -770,21 +770,21 @@ it:"Abre a ferramenta que permite alterar o SQL de acesso aos dados" |
770 | 770 | }], |
771 | 771 | "t41":[ |
772 | 772 | { |
773 | -pt:"Editar SQL...", | |
773 | +pt:"Editar SQL", | |
774 | 774 | en:"SQL...", |
775 | 775 | es:"SQL...", |
776 | 776 | it:"SQL..." |
777 | 777 | }], |
778 | 778 | "t42":[ |
779 | 779 | { |
780 | -pt:"Cortina...", | |
780 | +pt:"Efeito cortina", | |
781 | 781 | en:"Curtain...", |
782 | 782 | es:"Cortina...", |
783 | 783 | it:"Tenda..." |
784 | 784 | }], |
785 | 785 | "t43":[ |
786 | 786 | { |
787 | -pt:"Aplicar SLD...", | |
787 | +pt:"Aplicar SLD", | |
788 | 788 | en:"Aplicar SLD...", |
789 | 789 | es:"Aplicar SLD...", |
790 | 790 | it:"Aplicar SLD..." | ... | ... |
classesphp/classe_mapa.php
... | ... | @@ -280,7 +280,8 @@ string - javascript com os parametros |
280 | 280 | "wmsformat"=>$wmsformat, |
281 | 281 | "wmssrs"=>$wmssrs, |
282 | 282 | "tiles"=>$tiles, |
283 | - "temporizador"=>($oLayer->getmetadata("temporizador")) | |
283 | + "temporizador"=>($oLayer->getmetadata("temporizador")), | |
284 | + "permiteogc"=>($oLayer->getmetadata("permiteogc")) | |
284 | 285 | ); |
285 | 286 | } |
286 | 287 | } | ... | ... |
ms_criamapa.php
... | ... | @@ -463,12 +463,10 @@ Redireciona para o HTML definido em $interface, abrindo o mapa |
463 | 463 | function abreInterface(){ |
464 | 464 | global $interface,$caminho,$tempo; |
465 | 465 | $nomeInterface = explode(".",basename($interface)); |
466 | - | |
467 | 466 | $_SESSION["interface"] = $nomeInterface[0]; |
468 | - | |
469 | 467 | if (count(explode(".php",$interface)) > 1) |
470 | 468 | { |
471 | - if (file_exists($caminho."interface/".$interface)) | |
469 | + if(file_exists($caminho."interface/".$interface)) | |
472 | 470 | {include_once($caminho."interface/".$interface);} |
473 | 471 | else |
474 | 472 | {include_once($interface);} |
... | ... | @@ -476,7 +474,7 @@ function abreInterface(){ |
476 | 474 | } |
477 | 475 | else |
478 | 476 | { |
479 | - if (file_exists($caminho."interface/".$interface)) | |
477 | + if(file_exists($caminho."interface/".$interface)) | |
480 | 478 | {$urln = $caminho."interface/".$interface."?".session_id();} |
481 | 479 | else |
482 | 480 | {$urln = $interface."?".session_id();} | ... | ... |
ogc.htm
... | ... | @@ -41,15 +41,13 @@ P |
41 | 41 | <p><div style=text-align:left id=curtir ></div> |
42 | 42 | <div style="background-color:white"><p><img src="imagens/i3geo1bw.jpg" /></div> |
43 | 43 | </div> |
44 | -</body> | |
44 | + | |
45 | 45 | <script> |
46 | 46 | /* |
47 | 47 | Title: ogc.htm |
48 | 48 | |
49 | 49 | Monta uma árvore de temas permitindo que o usuário clique em um deles e veja o endereço para acesso aos dados via WMS. |
50 | 50 | |
51 | -A lista de dados pode vir do arquivo menutemas.xml ou de um diretório no servidor. | |
52 | - | |
53 | 51 | File: i3geo/ogc.htm |
54 | 52 | About: Licença |
55 | 53 | |
... | ... | @@ -71,26 +69,6 @@ GNU junto com este programa; se não, escreva para a |
71 | 69 | Free Software Foundation, Inc., no endereço |
72 | 70 | 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. |
73 | 71 | */ |
74 | -var loc = window.location.href; | |
75 | - | |
76 | -g_locaplic = loc.split("/ogc.htm"); | |
77 | -g_locaplic = g_locaplic[0] | |
78 | -i3GEO.configura.locaplic = g_locaplic | |
79 | - | |
80 | -$i("bm1").innerHTML = i3GEO.social.bookmark(loc); | |
81 | -i3GEO.social.compartilhar("curtir",loc,loc,"comtotal"); | |
82 | - | |
83 | -g_arvoreClicks = "" | |
84 | -i3GEO.idioma.IDSELETOR = "bandeiras"; | |
85 | -i3GEO.idioma.mostraSeletor(); | |
86 | -i3GEO.arvoreDeTemas.INCLUISISTEMAS = false | |
87 | -i3GEO.arvoreDeTemas.FILTRAOGC = true | |
88 | -i3GEO.arvoreDeTemas.INCLUIWMS = false | |
89 | -i3GEO.arvoreDeTemas.OPCOESADICIONAIS.incluiArvore = false | |
90 | -i3GEO.arvoreDeTemas.OPCOESADICIONAIS.incluibusca = false | |
91 | -i3GEO.arvoreDeTemas.TIPOBOTAO = "radio"; | |
92 | - | |
93 | -i3GEO.arvoreDeTemas.cria("",g_locaplic,"arvoreTemas","ogc_endereco\(this\)"); | |
94 | 72 | /* |
95 | 73 | Function: endereco |
96 | 74 | |
... | ... | @@ -127,5 +105,30 @@ function ogc_endereco(tema) |
127 | 105 | $i("bm").innerHTML = i3GEO.social.bookmark(servico); |
128 | 106 | //document.getElementById("corpo").innerHTML = ins |
129 | 107 | } |
108 | + | |
109 | + | |
110 | + | |
111 | +var loc = window.location.href; | |
112 | + | |
113 | +var temp = loc.split("/ogc.htm"); | |
114 | +g_locaplic = temp[0] | |
115 | +i3GEO.configura.locaplic = g_locaplic; | |
116 | + | |
117 | +$i("bm1").innerHTML = i3GEO.social.bookmark(loc); | |
118 | +i3GEO.social.compartilhar("curtir",loc,loc,"comtotal"); | |
119 | + | |
120 | +g_arvoreClicks = "" | |
121 | +i3GEO.idioma.IDSELETOR = "bandeiras"; | |
122 | +i3GEO.idioma.mostraSeletor(); | |
123 | +i3GEO.arvoreDeTemas.INCLUISISTEMAS = false | |
124 | +i3GEO.arvoreDeTemas.FILTRAOGC = true | |
125 | +i3GEO.arvoreDeTemas.INCLUIWMS = false | |
126 | +i3GEO.arvoreDeTemas.OPCOESADICIONAIS.incluiArvore = false | |
127 | +i3GEO.arvoreDeTemas.OPCOESADICIONAIS.incluibusca = false | |
128 | +i3GEO.arvoreDeTemas.TIPOBOTAO = "radio"; | |
129 | + | |
130 | +i3GEO.arvoreDeTemas.cria("",g_locaplic,"arvoreTemas","ogc_endereco\(this\)"); | |
131 | + | |
130 | 132 | </script> |
133 | +</body> | |
131 | 134 | </html> | ... | ... |
testainstal.php
... | ... | @@ -55,7 +55,7 @@ echo "<pre>\n"; |
55 | 55 | echo "<b>TESTE DE INSTALACAO DO i3Geo</b><br>\n"; |
56 | 56 | echo getcwd(); |
57 | 57 | //echo "<br>SERVER_SOFTWARE: ".$SERVER_SOFTWARE."<br>"; |
58 | -echo "<br><br>PHP (a versão deve ser a 5x e menor que 5.3): "; | |
58 | +echo "<br><br>PHP (a versão deve ser a 5x): "; | |
59 | 59 | echo "<br>".phpversion()."<br>\n"; |
60 | 60 | include("classesphp/carrega_ext.php"); |
61 | 61 | $exts = get_loaded_extensions(); | ... | ... |