Commit 33e4ac6f69c401d9134f2bb6d8f1da4460cecb69

Authored by Edmar Moretti
1 parent 77e562b4

--no commit message

ferramentas/mostraexten/exemplo.htm
@@ -1,24 +0,0 @@ @@ -1,24 +0,0 @@
1 -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">  
2 -<html>  
3 -<head>  
4 -<script type="text/javascript" src="../../classesjs/i3geo.js"></script>  
5 -</head>  
6 -<body name="ancora" id="i3geo" class=yui-skin-sam >  
7 -<script type="text/javascript">  
8 -i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";  
9 -var g_localimg = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo/imagens";  
10 -var l = i3GEO.barraDeBotoes.LISTABOTOES;  
11 -var b = l.length-1;  
12 -do{  
13 - if (l[b].iddiv == "exten"){  
14 - if(l[b].conteudo)  
15 - {eval('$i("teste").innerHTML = "'+l[b].conteudo+'"');}  
16 - if(l[b].funcaoonclick){  
17 - l[b].funcaoonclick.call();  
18 - }  
19 - }  
20 -}  
21 -while (b--);  
22 -</script>  
23 -</body>  
24 -</html>  
25 \ No newline at end of file 0 \ No newline at end of file
ferramentas/mostraexten/index.htm
@@ -1,66 +0,0 @@ @@ -1,66 +0,0 @@
1 -<html>  
2 -<head>  
3 -<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">  
4 -<link rel="stylesheet" type="text/css" href="../../css/i3geo_ferramentas.css">  
5 -<title></title>  
6 -<style type="text/css" >button{background:url(../../imagens/tic.png) 98% 50% no-repeat;}</style>  
7 -<link rel="stylesheet" type="text/css" href="../../pacotes/yui270/build/button/assets/skins/sam/button.css"/>  
8 -<style type="text/css">  
9 -body {  
10 - margin:0;  
11 - padding:0;border:0px;  
12 -}  
13 -</style>  
14 -</head>  
15 -<body name="ancora" class="yui-skin-sam" >  
16 - <div style='left:0px;display:block'>  
17 - Extens&atilde;o geográfica atual, em d&eacute;cimos de grau. As coordenadas correspondem a menor longitude, menor latitude, maior longitude e maior latitude:  
18 - <textarea id=extatual rows=3 cols=50 ></textarea>  
19 - </div>  
20 - <div style="display:block;top:10px;left:0px">  
21 - Digite as coordenadas referentes a nova extensão geográfica desejada para o mapa. Utilize coordenadas (graus) negativos para indicar a longitude como oeste e latitude como sul:<br>  
22 - <br>  
23 - <table class=lista >  
24 - <tr>  
25 - <td>Menor longitude (oeste):</td>  
26 - <td>  
27 - <input onclick='javascript:this.select();' class=digitar id='xg' title='grau' type=text size=3 value='-00'/>  
28 - <input onclick='javascript:this.select();' class=digitar id='xm' title='minuto' type=text size=3 value='00'/>  
29 - <input onclick='javascript:this.select();' class=digitar id='xs' title='segundo' type=text size=3 value='0.0'/>  
30 - </td>  
31 - </tr>  
32 - <tr>  
33 - <td>Menor latitude (sul):</td>  
34 - <td>  
35 - <input onclick='javascript:this.select();' class=digitar id='yg' title='grau' type=text size=3 value='-00'/>  
36 - <input onclick='javascript:this.select();' class=digitar id='ym' title='minuto' type=text size=3 value='00'/>  
37 - <input onclick='javascript:this.select();' class=digitar id='ys' title='segundo' type=text size=3 value='0.0'/>  
38 - </td>  
39 - </tr>  
40 - <tr>  
41 - <td>Maior longitude (leste):</td>  
42 - <td>  
43 - <input onclick='javascript:this.select();' class=digitar id='xxg' title='grau' type=text size=3 value='-00'/>  
44 - <input onclick='javascript:this.select();' class=digitar id='xxm' title='minuto' type=text size=3 value='00'/>  
45 - <input onclick='javascript:this.select();' class=digitar id='xxs' title='segundo' type=text size=3 value='0.0'/>  
46 - </td>  
47 - </tr>  
48 - <tr>  
49 - <td>Maior latitude (norte):</td>  
50 - <td>  
51 - <input onclick='javascript:this.select();' class=digitar id='yyg' title='grau' type=text size=3 value='-00'/>  
52 - <input onclick='javascript:this.select();' class=digitar id='yym' title='minuto' type=text size=3 value='00'/>  
53 - <input onclick='javascript:this.select();' class=digitar id='yys' title='segundo' type=text size=3 value='0.0'/>  
54 - </td>  
55 - </tr>  
56 - </table>  
57 - </div>  
58 - <div id=opc2 style="display:block;top:15px;left:0px">  
59 - <div style=top:0px;left:0px;text-align:left onclick='aplicar()' >  
60 - <input id=botao1 type='button' size=14 value='Aplicar' />  
61 - </div>  
62 - </div>  
63 -<script src="../i3geo_tudo_compacto.js.php" type="text/javascript"></script>  
64 -<script language="JavaScript" type="text/javascript" src="index.js"></script>  
65 -</body>  
66 -</html>  
67 \ No newline at end of file 0 \ No newline at end of file
ferramentas/mostraexten/index.js
@@ -1,66 +0,0 @@ @@ -1,66 +0,0 @@
1 -/*  
2 -About: Licença  
3 -  
4 -I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet  
5 -  
6 -Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil  
7 -Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br  
8 -  
9 -Este programa é software livre; você pode redistribuí-lo  
10 -e/ou modificá-lo sob os termos da Licença Pública Geral  
11 -GNU conforme publicada pela Free Software Foundation;  
12 -tanto a versão 2 da Licença.  
13 -Este programa é distribuído na expectativa de que seja útil,  
14 -porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita  
15 -de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA.  
16 -Consulte a Licença Pública Geral do GNU para mais detalhes.  
17 -Você deve ter recebido uma cópia da Licença Pública Geral do  
18 -GNU junto com este programa; se não, escreva para a  
19 -Free Software Foundation, Inc., no endereço  
20 -59 Temple Street, Suite 330, Boston, MA 02111-1307 USA.  
21 -*/  
22 -//pega o elemento boxref para desenhar um retângulo no mapa de referência  
23 -  
24 -//inicializa alguns parâmetros.  
25 -parametrosURL()  
26 -new YAHOO.widget.Button("botao1");  
27 -$i("extatual").innerHTML = window.parent.i3GEO.parametros.mapexten  
28 -  
29 -function aplicar()  
30 -{  
31 - try  
32 - {  
33 - $i("extatual").innerHTML = "Para ver a nova extensão aplicada, abra novamente esta ferramenta";  
34 - var x = window.parent.i3GEO.calculo.dms2dd($i("xg").value,$i("xm").value,$i("xs").value);  
35 - var xx = window.parent.i3GEO.calculo.dms2dd($i("xxg").value,$i("xxm").value,$i("xxs").value);  
36 - var y = window.parent.i3GEO.calculo.dms2dd($i("yg").value,$i("ym").value,$i("ys").value);  
37 - var yy = window.parent.i3GEO.calculo.dms2dd($i("yyg").value,$i("yym").value,$i("yys").value);  
38 - if ((x == xx) || (y == yy))  
39 - {alert("Digite coordenadas válidas");return;}  
40 - if ((x > xx) || (y > yy))  
41 - {alert("Digite coordenadas válidas");return;}  
42 - window.parent.i3GEO.navega.zoomExt(g_locaplic,g_sid,window.parent.i3GEO.parametros.tipoimagem,(x+" "+y+" "+xx+" "+yy))  
43 - }  
44 - catch(e){alert(e+" Erro. Digite coordenadas válidas");}  
45 -}  
46 -//muda o box no mapa de referência  
47 -function mudabox()  
48 -{  
49 - if((boxref) && !window.parent.document.getElementById("refDinamico").checked)  
50 - {  
51 - var x = window.parent.i3GEO.calculo.dms2dd($i("xg").value,$i("xm").value,$i("xs").value);  
52 - var xx = window.parent.i3GEO.calculo.dms2dd($i("xxg").value,$i("xxm").value,$i("xxs").value);  
53 - var y = window.parent.i3GEO.calculo.dms2dd($i("yg").value,$i("ym").value,$i("ys").value);  
54 - var yy = window.parent.i3GEO.calculo.dms2dd($i("yyg").value,$i("yym").value,$i("yys").value);  
55 - if ((x == xx) || (y == yy))  
56 - {return;}  
57 - if ((x > xx) || (y > yy))  
58 - {return;}  
59 - //calculo da nova posição do box  
60 - var extr = window.parent.objmapa.extentref.split(" ");  
61 - boxref.style.left = ((extr[0] - x) / window.parent.g_celularef) * -1  
62 - boxref.style.width = ((xx - x) / window.parent.g_celularef)  
63 - boxref.style.top = ((extr[3] - yy) / window.parent.g_celularef)  
64 - boxref.style.height = ((yy - y) / window.parent.g_celularef)  
65 - }  
66 -}  
67 \ No newline at end of file 0 \ No newline at end of file