Commit 28fc52ff80f1eca4afcf9ec699876f8d1a5dcd8a

Authored by Edmar Moretti
1 parent dac6a57f

Correção na função de carregamento de javascript

admin/admin.db
No preview for this file type
admin/js/listatemas.js
@@ -35,7 +35,7 @@ function montaEditorTema(dados) @@ -35,7 +35,7 @@ function montaEditorTema(dados)
35 { label: "Salva", value: "OK", checked: false}, 35 { label: "Salva", value: "OK", checked: false},
36 { label: "Cancela", value: "CANCEL", checked: false } 36 { label: "Cancela", value: "CANCEL", checked: false }
37 ]); 37 ]);
38 - editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); 38 + editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange);
39 YAHOO.admin.container.panelEditorTema = new YAHOO.widget.Panel("janela_editor_tema", { fixedcenter:true,close:true,width:"400px", height:"400px",overflow:"auto", visible:false,constraintoviewport:true } ); 39 YAHOO.admin.container.panelEditorTema = new YAHOO.widget.Panel("janela_editor_tema", { fixedcenter:true,close:true,width:"400px", height:"400px",overflow:"auto", visible:false,constraintoviewport:true } );
40 YAHOO.admin.container.panelEditorTema.render(); 40 YAHOO.admin.container.panelEditorTema.render();
41 var fecha = function() 41 var fecha = function()
@@ -90,19 +90,19 @@ function montaDivTemas(i) @@ -90,19 +90,19 @@ function montaDivTemas(i)
90 ins += "<option value='WMS' "; 90 ins += "<option value='WMS' ";
91 if (i.tipoa_tema == "WMS"){ins += "selected";} 91 if (i.tipoa_tema == "WMS"){ins += "selected";}
92 ins += " >WMS<option></select></p>"; 92 ins += " >WMS<option></select></p>";
93 - ins += "<p>Permite acesso via WMS/WFS?<br>"; 93 + ins += "<p>Permite acesso via WMS/WFS? (n&atilde; restringe em temas do tipo gvSIG)<br>";
94 ins += "<select id='ogc_tema' >"; 94 ins += "<select id='ogc_tema' >";
95 ins += core_combosimnao(i.ogc_tema); 95 ins += core_combosimnao(i.ogc_tema);
96 ins += "</select></p>"; 96 ins += "</select></p>";
97 - ins += "<p>Permite o download na aplica&ccedil;&atilde;o datadownload.htm? (n&atilde;o afeta a permiss&atilde;o de download definida no item 'disponibilidade' existente em cada layer)<br>"; 97 + ins += "<p>Permite o download na aplica&ccedil;&atilde;o datadownload.htm? (n&atilde; afeta temas do tipo gvSIG) (n&atilde;o afeta a permiss&atilde;o de download definida no item 'disponibilidade' existente em cada layer)<br>";
98 ins += "<select id='download_tema' >"; 98 ins += "<select id='download_tema' >";
99 ins += core_combosimnao(i.download_tema); 99 ins += core_combosimnao(i.download_tema);
100 ins += "</select></p>"; 100 ins += "</select></p>";
101 - ins += "<p>Permite acesso via kml?<br>"; 101 + ins += "<p>Permite acesso via kml? (n&atilde; restringe em temas do tipo gvSIG)<br>";
102 ins += "<select id='kml_tema' >"; 102 ins += "<select id='kml_tema' >";
103 ins += core_combosimnao(i.kml_tema); 103 ins += core_combosimnao(i.kml_tema);
104 ins += "</select></p>"; 104 ins += "</select></p>";
105 - ins += "<p>Permite acesso via kmz (kml com dados vetoriais)?<br>"; 105 + ins += "<p>Permite acesso via kmz (kml com dados vetoriais)? (n&atilde; restringe em temas do tipo gvSIG)<br>";
106 ins += "<select id='kmz_tema' >"; 106 ins += "<select id='kmz_tema' >";
107 ins += core_combosimnao(i.kmz_tema); 107 ins += core_combosimnao(i.kmz_tema);
108 ins += "</select></p>"; 108 ins += "</select></p>";
@@ -133,7 +133,7 @@ function atualizaMiniatura(){ @@ -133,7 +133,7 @@ function atualizaMiniatura(){
133 }, 133 },
134 failure:core_handleFailure, 134 failure:core_handleFailure,
135 argument: { foo:"foo", bar:"bar" } 135 argument: { foo:"foo", bar:"bar" }
136 - }; 136 + };
137 core_makeRequest(sUrl,callback,"GET"); 137 core_makeRequest(sUrl,callback,"GET");
138 } 138 }
139 function gravaDadosTema(id) 139 function gravaDadosTema(id)
@@ -141,7 +141,7 @@ function gravaDadosTema(id) @@ -141,7 +141,7 @@ function gravaDadosTema(id)
141 //validacao 141 //validacao
142 if($i("kml_tema") && $i("ogc_tema")){ 142 if($i("kml_tema") && $i("ogc_tema")){
143 if(($i("ogc_tema").value).toLowerCase() == "sim") 143 if(($i("ogc_tema").value).toLowerCase() == "sim")
144 - {$i("kml_tema").value = "SIM";} 144 + {$i("kml_tema").value = "SIM";}
145 } 145 }
146 if($i("kml_tema") && $i("kmz_tema")){ 146 if($i("kml_tema") && $i("kmz_tema")){
147 if(($i("kmz_tema").value).toLowerCase() == "sim") 147 if(($i("kmz_tema").value).toLowerCase() == "sim")
@@ -190,6 +190,6 @@ function gravaDadosTema(id) @@ -190,6 +190,6 @@ function gravaDadosTema(id)
190 }, 190 },
191 failure:core_handleFailure, 191 failure:core_handleFailure,
192 argument: { foo:"foo", bar:"bar" } 192 argument: { foo:"foo", bar:"bar" }
193 - }; 193 + };
194 core_makeRequest(sUrl,callback,"POST"); 194 core_makeRequest(sUrl,callback,"POST");
195 } 195 }
196 \ No newline at end of file 196 \ No newline at end of file
admin/php/menutemas.php
@@ -481,12 +481,11 @@ switch (strtoupper($funcao)) @@ -481,12 +481,11 @@ switch (strtoupper($funcao))
481 case "ALTERATEMAS": 481 case "ALTERATEMAS":
482 //$r ser&aacute; igual ao novo id criado, no caso de inser&ccedil;&atilde;o de um novo tema 482 //$r ser&aacute; igual ao novo id criado, no caso de inser&ccedil;&atilde;o de um novo tema
483 $r = alteraTemas(); 483 $r = alteraTemas();
484 - if($id == "")  
485 - { 484 + if($id == ""){
486 retornaJSON($r); 485 retornaJSON($r);
487 } 486 }
488 - else  
489 - {retornaJSON(pegaDados("select * from ".$esquemaadmin."i3geoadmin_temas where id_tema = $id")); 487 + else{
  488 + retornaJSON(pegaDados("select * from ".$esquemaadmin."i3geoadmin_temas where id_tema = $id"));
490 } 489 }
491 exit; 490 exit;
492 break; 491 break;
@@ -1125,26 +1124,27 @@ function alteraTemas() @@ -1125,26 +1124,27 @@ function alteraTemas()
1125 $q = $dbh->query($sql,PDO::FETCH_ASSOC); 1124 $q = $dbh->query($sql,PDO::FETCH_ASSOC);
1126 $resultado = $q->fetchAll(); 1125 $resultado = $q->fetchAll();
1127 $mapfile = $resultado[0]["codigo_tema"]; 1126 $mapfile = $resultado[0]["codigo_tema"];
1128 - $mapfile = $locaplic."/temas/".$mapfile.".map";  
1129 -  
1130 - if($mapa = @ms_newMapObj($mapfile))  
1131 - {  
1132 - $mapa = ms_newMapObj($mapfile);  
1133 - $numlayers = $mapa->numlayers;  
1134 - for ($i=0;$i < $numlayers;$i++) 1127 + if(file_exists($locaplic."/temas/".$mapfile.".map")){
  1128 + $mapfile = $locaplic."/temas/".$mapfile.".map";
  1129 + if($mapa = @ms_newMapObj($mapfile))
1135 { 1130 {
1136 - $layer = $mapa->getlayer($i);  
1137 - $layer->setmetadata("permitedownload",strtolower($download));  
1138 - $layer->setmetadata("permiteogc",strtolower($ogc));  
1139 - $layer->setmetadata("permitekml",strtolower($kml));  
1140 - $layer->setmetadata("permitekmz",strtolower($kmz));  
1141 - if(count($nomes) == 1) 1131 + $mapa = ms_newMapObj($mapfile);
  1132 + $numlayers = $mapa->numlayers;
  1133 + for ($i=0;$i < $numlayers;$i++)
1142 { 1134 {
1143 - $layer->setmetadata("tema",$nomeo); 1135 + $layer = $mapa->getlayer($i);
  1136 + $layer->setmetadata("permitedownload",strtolower($download));
  1137 + $layer->setmetadata("permiteogc",strtolower($ogc));
  1138 + $layer->setmetadata("permitekml",strtolower($kml));
  1139 + $layer->setmetadata("permitekmz",strtolower($kmz));
  1140 + if(count($nomes) == 1)
  1141 + {
  1142 + $layer->setmetadata("tema",$nomeo);
  1143 + }
1144 } 1144 }
  1145 + $mapa->save($mapfile);
  1146 + removeCabecalho($mapfile);
1145 } 1147 }
1146 - $mapa->save($mapfile);  
1147 - removeCabecalho($mapfile);  
1148 } 1148 }
1149 } 1149 }
1150 else 1150 else
classesjs/i3geo47.js
@@ -58,7 +58,7 @@ $i = function(id) @@ -58,7 +58,7 @@ $i = function(id)
58 for (i = 0; i < scripts.length; i++) { 58 for (i = 0; i < scripts.length; i++) {
59 var src = scripts[i].getAttribute('src'); 59 var src = scripts[i].getAttribute('src');
60 if (src) { 60 if (src) {
61 - var index = src.lastIndexOf("i3geo.js"); 61 + var index = src.lastIndexOf("i3geo47.js");
62 // is it found, at the end of the URL? 62 // is it found, at the end of the URL?
63 if ((index > -1) && (index + "i3geo47.js".length == src.length)) { 63 if ((index > -1) && (index + "i3geo47.js".length == src.length)) {
64 scriptLocation = src.slice(0, -"i3geo47.js".length); 64 scriptLocation = src.slice(0, -"i3geo47.js".length);
geraminiatura.php
@@ -142,12 +142,17 @@ function verificaMiniatura($map,$tipo,$admin=false) @@ -142,12 +142,17 @@ function verificaMiniatura($map,$tipo,$admin=false)
142 $tema = ""; 142 $tema = "";
143 $map = str_replace("\\","/",$map); 143 $map = str_replace("\\","/",$map);
144 $map = basename($map); 144 $map = basename($map);
145 - if (file_exists($locaplic.'/temas/'.$map))  
146 - {$tema = $locaplic.'/temas/'.$map;}  
147 - if (file_exists($locaplic.'/temas/'.$map.'.map'))  
148 - {$tema = $locaplic.'/temas/'.$map.".map";}  
149 - if ($tema != "")  
150 - { 145 + $extensao = ".map";
  146 + if (file_exists($locaplic.'/temas/'.$map)){
  147 + $tema = $locaplic.'/temas/'.$map;
  148 + }
  149 + else{
  150 + if (file_exists($locaplic.'/temas/'.$map.'.gvp')){
  151 + $extensao = ".gvp";
  152 + }
  153 + $tema = $locaplic.'/temas/'.$map.$extensao;
  154 + }
  155 + if ($tema != ""){
151 if(isset($base) && $base != ""){ 156 if(isset($base) && $base != ""){
152 if(file_exists($base)) 157 if(file_exists($base))
153 {$f = $base;} 158 {$f = $base;}
@@ -158,13 +163,12 @@ function verificaMiniatura($map,$tipo,$admin=false) @@ -158,13 +163,12 @@ function verificaMiniatura($map,$tipo,$admin=false)
158 exit; 163 exit;
159 } 164 }
160 } 165 }
161 - else  
162 - { 166 + else{
163 $f = ""; 167 $f = "";
164 - if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN'))  
165 - {$f = $locaplic."/aplicmap/geral1windowsv".$versao.".map";}  
166 - else  
167 - { 168 + if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')){
  169 + $f = $locaplic."/aplicmap/geral1windowsv".$versao.".map";
  170 + }
  171 + else{
168 if($f == "" && file_exists('/var/www/i3geo/aplicmap/geral1debianv'.$versao.'.map')){ 172 if($f == "" && file_exists('/var/www/i3geo/aplicmap/geral1debianv'.$versao.'.map')){
169 $f = "/var/www/i3geo/aplicmap/geral1debianv".$versao.".map"; 173 $f = "/var/www/i3geo/aplicmap/geral1debianv".$versao.".map";
170 } 174 }
@@ -174,53 +178,62 @@ function verificaMiniatura($map,$tipo,$admin=false) @@ -174,53 +178,62 @@ function verificaMiniatura($map,$tipo,$admin=false)
174 if($f == "" && file_exists('/opt/www/html/i3geo/aplicmap/geral1fedorav'.$versao.'.map')){ 178 if($f == "" && file_exists('/opt/www/html/i3geo/aplicmap/geral1fedorav'.$versao.'.map')){
175 $f = "/opt/www/html/i3geo/aplicmap/geral1v".$versao.".map"; 179 $f = "/opt/www/html/i3geo/aplicmap/geral1v".$versao.".map";
176 } 180 }
177 - if($f == "")  
178 - {$f = $locaplic."/aplicmap/geral1v".$versao.".map";} 181 + if($f == ""){
  182 + $f = $locaplic."/aplicmap/geral1v".$versao.".map";
  183 + }
179 } 184 }
180 } 185 }
181 $mapa = ms_newMapObj($f); 186 $mapa = ms_newMapObj($f);
182 - if(@ms_newMapObj($tema))  
183 - {$nmapa = ms_newMapObj($tema);}  
184 - else  
185 - {  
186 - echo "erro no arquivo $tema <br>";  
187 - return;  
188 - }  
189 - $dados = "";  
190 - $numlayers = $nmapa->numlayers;  
191 - for ($i=0;$i < $numlayers;$i++)  
192 - {  
193 - $layern = $nmapa->getlayer($i);  
194 - $layern->set("status",MS_DEFAULT);  
195 - ms_newLayerObj($mapa, $layern);  
196 - autoClasses($layern,$mapa,$locaplic);  
197 - if ($layern->data == "")  
198 - {$dados = $layern->connection;}  
199 - else  
200 - {$dados = $layern->data;}  
201 - $pegarext = $teman;  
202 - }  
203 - if (isset($postgis_mapa))  
204 - {  
205 - if ($postgis_mapa != "")  
206 - {  
207 - $numlayers = $mapa->numlayers;  
208 - for ($i=0;$i < $numlayers;++$i)  
209 - {  
210 - $layer = $mapa->getlayer($i);  
211 - if ($layer->connectiontype == MS_POSTGIS)  
212 - {  
213 - if ($layer->connection == " ")  
214 - {  
215 - $layer->set("connection",$postgis_mapa); 187 + if($extensao == ".map"){
  188 + if(@ms_newMapObj($tema)){
  189 + $nmapa = ms_newMapObj($tema);
  190 + }
  191 + else{
  192 + echo "erro no arquivo $tema <br>";
  193 + return;
  194 + }
  195 + $dados = "";
  196 + $numlayers = $nmapa->numlayers;
  197 + for ($i=0;$i < $numlayers;$i++){
  198 + $layern = $nmapa->getlayer($i);
  199 + $layern->set("status",MS_DEFAULT);
  200 + ms_newLayerObj($mapa, $layern);
  201 + autoClasses($layern,$mapa,$locaplic);
  202 + if ($layern->data == ""){
  203 + $dados = $layern->connection;
  204 + }
  205 + else{
  206 + $dados = $layern->data;
  207 + }
  208 + $pegarext = $teman->name;
  209 + }
  210 + if (isset($postgis_mapa)){
  211 + if ($postgis_mapa != ""){
  212 + $numlayers = $mapa->numlayers;
  213 + for ($i=0;$i < $numlayers;++$i){
  214 + $layer = $mapa->getlayer($i);
  215 + if ($layer->connectiontype == MS_POSTGIS){
  216 + if ($layer->connection == " "){
  217 + $layer->set("connection",$postgis_mapa);
  218 + }
216 } 219 }
217 } 220 }
218 } 221 }
219 } 222 }
  223 + zoomTemaMiniatura($pegarext,$mapa);
220 } 224 }
221 - zoomTemaMiniatura($pegarext,$mapa);  
222 - if ($tipo == "mini" || $tipo == "todos")  
223 - { 225 + if($extensao == ".gvp"){
  226 + include_once($locaplic."/pacotes/gvsig/gvsig2mapfile/class.gvsig2mapfile.php");
  227 + $gm = new gvsig2mapfile($tema);
  228 + $gvsigview = $gm->getViewsNames();
  229 + $gvsigview = $gvsigview[0];
  230 + $dataView = $gm->getViewData($gvsigview);
  231 + $next = $dataView["extent"];
  232 + $ext = $mapa->extent;
  233 + $ext->setextent($next[0],$next[1],$next[2],$next[3]);
  234 + $mapa = $gm->addLayers($mapa,$gvsigview,$dataView["layerNames"]);
  235 + }
  236 + if ($tipo == "mini" || $tipo == "todos"){
224 $mapa->setsize(50,50); 237 $mapa->setsize(50,50);
225 $sca = $mapa->scalebar; 238 $sca = $mapa->scalebar;
226 $sca->set("status",MS_OFF); 239 $sca->set("status",MS_OFF);
@@ -230,8 +243,7 @@ function verificaMiniatura($map,$tipo,$admin=false) @@ -230,8 +243,7 @@ function verificaMiniatura($map,$tipo,$admin=false)
230 $weboM = $mapa->web; 243 $weboM = $mapa->web;
231 $urlM = $weboM->imageurl."/".$map; 244 $urlM = $weboM->imageurl."/".$map;
232 } 245 }
233 - if ($tipo == "grande" || $tipo == "todos")  
234 - { 246 + if ($tipo == "grande" || $tipo == "todos"){
235 $mapa->setsize(300,300); 247 $mapa->setsize(300,300);
236 $sca = $mapa->scalebar; 248 $sca = $mapa->scalebar;
237 $sca->set("status",MS_OFF); 249 $sca->set("status",MS_OFF);
@@ -241,23 +253,21 @@ function verificaMiniatura($map,$tipo,$admin=false) @@ -241,23 +253,21 @@ function verificaMiniatura($map,$tipo,$admin=false)
241 $weboG = $mapa->web; 253 $weboG = $mapa->web;
242 $urlG = $weboG->imageurl."/".$map; 254 $urlG = $weboG->imageurl."/".$map;
243 } 255 }
244 - if($tipo=="mini" || $tipo == "todos")  
245 - {  
246 - if($objImagemM->imagepath == "")  
247 - {echo "Erro IMAGEPATH vazio";return;} 256 + if($tipo=="mini" || $tipo == "todos"){
  257 + if($objImagemM->imagepath == ""){
  258 + echo "Erro IMAGEPATH vazio";return;
  259 + }
248 $nomecM = ($objImagemM->imagepath).$map.".mini.png"; 260 $nomecM = ($objImagemM->imagepath).$map.".mini.png";
249 $objImagemM->saveImage($nomecM); 261 $objImagemM->saveImage($nomecM);
250 } 262 }
251 - if($tipo=="grande" || $tipo == "todos")  
252 - {  
253 - if($objImagemG->imagepath == "")  
254 - {echo "Erro IMAGEPATH vazio";return;} 263 + if($tipo=="grande" || $tipo == "todos"){
  264 + if($objImagemG->imagepath == ""){
  265 + echo "Erro IMAGEPATH vazio";return;
  266 + }
255 $nomecG = ($objImagemG->imagepath).$map.".grande.png"; 267 $nomecG = ($objImagemG->imagepath).$map.".grande.png";
256 $objImagemG->saveImage($nomecG); 268 $objImagemG->saveImage($nomecG);
257 } 269 }
258 -  
259 - if($admin == false)  
260 - { 270 + if($admin == false){
261 if($tipo=="mini" || $tipo == "todos") 271 if($tipo=="mini" || $tipo == "todos")
262 {echo "<br><img src='".$urlM.".mini.png' /><br>";} 272 {echo "<br><img src='".$urlM.".mini.png' /><br>";}
263 if($tipo=="grande" || $tipo == "todos") 273 if($tipo=="grande" || $tipo == "todos")
@@ -266,8 +276,7 @@ function verificaMiniatura($map,$tipo,$admin=false) @@ -266,8 +276,7 @@ function verificaMiniatura($map,$tipo,$admin=false)
266 // 276 //
267 //copia a imagem 277 //copia a imagem
268 // 278 //
269 - if($admin == true)  
270 - { 279 + if($admin == true){
271 $dir = $locaplic."/temas/miniaturas"; 280 $dir = $locaplic."/temas/miniaturas";
272 $mini = $dir."/".$map.".map.mini.png"; 281 $mini = $dir."/".$map.".map.mini.png";
273 $grande = $dir."/".$map.".map.grande.png"; 282 $grande = $dir."/".$map.".map.grande.png";
interface/googlemaps.phtml
@@ -106,7 +106,7 @@ include_once(&quot;../ms_configura.php&quot;); @@ -106,7 +106,7 @@ include_once(&quot;../ms_configura.php&quot;);
106 </div> 106 </div>
107 107
108 <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> 108 <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
109 -<script type="text/javascript" src="../classesjs/i3geo.js"></script> 109 +<script type="text/javascript" src="../classesjs/i3geo47.js"></script>
110 <script type="text/javascript"> 110 <script type="text/javascript">
111 /* 111 /*
112 Title: Google Maps 112 Title: Google Maps
interface/minima.htm
@@ -5,9 +5,9 @@ @@ -5,9 +5,9 @@
5 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> 5 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
6 <title>i3Geo - Mapa interativo</title> 6 <title>i3Geo - Mapa interativo</title>
7 7
8 -<!-- Leitura dos programas javaScript e estilos individualmente. Pode-se ler os 8 +<!-- Leitura dos programas javaScript e estilos individualmente. Pode-se ler os
9 arquivos n&atilde;o compactados, bastando substituir por i3geonaocompacto --> 9 arquivos n&atilde;o compactados, bastando substituir por i3geonaocompacto -->
10 -<script type="text/javascript" src="../classesjs/i3geo.js"></script> 10 +<script type="text/javascript" src="../classesjs/i3geo47.js"></script>
11 <script type="text/javascript" src="../pacotes/openlayers/OpenLayers29.js.php"></script> 11 <script type="text/javascript" src="../pacotes/openlayers/OpenLayers29.js.php"></script>
12 12
13 </head> 13 </head>
@@ -33,7 +33,7 @@ arquivos n&amp;atilde;o compactados, bastando substituir por i3geonaocompacto --&gt; @@ -33,7 +33,7 @@ arquivos n&amp;atilde;o compactados, bastando substituir por i3geonaocompacto --&gt;
33 <div id=corpoMapa style="background-image:url('../imagens/i3geo1bw.jpg');"></div> 33 <div id=corpoMapa style="background-image:url('../imagens/i3geo1bw.jpg');"></div>
34 </td></tr> 34 </td></tr>
35 </table> 35 </table>
36 - 36 +
37 </td> 37 </td>
38 </tr> 38 </tr>
39 <tr> 39 <tr>
@@ -59,15 +59,15 @@ arquivos n&amp;atilde;o compactados, bastando substituir por i3geonaocompacto --&gt; @@ -59,15 +59,15 @@ arquivos n&amp;atilde;o compactados, bastando substituir por i3geonaocompacto --&gt;
59 <tr style="border:0px"><td colspan=3 style="background-image:url('../imagens/visual/default/rodape.png');height:10px"></td></tr> 59 <tr style="border:0px"><td colspan=3 style="background-image:url('../imagens/visual/default/rodape.png');height:10px"></td></tr>
60 </table> 60 </table>
61 </center> 61 </center>
62 -<div id=barraDeBotoes1 style='display:none'> 62 +<div id=barraDeBotoes1 style='display:none'>
63 <table title="zoom" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="zoom" alt="" src="../imagens/branco.gif" id='zoomli'/></td></tr></table> 63 <table title="zoom" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="zoom" alt="" src="../imagens/branco.gif" id='zoomli'/></td></tr></table>
64 <table title="desloca" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="desloca" alt="" src="../imagens/branco.gif" ID='pan'/></td></tr></table> 64 <table title="desloca" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="desloca" alt="" src="../imagens/branco.gif" ID='pan'/></td></tr></table>
65 <table title="info" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="info" alt="" src="../imagens/branco.gif" id='identifica'/></td></tr></table> 65 <table title="info" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="info" alt="" src="../imagens/branco.gif" id='identifica'/></td></tr></table>
66 - <table title="geral" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="geral" alt="" src="../imagens/branco.gif" ID='zoomtot'/></td></tr></table> 66 + <table title="geral" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="geral" alt="" src="../imagens/branco.gif" ID='zoomtot'/></td></tr></table>
67 <table title="extensao" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="extensao" alt="" src="../imagens/branco.gif" id="exten"/></td></tr></table> 67 <table title="extensao" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="extensao" alt="" src="../imagens/branco.gif" id="exten"/></td></tr></table>
68 - <table title="mede" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="mede" alt="" src="../imagens/branco.gif" id='mede'/></td></tr></table>  
69 - <table title="area" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="area" alt="" src="../imagens/branco.gif" id='area'/></td></tr></table>  
70 - <table title="imprimir" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="imprimir" alt="" src="../imagens/branco.gif" id='imprimir'/></td></tr></table> 68 + <table title="mede" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="mede" alt="" src="../imagens/branco.gif" id='mede'/></td></tr></table>
  69 + <table title="area" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="area" alt="" src="../imagens/branco.gif" id='area'/></td></tr></table>
  70 + <table title="imprimir" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="imprimir" alt="" src="../imagens/branco.gif" id='imprimir'/></td></tr></table>
71 </div> 71 </div>
72 <script type="text/javascript"> 72 <script type="text/javascript">
73 /* 73 /*
@@ -84,18 +84,18 @@ i3GEO.configura.locaplic = i3GEO.util.protocolo()+&quot;://&quot;+window.location.host+&quot;/i @@ -84,18 +84,18 @@ i3GEO.configura.locaplic = i3GEO.util.protocolo()+&quot;://&quot;+window.location.host+&quot;/i
84 84
85 i3GEO.Interface.ATUAL = "openlayers"; 85 i3GEO.Interface.ATUAL = "openlayers";
86 i3GEO.Interface.IDCORPO = "contemImg"; 86 i3GEO.Interface.IDCORPO = "contemImg";
87 -i3GEO.configura.diminuixN = 20 87 +i3GEO.configura.diminuixN = 20;
88 88
89 i3GEO.Interface.openlayers.GADGETS = { 89 i3GEO.Interface.openlayers.GADGETS = {
90 PanZoomBar:true, 90 PanZoomBar:true,
91 PanZoom:false, 91 PanZoom:false,
92 LayerSwitcher:false, 92 LayerSwitcher:false,
93 ScaleLine:true, 93 ScaleLine:true,
94 - OverviewMap:false 94 + OverviewMap:false
95 }; 95 };
96 i3GEO.Interface.openlayers.TILES = true; 96 i3GEO.Interface.openlayers.TILES = true;
97 97
98 -i3GEO.cria() 98 +i3GEO.cria();
99 i3GEO.barraDeBotoes.INCLUIBOTAO = { 99 i3GEO.barraDeBotoes.INCLUIBOTAO = {
100 zoomli: true, 100 zoomli: true,
101 pan: true, 101 pan: true,
@@ -124,14 +124,14 @@ i3GEO.Interface.BARRABOTOESLEFT = 50; @@ -124,14 +124,14 @@ i3GEO.Interface.BARRABOTOESLEFT = 50;
124 i3GEO.Interface.BARRABOTOESTOP = 10; 124 i3GEO.Interface.BARRABOTOESTOP = 10;
125 i3GEO.barraDeBotoes.AUTO = true; 125 i3GEO.barraDeBotoes.AUTO = true;
126 i3GEO.barraDeBotoes.AUTOALTURA = false; 126 i3GEO.barraDeBotoes.AUTOALTURA = false;
127 -i3GEO.barraDeBotoes.PERMITEFECHAR = false  
128 -i3GEO.barraDeBotoes.ATIVAMENUCONTEXTO = false  
129 -i3GEO.barraDeBotoes.COMPORTAMENTO = "laranja"  
130 -i3GEO.idioma.IDSELETOR = "seletorIdiomas" 127 +i3GEO.barraDeBotoes.PERMITEFECHAR = false;
  128 +i3GEO.barraDeBotoes.ATIVAMENUCONTEXTO = false;
  129 +i3GEO.barraDeBotoes.COMPORTAMENTO = "laranja";
  130 +i3GEO.idioma.IDSELETOR = "seletorIdiomas";
131 i3GEO.Interface.ATIVAMENUCONTEXTO = false; 131 i3GEO.Interface.ATIVAMENUCONTEXTO = false;
132 i3GEO.arvoreDeTemas.TIPOBOTAO = "radio"; 132 i3GEO.arvoreDeTemas.TIPOBOTAO = "radio";
133 i3GEO.arvoreDeTemas.ATIVATEMAIMEDIATO = true; 133 i3GEO.arvoreDeTemas.ATIVATEMAIMEDIATO = true;
134 -OpenLayers.ImgPath = "../pacotes/openlayers/img/" 134 +OpenLayers.ImgPath = "../pacotes/openlayers/img/";
135 i3GEO.inicia(); 135 i3GEO.inicia();
136 </script> 136 </script>
137 </body> 137 </body>
interface/ol_parametros.php
@@ -56,7 +56,7 @@ @@ -56,7 +56,7 @@
56 <!-- aqui ser&aacute; inclu&iacute;do o gadget que mostra a coordenada geogr&aacute;fica da posi&ccedil;&atilde;o do mouse --> 56 <!-- aqui ser&aacute; inclu&iacute;do o gadget que mostra a coordenada geogr&aacute;fica da posi&ccedil;&atilde;o do mouse -->
57 <div id=localizarxy style="text-align:left;font-size:10px;display:inline-table"></div> 57 <div id=localizarxy style="text-align:left;font-size:10px;display:inline-table"></div>
58 </td> 58 </td>
59 - <!-- aqui ser&atilde;o inclu&iacute;das as bandeiras que permitem a troca de idioma --> 59 + <!-- aqui ser&atilde;o inclu&iacute;das as bandeiras que permitem a troca de idioma -->
60 <td class=tdbranca > 60 <td class=tdbranca >
61 <div id=seletorIdiomas ></div> 61 <div id=seletorIdiomas ></div>
62 </td> 62 </td>
@@ -92,7 +92,7 @@ @@ -92,7 +92,7 @@
92 <div id='guia1obj' style='display:none;' > 92 <div id='guia1obj' style='display:none;' >
93 <!-- Esta div acrescenta a op&ccedil;&atilde;o de busca r&aacute;pida, caso vc queira coloc&aacute;-la em um lugar espec&iacute;fico --> 93 <!-- Esta div acrescenta a op&ccedil;&atilde;o de busca r&aacute;pida, caso vc queira coloc&aacute;-la em um lugar espec&iacute;fico -->
94 <div style='left:5px;top:10px;' id=buscaRapida ></div> 94 <div style='left:5px;top:10px;' id=buscaRapida ></div>
95 - <!-- Esta div acrescenta a lista de propriedades do mapa --> 95 + <!-- Esta div acrescenta a lista de propriedades do mapa -->
96 <div id=listaPropriedades style='top:15px;' ></div> 96 <div id=listaPropriedades style='top:15px;' ></div>
97 <!-- Esta div acrescenta a lista de de camadas do tipo 'baselayers' espec&iacute;ficas da interface Openlayers. Veja tamb&eacute;m a op&ccedil;&atilde;o i3GEO.Interface.openlayers.GADGETS.LayerSwitcher --> 97 <!-- Esta div acrescenta a lista de de camadas do tipo 'baselayers' espec&iacute;ficas da interface Openlayers. Veja tamb&eacute;m a op&ccedil;&atilde;o i3GEO.Interface.openlayers.GADGETS.LayerSwitcher -->
98 <div id=listaLayersBase style='top:15px;'></div> 98 <div id=listaLayersBase style='top:15px;'></div>
@@ -106,7 +106,7 @@ @@ -106,7 +106,7 @@
106 </div> 106 </div>
107 </div> 107 </div>
108 108
109 -<script src="../classesjs/i3geo.js"></script> 109 +<script src="../classesjs/i3geo47.js"></script>
110 <script src="../pacotes/openlayers/OpenLayers211.js.php"></script> 110 <script src="../pacotes/openlayers/OpenLayers211.js.php"></script>
111 <!-- estilo necess&aacute;rio para a ferramenta de edi&ccedil;&atilde;o --> 111 <!-- estilo necess&aacute;rio para a ferramenta de edi&ccedil;&atilde;o -->
112 <style> 112 <style>
@@ -114,7 +114,7 @@ @@ -114,7 +114,7 @@
114 background-image:url(../mashups/openlayers.png); 114 background-image:url(../mashups/openlayers.png);
115 background-repeat:no-repeat; 115 background-repeat:no-repeat;
116 float:right; 116 float:right;
117 - right: 0px; 117 + right: 0px;
118 height:29px; 118 height:29px;
119 margin:2px; 119 margin:2px;
120 width:29px; 120 width:29px;
@@ -134,7 +134,7 @@ File: i3geo/interface/ol_parametros.htm @@ -134,7 +134,7 @@ File: i3geo/interface/ol_parametros.htm
134 //parametros URL 134 //parametros URL
135 // 135 //
136 var parametrosURL = { 136 var parametrosURL = {
137 - editorvetorial: <?php 137 + editorvetorial: <?php
138 if(!empty($parurl["editorvetorial"])) 138 if(!empty($parurl["editorvetorial"]))
139 {echo $parurl["editorvetorial"];} 139 {echo $parurl["editorvetorial"];}
140 else 140 else
@@ -151,7 +151,7 @@ i3GEO.Interface.openlayers.GADGETS = { @@ -151,7 +151,7 @@ i3GEO.Interface.openlayers.GADGETS = {
151 PanZoom:false, 151 PanZoom:false,
152 LayerSwitcher:true, 152 LayerSwitcher:true,
153 ScaleLine:true, 153 ScaleLine:true,
154 - OverviewMap:false 154 + OverviewMap:false
155 }; 155 };
156 i3GEO.Interface.openlayers.TILES = true; 156 i3GEO.Interface.openlayers.TILES = true;
157 i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.finaliza = 'if($i("omenudataInterface1")){i3GEOoMenuBar.getMenuItem("omenudataInterface1").cfg.setProperty("text", " ");}' 157 i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.finaliza = 'if($i("omenudataInterface1")){i3GEOoMenuBar.getMenuItem("omenudataInterface1").cfg.setProperty("text", " ");}'
@@ -177,25 +177,25 @@ OpenLayers.ImgPath = &quot;../pacotes/openlayers/img/&quot;; @@ -177,25 +177,25 @@ OpenLayers.ImgPath = &quot;../pacotes/openlayers/img/&quot;;
177 //adiciona camadas que podem ser ativadas como fundo do mapa 177 //adiciona camadas que podem ser ativadas como fundo do mapa
178 // 178 //
179 (function(){ 179 (function(){
180 - var oce = new OpenLayers.Layer.ArcGIS93Rest( 180 + var oce = new OpenLayers.Layer.ArcGIS93Rest(
181 "ESRI Ocean Basemap", 181 "ESRI Ocean Basemap",
182 "http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/export", 182 "http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/export",
183 {format:"jpeg"}, 183 {format:"jpeg"},
184 {isBaseLayer:true,visibility:false} 184 {isBaseLayer:true,visibility:false}
185 ); 185 );
186 - var ims = new OpenLayers.Layer.ArcGIS93Rest( 186 + var ims = new OpenLayers.Layer.ArcGIS93Rest(
187 "ESRI Imagery World 2D", 187 "ESRI Imagery World 2D",
188 "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/export", 188 "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/export",
189 {format:"jpeg"}, 189 {format:"jpeg"},
190 {isBaseLayer:true,visibility:false} 190 {isBaseLayer:true,visibility:false}
191 ); 191 );
192 - var wsm = new OpenLayers.Layer.ArcGIS93Rest( 192 + var wsm = new OpenLayers.Layer.ArcGIS93Rest(
193 "ESRI World Street Map", 193 "ESRI World Street Map",
194 "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer/export", 194 "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer/export",
195 {format:"jpeg"}, 195 {format:"jpeg"},
196 {isBaseLayer:true,visibility:false} 196 {isBaseLayer:true,visibility:false}
197 ); 197 );
198 - var bra = new OpenLayers.Layer.WMS( 198 + var bra = new OpenLayers.Layer.WMS(
199 "Base carto MMA", 199 "Base carto MMA",
200 "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map", 200 "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map",
201 {layers:"baseraster",srs:"EPSG:4618",format:"image/png",isBaseLayer:false}, 201 {layers:"baseraster",srs:"EPSG:4618",format:"image/png",isBaseLayer:false},
interface/openlayers.htm
@@ -104,7 +104,7 @@ @@ -104,7 +104,7 @@
104 </div> 104 </div>
105 </div> 105 </div>
106 106
107 -<script src="../classesjs/i3geo.js"></script> 107 +<script src="../classesjs/i3geo47.js"></script>
108 <script src="../pacotes/openlayers/OpenLayers211.js.php"></script> 108 <script src="../pacotes/openlayers/OpenLayers211.js.php"></script>
109 <style> 109 <style>
110 .olControlEditingToolbar1 div { 110 .olControlEditingToolbar1 div {
@@ -176,7 +176,7 @@ i3GEO.Interface.openlayers.TILES = true; @@ -176,7 +176,7 @@ i3GEO.Interface.openlayers.TILES = true;
176 // 176 //
177 //desabilita o item que abre a interface "default" do menu suspenso 177 //desabilita o item que abre a interface "default" do menu suspenso
178 // 178 //
179 -i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.finaliza = 'if($i("omenudataInterface1")){i3GEOoMenuBar.getMenuItem("omenudataInterface1").cfg.setProperty("text", " ");}' 179 +i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.finaliza = 'if($i("omenudataInterface1")){i3GEOoMenuBar.getMenuItem("omenudataInterface1").cfg.setProperty("text", " ");}';
180 180
181 /* 181 /*
182 Após a cria&ccedil;&atilde;o, &eacute; criado o objeto i3geoOL que corresponde ao objeto map da API do OpenLayers. 182 Após a cria&ccedil;&atilde;o, &eacute; criado o objeto i3geoOL que corresponde ao objeto map da API do OpenLayers.
@@ -290,7 +290,7 @@ i3GEO.finaliza = function(){ @@ -290,7 +290,7 @@ i3GEO.finaliza = function(){
290 if($i("i3GEOlogoMarca")) 290 if($i("i3GEOlogoMarca"))
291 {$i("i3GEOlogoMarca").style.display = "none";} 291 {$i("i3GEOlogoMarca").style.display = "none";}
292 i3GEO.mapa.insereDobraPagina("googlemaps","../imagens/dobragooglemaps.png"); 292 i3GEO.mapa.insereDobraPagina("googlemaps","../imagens/dobragooglemaps.png");
293 -} 293 +};
294 i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir = true; 294 i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir = true;
295 //OpenLayers.DOTS_PER_INCH = 96 295 //OpenLayers.DOTS_PER_INCH = 96
296 //i3GEO.configura.sid = ""; 296 //i3GEO.configura.sid = "";
interface/openlayers1.htm
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 background-image:url(../mashups/openlayers.png); 10 background-image:url(../mashups/openlayers.png);
11 background-repeat:no-repeat; 11 background-repeat:no-repeat;
12 float:right; 12 float:right;
13 - right: 0px; 13 + right: 0px;
14 height:29px; 14 height:29px;
15 margin:2px; 15 margin:2px;
16 width:29px; 16 width:29px;
@@ -67,7 +67,7 @@ @@ -67,7 +67,7 @@
67 <div id='guia1obj' > 67 <div id='guia1obj' >
68 <!-- Esta div acrescenta a op&ccedil;&atilde;o de busca r&aacute;pida, caso vc queira coloc&aacute;-la em um lugar espec&iacute;fico --> 68 <!-- Esta div acrescenta a op&ccedil;&atilde;o de busca r&aacute;pida, caso vc queira coloc&aacute;-la em um lugar espec&iacute;fico -->
69 <div style='left:5px;top:10px;' id=buscaRapida ></div> 69 <div style='left:5px;top:10px;' id=buscaRapida ></div>
70 - <!-- Esta div acrescenta a lista de propriedades do mapa --> 70 + <!-- Esta div acrescenta a lista de propriedades do mapa -->
71 <div id=listaPropriedades style='top:15px;' ></div> 71 <div id=listaPropriedades style='top:15px;' ></div>
72 <!-- Esta div acrescenta a lista de de camadas do tipo 'baselayers' espec&iacute;ficas da interface Openlayers. Veja tamb&eacute;m a op&ccedil;&atilde;o i3GEO.Interface.openlayers.GADGETS.LayerSwitcher --> 72 <!-- Esta div acrescenta a lista de de camadas do tipo 'baselayers' espec&iacute;ficas da interface Openlayers. Veja tamb&eacute;m a op&ccedil;&atilde;o i3GEO.Interface.openlayers.GADGETS.LayerSwitcher -->
73 <div id=listaLayersBase style='top:15px;'></div> 73 <div id=listaLayersBase style='top:15px;'></div>
@@ -75,12 +75,12 @@ @@ -75,12 +75,12 @@
75 <div id=listaTemas style='top:15px;'></div> 75 <div id=listaTemas style='top:15px;'></div>
76 </div> 76 </div>
77 77
78 - <!-- se vc quiser colocar a arvore de adi&ccedil;&atilde;o de temas em um lugar espec&iacute;fico, 78 + <!-- se vc quiser colocar a arvore de adi&ccedil;&atilde;o de temas em um lugar espec&iacute;fico,
79 use o div abaixo, caso contr&aacute;rio, a &aacute;rvore ser&aacute; colocada na guia definida em objmapa.guiaMenu, por default a guia2 79 use o div abaixo, caso contr&aacute;rio, a &aacute;rvore ser&aacute; colocada na guia definida em objmapa.guiaMenu, por default a guia2
80 <div id=arvoreAdicionaTema style='top:25px;' ></div> 80 <div id=arvoreAdicionaTema style='top:25px;' ></div>
81 <div id=outrasOpcoesAdiciona style='top:25px;' ></div> 81 <div id=outrasOpcoesAdiciona style='top:25px;' ></div>
82 - -->  
83 - 82 + -->
  83 +
84 <div id='guia2obj' style='display:none;'>Aguarde...<img alt="" src="../imagens/branco.gif" width=248 /></div> 84 <div id='guia2obj' style='display:none;'>Aguarde...<img alt="" src="../imagens/branco.gif" width=248 /></div>
85 <div id='guia4obj' style='display:none;text-align:left'><div id='legenda' style='text-align:left'></div></div> 85 <div id='guia4obj' style='display:none;text-align:left'><div id='legenda' style='text-align:left'></div></div>
86 <div id='guia5obj' style='display:none;text-align:left'><div id='banners' style='overflow:auto;text-align:left'>Aguarde...</div></div> 86 <div id='guia5obj' style='display:none;text-align:left'><div id='banners' style='overflow:auto;text-align:left'>Aguarde...</div></div>
@@ -117,7 +117,7 @@ @@ -117,7 +117,7 @@
117 <!-- aqui ser&aacute; inclu&iacute;do o gadget que mostra a coordenada geogr&aacute;fica da posi&ccedil;&atilde;o do mouse --> 117 <!-- aqui ser&aacute; inclu&iacute;do o gadget que mostra a coordenada geogr&aacute;fica da posi&ccedil;&atilde;o do mouse -->
118 <div id=localizarxy style="text-align:left;font-size:10px;display:inline-table">Aguarde...</div> 118 <div id=localizarxy style="text-align:left;font-size:10px;display:inline-table">Aguarde...</div>
119 </td> 119 </td>
120 - <!-- aqui ser&atilde;o inclu&iacute;das as bandeiras que permitem a troca de idioma --> 120 + <!-- aqui ser&atilde;o inclu&iacute;das as bandeiras que permitem a troca de idioma -->
121 <td class=tdbranca ><div id=seletorIdiomas ></div></td> 121 <td class=tdbranca ><div id=seletorIdiomas ></div></td>
122 <!-- 122 <!--
123 A op&ccedil;&atilde;o de localiza&ccedil;&atilde;o 'onde estou?' baseia-se na identifica&ccedil;&atilde;o do IP do usu&aacute;rio. Para 123 A op&ccedil;&atilde;o de localiza&ccedil;&atilde;o 'onde estou?' baseia-se na identifica&ccedil;&atilde;o do IP do usu&aacute;rio. Para
@@ -158,7 +158,7 @@ @@ -158,7 +158,7 @@
158 </tr> 158 </tr>
159 </table> 159 </table>
160 160
161 -<script src="../classesjs/i3geo.js"></script> 161 +<script src="../classesjs/i3geo47.js"></script>
162 <script src="../pacotes/openlayers/OpenLayers211.js.php"></script> 162 <script src="../pacotes/openlayers/OpenLayers211.js.php"></script>
163 <script> 163 <script>
164 /* 164 /*
@@ -181,10 +181,10 @@ Para definir quais bot&amp;otilde;es das barras de ferramentas ser&amp;atilde;o inclu&amp;ia @@ -181,10 +181,10 @@ Para definir quais bot&amp;otilde;es das barras de ferramentas ser&amp;atilde;o inclu&amp;ia
181 */ 181 */
182 /* 182 /*
183 Indica a localiza&ccedil;&atilde;o correta do i3geo. 183 Indica a localiza&ccedil;&atilde;o correta do i3geo.
184 - 184 +
185 &Eacute; utilizada para identificar o local correto onde est&atilde;o os programas em php que s&atilde;o utilizados. 185 &Eacute; utilizada para identificar o local correto onde est&atilde;o os programas em php que s&atilde;o utilizados.
186 -  
187 - Se n&atilde;o for definida, o i3Geo tentar&aacute; encontrar o local automaticamente com base na tag javascript 186 +
  187 + Se n&atilde;o for definida, o i3Geo tentar&aacute; encontrar o local automaticamente com base na tag javascript
188 */ 188 */
189 //i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; 189 //i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";
190 /* 190 /*
@@ -204,14 +204,14 @@ i3GEO.Interface.openlayers.GADGETS = { @@ -204,14 +204,14 @@ i3GEO.Interface.openlayers.GADGETS = {
204 PanZoom:false, 204 PanZoom:false,
205 LayerSwitcher:true, 205 LayerSwitcher:true,
206 ScaleLine:true, 206 ScaleLine:true,
207 - OverviewMap:false 207 + OverviewMap:false
208 }; 208 };
209 i3GEO.Interface.openlayers.TILES = true; 209 i3GEO.Interface.openlayers.TILES = true;
210 210
211 // 211 //
212 //desabilita o item que abre a interface "default" do menu suspenso 212 //desabilita o item que abre a interface "default" do menu suspenso
213 // 213 //
214 -i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.finaliza = 'if($i("omenudataInterface1")){i3GEOoMenuBar.getMenuItem("omenudataInterface1").cfg.setProperty("text", " ");}' 214 +i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.finaliza = 'if($i("omenudataInterface1")){i3GEOoMenuBar.getMenuItem("omenudataInterface1").cfg.setProperty("text", " ");}';
215 215
216 /* 216 /*
217 Após a cria&ccedil;&atilde;o, &eacute; criado o objeto i3geoOL que corresponde ao objeto map da API do OpenLayers. 217 Após a cria&ccedil;&atilde;o, &eacute; criado o objeto i3geoOL que corresponde ao objeto map da API do OpenLayers.
@@ -260,38 +260,38 @@ OpenLayers.ImgPath = &quot;../pacotes/openlayers/img/&quot;; @@ -260,38 +260,38 @@ OpenLayers.ImgPath = &quot;../pacotes/openlayers/img/&quot;;
260 //adiciona camadas que podem ser ativadas como fundo do mapa 260 //adiciona camadas que podem ser ativadas como fundo do mapa
261 // 261 //
262 (function(){ 262 (function(){
263 - var oce = new OpenLayers.Layer.ArcGIS93Rest( 263 + var oce = new OpenLayers.Layer.ArcGIS93Rest(
264 "ESRI Ocean Basemap", 264 "ESRI Ocean Basemap",
265 "http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/export", 265 "http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/export",
266 {format:"jpg"}, 266 {format:"jpg"},
267 {isBaseLayer:true,visibility:false} 267 {isBaseLayer:true,visibility:false}
268 ); 268 );
269 - var ims = new OpenLayers.Layer.ArcGIS93Rest( 269 + var ims = new OpenLayers.Layer.ArcGIS93Rest(
270 "ESRI Imagery World 2D", 270 "ESRI Imagery World 2D",
271 "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/export", 271 "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/export",
272 {}, 272 {},
273 {isBaseLayer:true,visibility:false} 273 {isBaseLayer:true,visibility:false}
274 ); 274 );
275 - var wsm = new OpenLayers.Layer.ArcGIS93Rest( 275 + var wsm = new OpenLayers.Layer.ArcGIS93Rest(
276 "ESRI World Street Map", 276 "ESRI World Street Map",
277 "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer/export", 277 "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer/export",
278 {}, 278 {},
279 {isBaseLayer:true,visibility:false} 279 {isBaseLayer:true,visibility:false}
280 ); 280 );
281 - var bra = new OpenLayers.Layer.WMS( 281 + var bra = new OpenLayers.Layer.WMS(
282 "Base carto MMA", 282 "Base carto MMA",
283 "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map", 283 "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map",
284 {layers:"baseraster",srs:"EPSG:4618",format:"image/png",isBaseLayer:false}, 284 {layers:"baseraster",srs:"EPSG:4618",format:"image/png",isBaseLayer:false},
285 {isBaseLayer:true,visibility:false} 285 {isBaseLayer:true,visibility:false}
286 ); 286 );
287 /* 287 /*
288 - var osm = new OpenLayers.Layer.WMS( 288 + var osm = new OpenLayers.Layer.WMS(
289 "Open Street Map", 289 "Open Street Map",
290 "http://full.wms.geofabrik.de/std/demo_key", 290 "http://full.wms.geofabrik.de/std/demo_key",
291 {layers:""}, 291 {layers:""},
292 {isBaseLayer:true,visibility:false} 292 {isBaseLayer:true,visibility:false}
293 ); 293 );
294 - */ 294 + */
295 i3GEO.Interface.openlayers.LAYERSADICIONAIS = [oce,ims,wsm,bra]; 295 i3GEO.Interface.openlayers.LAYERSADICIONAIS = [oce,ims,wsm,bra];
296 })(); 296 })();
297 // 297 //
interface/openlayers_t.htm
@@ -36,7 +36,7 @@ @@ -36,7 +36,7 @@
36 <div id=guia2 class=guia >Cat&aacute;logo</div> 36 <div id=guia2 class=guia >Cat&aacute;logo</div>
37 <div id=guia6 class=guia >+</div> 37 <div id=guia6 class=guia >+</div>
38 </div> 38 </div>
39 - </td> 39 + </td>
40 </tr> 40 </tr>
41 <tr> 41 <tr>
42 <td style="vertical-align:top;border-width:0px;"> 42 <td style="vertical-align:top;border-width:0px;">
@@ -69,7 +69,7 @@ @@ -69,7 +69,7 @@
69 </div> 69 </div>
70 70
71 <div id=seletorIdiomas style="position:absolute;top:15px;left:5px;z-index:20000" ></div> 71 <div id=seletorIdiomas style="position:absolute;top:15px;left:5px;z-index:20000" ></div>
72 -<script src="../classesjs/i3geo.js"></script> 72 +<script src="../classesjs/i3geo47.js"></script>
73 <!--<script src="../pacotes/openlayers/OpenLayers29.js.php"></script>--> 73 <!--<script src="../pacotes/openlayers/OpenLayers29.js.php"></script>-->
74 <script src="../pacotes/openlayers/OpenLayers211.js.php"></script> 74 <script src="../pacotes/openlayers/OpenLayers211.js.php"></script>
75 <script> 75 <script>
@@ -93,10 +93,10 @@ Para definir quais bot&amp;otilde;es das barras de ferramentas ser&amp;atilde;o inclu&amp;ia @@ -93,10 +93,10 @@ Para definir quais bot&amp;otilde;es das barras de ferramentas ser&amp;atilde;o inclu&amp;ia
93 */ 93 */
94 /* 94 /*
95 Indica a localiza&ccedil;&atilde;o correta do i3geo. 95 Indica a localiza&ccedil;&atilde;o correta do i3geo.
96 - 96 +
97 &Eacute; utilizada para identificar o local correto onde est&atilde;o os programas em php que s&atilde;o utilizados. 97 &Eacute; utilizada para identificar o local correto onde est&atilde;o os programas em php que s&atilde;o utilizados.
98 -  
99 - Se n&atilde;o for definida, o i3Geo tentar&aacute; encontrar o local automaticamente com base na tag javascript 98 +
  99 + Se n&atilde;o for definida, o i3Geo tentar&aacute; encontrar o local automaticamente com base na tag javascript
100 */ 100 */
101 //i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; 101 //i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";
102 /* 102 /*
@@ -117,7 +117,7 @@ i3GEO.Interface.openlayers.GADGETS = { @@ -117,7 +117,7 @@ i3GEO.Interface.openlayers.GADGETS = {
117 PanZoom:false, 117 PanZoom:false,
118 LayerSwitcher:false, 118 LayerSwitcher:false,
119 ScaleLine:false, 119 ScaleLine:false,
120 - OverviewMap:false 120 + OverviewMap:false
121 }; 121 };
122 i3GEO.Interface.openlayers.TILES = true; 122 i3GEO.Interface.openlayers.TILES = true;
123 123
@@ -181,13 +181,13 @@ OpenLayers.ImgPath = &quot;../pacotes/openlayers/img/&quot;; @@ -181,13 +181,13 @@ OpenLayers.ImgPath = &quot;../pacotes/openlayers/img/&quot;;
181 // 181 //
182 182
183 (function(){ 183 (function(){
184 - var bra = new OpenLayers.Layer.WMS( 184 + var bra = new OpenLayers.Layer.WMS(
185 "Base carto MMA", 185 "Base carto MMA",
186 "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map", 186 "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map",
187 {layers:"baseraster",srs:"EPSG:4618",format:"image/png",isBaseLayer:false}, 187 {layers:"baseraster",srs:"EPSG:4618",format:"image/png",isBaseLayer:false},
188 {isBaseLayer:true,visibility:false} 188 {isBaseLayer:true,visibility:false}
189 ); 189 );
190 - var osm = new OpenLayers.Layer.WMS( 190 + var osm = new OpenLayers.Layer.WMS(
191 "Open Street Map", 191 "Open Street Map",
192 "http://full.wms.geofabrik.de/std/demo_key", 192 "http://full.wms.geofabrik.de/std/demo_key",
193 {layers:""}, 193 {layers:""},
interface/zerocal.htm
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> 4 <meta http-equiv="Category" content="I3Geo Mapa interativo MMA">
5 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> 5 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
6 <title>MMA - Mapa interativo</title> 6 <title>MMA - Mapa interativo</title>
7 -<script type="text/javascript" src="../classesjs/i3geo.js"></script> 7 +<script type="text/javascript" src="../classesjs/i3geo47.js"></script>
8 </head> 8 </head>
9 <body id=i3geo > 9 <body id=i3geo >
10 <center> 10 <center>
@@ -34,12 +34,12 @@ @@ -34,12 +34,12 @@
34 <img alt="" src="../imagens/branco.gif" ID='zoomtot' style='border:0px solid white;margin-left:3px'/> 34 <img alt="" src="../imagens/branco.gif" ID='zoomtot' style='border:0px solid white;margin-left:3px'/>
35 <img alt="" src="../imagens/branco.gif" id='identifica' style='border:0px solid white;margin-left:3px'/> 35 <img alt="" src="../imagens/branco.gif" id='identifica' style='border:0px solid white;margin-left:3px'/>
36 <img alt="" src="../imagens/branco.gif" id='mede' style='border:0px solid white;margin-left:3px'/> 36 <img alt="" src="../imagens/branco.gif" id='mede' style='border:0px solid white;margin-left:3px'/>
37 - <img alt="" src="../imagens/branco.gif" id='area' style='border:0px solid white;margin-left:3px'/>  
38 - 37 + <img alt="" src="../imagens/branco.gif" id='area' style='border:0px solid white;margin-left:3px'/>
  38 +
39 <img alt="" src="../imagens/branco.gif" id='reinicia' style='border:0px solid white;margin-left:12px'/> 39 <img alt="" src="../imagens/branco.gif" id='reinicia' style='border:0px solid white;margin-left:12px'/>
40 - <img alt="" src="../imagens/branco.gif" id='referencia' style='border:0px solid white;margin-left:3px'/>  
41 - <img alt="" src="../imagens/branco.gif" id='inserexy' style='border:0px solid white;margin-left:3px'/>  
42 - <img alt="" src="../imagens/branco.gif" id='inseregrafico' style='border:0px solid white;margin-left:3px'/> 40 + <img alt="" src="../imagens/branco.gif" id='referencia' style='border:0px solid white;margin-left:3px'/>
  41 + <img alt="" src="../imagens/branco.gif" id='inserexy' style='border:0px solid white;margin-left:3px'/>
  42 + <img alt="" src="../imagens/branco.gif" id='inseregrafico' style='border:0px solid white;margin-left:3px'/>
43 <img alt="" src="../imagens/branco.gif" id='textofid' style='border:0px solid white;margin-left:0px'/> 43 <img alt="" src="../imagens/branco.gif" id='textofid' style='border:0px solid white;margin-left:0px'/>
44 <img alt="" src="../imagens/branco.gif" id='selecao' style='border:0px solid white;margin-left:3px'/> 44 <img alt="" src="../imagens/branco.gif" id='selecao' style='border:0px solid white;margin-left:3px'/>
45 <img alt="" src="../imagens/branco.gif" id='identificaBalao' style='border:0px solid white;margin-left:3px'/> 45 <img alt="" src="../imagens/branco.gif" id='identificaBalao' style='border:0px solid white;margin-left:3px'/>
@@ -109,23 +109,23 @@ http://&lt;host&gt;/i3geo/interface/zerocal.htm @@ -109,23 +109,23 @@ http://&lt;host&gt;/i3geo/interface/zerocal.htm
109 */ 109 */
110 /* 110 /*
111 Indica a localiza&ccedil;&atilde;o correta do i3geo. 111 Indica a localiza&ccedil;&atilde;o correta do i3geo.
112 - 112 +
113 &Eacute; utilizada para identificar o local correto onde est&atilde;o os programas em php que s&atilde;o utilizados. 113 &Eacute; utilizada para identificar o local correto onde est&atilde;o os programas em php que s&atilde;o utilizados.
114 - 114 +
115 Se n&atilde;o for definida, o i3Geo tentar&aacute; encontrar o local automaticamente 115 Se n&atilde;o for definida, o i3Geo tentar&aacute; encontrar o local automaticamente
116 */ 116 */
117 //i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; 117 //i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";
118 118
119 i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; 119 i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";
120 -i3GEO.cria() 120 +i3GEO.cria();
121 121
122 -i3GEO.barraDeBotoes.AUTOALTURA = false  
123 -i3GEO.barraDeBotoes.ATIVAMENUCONTEXTO = false  
124 -i3GEO.barraDeBotoes.COMPORTAMENTO = "laranja"  
125 -i3GEO.idioma.IDSELETOR = "seletorIdiomas" 122 +i3GEO.barraDeBotoes.AUTOALTURA = false;
  123 +i3GEO.barraDeBotoes.ATIVAMENUCONTEXTO = false;
  124 +i3GEO.barraDeBotoes.COMPORTAMENTO = "laranja";
  125 +i3GEO.idioma.IDSELETOR = "seletorIdiomas";
126 i3GEO.interface.ATIVAMENUCONTEXTO = true; 126 i3GEO.interface.ATIVAMENUCONTEXTO = true;
127 i3GEO.barraDeBotoes.TIPOAJUDA = "vertical"; 127 i3GEO.barraDeBotoes.TIPOAJUDA = "vertical";
128 -i3GEO.barraDeBotoes.SOICONES = true 128 +i3GEO.barraDeBotoes.SOICONES = true;
129 129
130 i3GEO.inicia(); 130 i3GEO.inicia();
131 if($i("escala") && i3GEO.parametros.w < 500) 131 if($i("escala") && i3GEO.parametros.w < 500)
interface/zerocalol.htm
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 <meta http-equiv="Category" content="I3Geo Mapa interativo MMA"> 4 <meta http-equiv="Category" content="I3Geo Mapa interativo MMA">
5 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> 5 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
6 <title>MMA - Mapa interativo</title> 6 <title>MMA - Mapa interativo</title>
7 -<script type="text/javascript" src="../classesjs/i3geo.js"></script> 7 +<script type="text/javascript" src="../classesjs/i3geo47.js"></script>
8 <script type="text/javascript" src="../pacotes/openlayers/OpenLayers29.js.php"></script> 8 <script type="text/javascript" src="../pacotes/openlayers/OpenLayers29.js.php"></script>
9 9
10 </head> 10 </head>
@@ -34,12 +34,12 @@ @@ -34,12 +34,12 @@
34 <img alt="" src="../imagens/branco.gif" ID='zoomtot' style='border:0px solid white;margin-left:3px'/> 34 <img alt="" src="../imagens/branco.gif" ID='zoomtot' style='border:0px solid white;margin-left:3px'/>
35 <img alt="" src="../imagens/branco.gif" id='identifica' style='border:0px solid white;margin-left:3px'/> 35 <img alt="" src="../imagens/branco.gif" id='identifica' style='border:0px solid white;margin-left:3px'/>
36 <img alt="" src="../imagens/branco.gif" id='mede' style='border:0px solid white;margin-left:3px'/> 36 <img alt="" src="../imagens/branco.gif" id='mede' style='border:0px solid white;margin-left:3px'/>
37 - <img alt="" src="../imagens/branco.gif" id='area' style='border:0px solid white;margin-left:3px'/>  
38 - 37 + <img alt="" src="../imagens/branco.gif" id='area' style='border:0px solid white;margin-left:3px'/>
  38 +
39 <img alt="" src="../imagens/branco.gif" id='reinicia' style='border:0px solid white;margin-left:12px'/> 39 <img alt="" src="../imagens/branco.gif" id='reinicia' style='border:0px solid white;margin-left:12px'/>
40 - <img alt="" src="../imagens/branco.gif" id='referencia' style='border:0px solid white;margin-left:3px'/>  
41 - <img alt="" src="../imagens/branco.gif" id='inserexy' style='border:0px solid white;margin-left:3px'/>  
42 - <img alt="" src="../imagens/branco.gif" id='inseregrafico' style='border:0px solid white;margin-left:3px'/> 40 + <img alt="" src="../imagens/branco.gif" id='referencia' style='border:0px solid white;margin-left:3px'/>
  41 + <img alt="" src="../imagens/branco.gif" id='inserexy' style='border:0px solid white;margin-left:3px'/>
  42 + <img alt="" src="../imagens/branco.gif" id='inseregrafico' style='border:0px solid white;margin-left:3px'/>
43 <img alt="" src="../imagens/branco.gif" id='textofid' style='border:0px solid white;margin-left:0px'/> 43 <img alt="" src="../imagens/branco.gif" id='textofid' style='border:0px solid white;margin-left:0px'/>
44 <img alt="" src="../imagens/branco.gif" id='selecao' style='border:0px solid white;margin-left:3px'/> 44 <img alt="" src="../imagens/branco.gif" id='selecao' style='border:0px solid white;margin-left:3px'/>
45 <img alt="" src="../imagens/branco.gif" id='identificaBalao' style='border:0px solid white;margin-left:3px'/> 45 <img alt="" src="../imagens/branco.gif" id='identificaBalao' style='border:0px solid white;margin-left:3px'/>
@@ -112,9 +112,9 @@ http://&lt;host&gt;/i3geo/interface/zerocal.htm @@ -112,9 +112,9 @@ http://&lt;host&gt;/i3geo/interface/zerocal.htm
112 */ 112 */
113 /* 113 /*
114 Indica a localiza&ccedil;&atilde;o correta do i3geo. 114 Indica a localiza&ccedil;&atilde;o correta do i3geo.
115 - 115 +
116 &Eacute; utilizada para identificar o local correto onde est&atilde;o os programas em php que s&atilde;o utilizados. 116 &Eacute; utilizada para identificar o local correto onde est&atilde;o os programas em php que s&atilde;o utilizados.
117 - 117 +
118 Se n&atilde;o for definida, o i3Geo tentar&aacute; encontrar o local automaticamente 118 Se n&atilde;o for definida, o i3Geo tentar&aacute; encontrar o local automaticamente
119 */ 119 */
120 //i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; 120 //i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";
@@ -122,48 +122,48 @@ http://&lt;host&gt;/i3geo/interface/zerocal.htm @@ -122,48 +122,48 @@ http://&lt;host&gt;/i3geo/interface/zerocal.htm
122 i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; 122 i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";
123 i3GEO.Interface.ATUAL = "openlayers"; 123 i3GEO.Interface.ATUAL = "openlayers";
124 i3GEO.Interface.IDCORPO = "contemImg"; 124 i3GEO.Interface.IDCORPO = "contemImg";
125 -i3GEO.configura.diminuixN = 20 125 +i3GEO.configura.diminuixN = 20;
126 126
127 i3GEO.Interface.openlayers.GADGETS = { 127 i3GEO.Interface.openlayers.GADGETS = {
128 PanZoomBar:true, 128 PanZoomBar:true,
129 PanZoom:false, 129 PanZoom:false,
130 LayerSwitcher:true, 130 LayerSwitcher:true,
131 ScaleLine:true, 131 ScaleLine:true,
132 - OverviewMap:false 132 + OverviewMap:false
133 }; 133 };
134 i3GEO.Interface.openlayers.TILES = true; 134 i3GEO.Interface.openlayers.TILES = true;
135 135
136 -i3GEO.cria() 136 +i3GEO.cria();
137 137
138 -i3GEO.barraDeBotoes.AUTOALTURA = false  
139 -i3GEO.barraDeBotoes.ATIVAMENUCONTEXTO = false  
140 -i3GEO.barraDeBotoes.COMPORTAMENTO = "laranja"  
141 -i3GEO.idioma.IDSELETOR = "seletorIdiomas" 138 +i3GEO.barraDeBotoes.AUTOALTURA = false;
  139 +i3GEO.barraDeBotoes.ATIVAMENUCONTEXTO = false;
  140 +i3GEO.barraDeBotoes.COMPORTAMENTO = "laranja";
  141 +i3GEO.idioma.IDSELETOR = "seletorIdiomas";
142 i3GEO.interface.ATIVAMENUCONTEXTO = true; 142 i3GEO.interface.ATIVAMENUCONTEXTO = true;
143 i3GEO.barraDeBotoes.TIPOAJUDA = "vertical"; 143 i3GEO.barraDeBotoes.TIPOAJUDA = "vertical";
144 -i3GEO.barraDeBotoes.SOICONES = true 144 +i3GEO.barraDeBotoes.SOICONES = true;
145 i3GEO.arvoreDeTemas.TIPOBOTAO = "radio"; 145 i3GEO.arvoreDeTemas.TIPOBOTAO = "radio";
146 i3GEO.arvoreDeTemas.ATIVATEMAIMEDIATO = true; 146 i3GEO.arvoreDeTemas.ATIVATEMAIMEDIATO = true;
147 -OpenLayers.ImgPath = "../pacotes/openlayers/img/"  
148 -var ims = new OpenLayers.Layer.ArcGIS93Rest( 147 +OpenLayers.ImgPath = "../pacotes/openlayers/img/";
  148 +var ims = new OpenLayers.Layer.ArcGIS93Rest(
149 "ESRI Imagery World 2D", 149 "ESRI Imagery World 2D",
150 "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/export", 150 "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/export",
151 {}, 151 {},
152 {isBaseLayer:true,visibility:false} 152 {isBaseLayer:true,visibility:false}
153 ); 153 );
154 -var wsm = new OpenLayers.Layer.ArcGIS93Rest( 154 +var wsm = new OpenLayers.Layer.ArcGIS93Rest(
155 "ESRI World Street Map", 155 "ESRI World Street Map",
156 "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer/export", 156 "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer/export",
157 {}, 157 {},
158 {isBaseLayer:true,visibility:false} 158 {isBaseLayer:true,visibility:false}
159 ); 159 );
160 -var bra = new OpenLayers.Layer.WMS( 160 +var bra = new OpenLayers.Layer.WMS(
161 "Base carto MMA", 161 "Base carto MMA",
162 "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map", 162 "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map",
163 {layers:"baseraster",srs:"EPSG:4618",format:"image/png",isBaseLayer:false}, 163 {layers:"baseraster",srs:"EPSG:4618",format:"image/png",isBaseLayer:false},
164 {isBaseLayer:true,visibility:false} 164 {isBaseLayer:true,visibility:false}
165 ); 165 );
166 -var osm = new OpenLayers.Layer.WMS( 166 +var osm = new OpenLayers.Layer.WMS(
167 "Open Street Map", 167 "Open Street Map",
168 "http://full.wms.geofabrik.de/std/demo_key", 168 "http://full.wms.geofabrik.de/std/demo_key",
169 {layers:""}, 169 {layers:""},
@@ -40,6 +40,7 @@ perfil - perfis separados por espa&amp;ccedil;os. Ao usar um perfil, ser&amp;atilde;o mo @@ -40,6 +40,7 @@ perfil - perfis separados por espa&amp;ccedil;os. Ao usar um perfil, ser&amp;atilde;o mo
40 40
41 tipoxml - (opcional) se for "kml" insere o cabe&ccedil;alho de tipo kml no xml, permitindo abrir o xml diretamente na aplica&ccedil;&atilde;o Google Earth 41 tipoxml - (opcional) se for "kml" insere o cabe&ccedil;alho de tipo kml no xml, permitindo abrir o xml diretamente na aplica&ccedil;&atilde;o Google Earth
42 */ 42 */
  43 +//TODO incluir arquivo gvp
43 error_reporting(0); 44 error_reporting(0);
44 include_once ("classesphp/carrega_ext.php"); 45 include_once ("classesphp/carrega_ext.php");
45 include_once ("classesphp/classe_menutemas.php"); 46 include_once ("classesphp/classe_menutemas.php");
@@ -108,8 +109,8 @@ if ($menutemas != &quot;&quot; || is_array($menutemas)) @@ -108,8 +109,8 @@ if ($menutemas != &quot;&quot; || is_array($menutemas))
108 $nome = kml_converteTexto($sgrupo->SDTIPO); 109 $nome = kml_converteTexto($sgrupo->SDTIPO);
109 kml_folder($nome); 110 kml_folder($nome);
110 foreach($sgrupo->TEMA as $tema) 111 foreach($sgrupo->TEMA as $tema)
111 - {kml_tema($tema);}  
112 - echo "</Folder>\n"; 112 + {kml_tema($tema);}
  113 + echo "</Folder>\n";
113 } 114 }
114 echo "</Folder>\n"; 115 echo "</Folder>\n";
115 } 116 }
@@ -197,7 +198,7 @@ if(!isset($menutemas) || $menutemas == &quot;&quot;) @@ -197,7 +198,7 @@ if(!isset($menutemas) || $menutemas == &quot;&quot;)
197 if(count($temas) > 0) 198 if(count($temas) > 0)
198 { 199 {
199 foreach ($temas as $tema) 200 foreach ($temas as $tema)
200 - {kml_tema_bd($tema);} 201 + {kml_tema_bd($tema);}
201 } 202 }
202 echo "</Folder>\n"; 203 echo "</Folder>\n";
203 } 204 }
@@ -215,21 +216,21 @@ function kml_tema_bd($tema) @@ -215,21 +216,21 @@ function kml_tema_bd($tema)
215 $fonte = $tema["link_tema"]; 216 $fonte = $tema["link_tema"];
216 else 217 else
217 $fonte = ""; 218 $fonte = "";
218 - 219 +
219 $nome = $tema["nome_tema"]; 220 $nome = $tema["nome_tema"];
220 $id = $tema["codigo_tema"]; 221 $id = $tema["codigo_tema"];
221 - 222 +
222 if(in_array("desc_tema",$teste)) 223 if(in_array("desc_tema",$teste))
223 $desc = $tema["desc_tema"]; 224 $desc = $tema["desc_tema"];
224 else 225 else
225 $desc = ""; 226 $desc = "";
226 - 227 +
227 $fonte = "<a href='$fonte' >Fonte </a>"; 228 $fonte = "<a href='$fonte' >Fonte </a>";
228 $legenda = "<a href='$urli3geo/ogc.php?tema=$id&layer=$id&request=getlegendgraphic&service=wms&format=image/jpeg' >Legenda </a>"; 229 $legenda = "<a href='$urli3geo/ogc.php?tema=$id&layer=$id&request=getlegendgraphic&service=wms&format=image/jpeg' >Legenda </a>";
229 230
230 $href = "$urli3geo/ogc.php?tema=$id&amp;width=800&amp;height=800&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;SRS=EPSG:4326&amp;STYLES=&amp;BGCOLOR=0xFFFFFF&amp;FORMAT=image/png&amp;TRANSPARENT=TRUE&amp;layers=$id"; 231 $href = "$urli3geo/ogc.php?tema=$id&amp;width=800&amp;height=800&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;SRS=EPSG:4326&amp;STYLES=&amp;BGCOLOR=0xFFFFFF&amp;FORMAT=image/png&amp;TRANSPARENT=TRUE&amp;layers=$id";
231 kml_servico($nome,$fonte,$legenda,$desc,$href); 232 kml_servico($nome,$fonte,$legenda,$desc,$href);
232 - 233 +
233 if(strtolower($tema["kmz_tema"]) == "sim") 234 if(strtolower($tema["kmz_tema"]) == "sim")
234 { 235 {
235 $href = "$urli3geo/pacotes/kmlmapserver/kmlservice.php?request=kmz&amp;map=$id&amp;typename=$id"; 236 $href = "$urli3geo/pacotes/kmlmapserver/kmlservice.php?request=kmz&amp;map=$id&amp;typename=$id";
@@ -241,7 +242,7 @@ function kml_cabecalho($nome,$desc) @@ -241,7 +242,7 @@ function kml_cabecalho($nome,$desc)
241 echo "<Folder>\n"; 242 echo "<Folder>\n";
242 echo " <name>".str_replace("&","&amp;",kml_converteTexto($nome))."</name>\n"; 243 echo " <name>".str_replace("&","&amp;",kml_converteTexto($nome))."</name>\n";
243 echo " <description>".str_replace("&","&amp;",kml_converteTexto($desc))."</description>\n"; 244 echo " <description>".str_replace("&","&amp;",kml_converteTexto($desc))."</description>\n";
244 - echo " <open>0</open><visibility>0</visibility>\n"; 245 + echo " <open>0</open><visibility>0</visibility>\n";
245 } 246 }
246 function kml_folder($nome) 247 function kml_folder($nome)
247 { 248 {
@@ -269,7 +270,7 @@ function kml_tema($tema) @@ -269,7 +270,7 @@ function kml_tema($tema)
269 $fonte = "<a href='$fonte' >Fonte </a>"; 270 $fonte = "<a href='$fonte' >Fonte </a>";
270 else 271 else
271 $fonte = ""; 272 $fonte = "";
272 - 273 +
273 $legenda = "<a href='$urli3geo/ogc.php?tema=$id&layer=$id&request=getlegendgraphic&service=wms&format=image/png' >Legenda </a>"; 274 $legenda = "<a href='$urli3geo/ogc.php?tema=$id&layer=$id&request=getlegendgraphic&service=wms&format=image/png' >Legenda </a>";
274 $href = "$urli3geo/ogc.php?tema=$id&amp;width=800&amp;height=800&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;SRS=EPSG:4326&amp;STYLES=&amp;BGCOLOR=0xFFFFFF&amp;FORMAT=image/png&amp;TRANSPARENT=TRUE&amp;layers=$id"; 275 $href = "$urli3geo/ogc.php?tema=$id&amp;width=800&amp;height=800&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;SRS=EPSG:4326&amp;STYLES=&amp;BGCOLOR=0xFFFFFF&amp;FORMAT=image/png&amp;TRANSPARENT=TRUE&amp;layers=$id";
275 kml_servico($nome,$fonte,$legenda,$desc,$href); 276 kml_servico($nome,$fonte,$legenda,$desc,$href);
@@ -280,7 +281,7 @@ function kml_servico($nome,$fonte,$legenda,$desc,$href) @@ -280,7 +281,7 @@ function kml_servico($nome,$fonte,$legenda,$desc,$href)
280 echo " <GroundOverlay>\n"; 281 echo " <GroundOverlay>\n";
281 echo " <name>".str_replace("&","&amp;",kml_converteTexto($nome))."</name>\n"; 282 echo " <name>".str_replace("&","&amp;",kml_converteTexto($nome))."</name>\n";
282 echo " <description><![CDATA[".$fonte.$legenda.$desc."]]></description>\n"; 283 echo " <description><![CDATA[".$fonte.$legenda.$desc."]]></description>\n";
283 - echo " <visibility>0</visibility>\n"; 284 + echo " <visibility>0</visibility>\n";
284 echo " <Icon>\n"; 285 echo " <Icon>\n";
285 echo " <viewRefreshMode>onStop</viewRefreshMode>\n"; 286 echo " <viewRefreshMode>onStop</viewRefreshMode>\n";
286 echo " <href>$href</href>\n"; 287 echo " <href>$href</href>\n";
@@ -293,7 +294,7 @@ function kml_networklink($nome,$fonte,$legenda,$desc,$href) @@ -293,7 +294,7 @@ function kml_networklink($nome,$fonte,$legenda,$desc,$href)
293 echo " <NetworkLink>\n"; 294 echo " <NetworkLink>\n";
294 echo " <name>".str_replace("&","&amp;",kml_converteTexto($nome))."</name>\n"; 295 echo " <name>".str_replace("&","&amp;",kml_converteTexto($nome))."</name>\n";
295 echo " <description><![CDATA[".$fonte.$legenda.$desc."]]></description>\n"; 296 echo " <description><![CDATA[".$fonte.$legenda.$desc."]]></description>\n";
296 - echo " <visibility>0</visibility>\n"; 297 + echo " <visibility>0</visibility>\n";
297 echo " <Link>\n"; 298 echo " <Link>\n";
298 echo " <viewRefreshMode>never</viewRefreshMode>\n"; 299 echo " <viewRefreshMode>never</viewRefreshMode>\n";
299 echo " <href>$href</href>\n"; 300 echo " <href>$href</href>\n";
@@ -304,6 +305,6 @@ function kml_converteTexto($i) @@ -304,6 +305,6 @@ function kml_converteTexto($i)
304 { 305 {
305 global $encoding; 306 global $encoding;
306 $encodingatual = mb_detect_encoding($i, 'UTF-8, UTF-7, ASCII, ISO-8859-1'); 307 $encodingatual = mb_detect_encoding($i, 'UTF-8, UTF-7, ASCII, ISO-8859-1');
307 - return mb_convert_encoding($i,$encoding,$encodingatual); 308 + return mb_convert_encoding($i,$encoding,$encodingatual);
308 } 309 }
309 ?> 310 ?>
310 \ No newline at end of file 311 \ No newline at end of file
mashups/openlayers.php
1 <?php 1 <?php
  2 +//TODO incluir arquivo gvp
2 error_reporting(0);if(extension_loaded('zlib')){ob_start('ob_gzhandler');} header("Content-type: text/html"); 3 error_reporting(0);if(extension_loaded('zlib')){ob_start('ob_gzhandler');} header("Content-type: text/html");
3 include_once("../ms_configura.php"); 4 include_once("../ms_configura.php");
4 include_once("../classesphp/pega_variaveis.php"); 5 include_once("../classesphp/pega_variaveis.php");
@@ -80,7 +81,7 @@ if(isset($botoes)){ @@ -80,7 +81,7 @@ if(isset($botoes)){
80 if(in_array("salva",$botoes)) 81 if(in_array("salva",$botoes))
81 {$objBotoes[] = "'salva':true";} 82 {$objBotoes[] = "'salva':true";}
82 if(in_array("ajuda",$botoes)) 83 if(in_array("ajuda",$botoes))
83 - {$objBotoes[] = "'ajuda':true";} 84 + {$objBotoes[] = "'ajuda':true";}
84 if(in_array("fecha",$botoes)) 85 if(in_array("fecha",$botoes))
85 {$objBotoes[] = "'fecha':true";} 86 {$objBotoes[] = "'fecha':true";}
86 if(in_array("tools",$botoes)) 87 if(in_array("tools",$botoes))
@@ -122,7 +123,7 @@ if($temas != &quot;&quot;) @@ -122,7 +123,7 @@ if($temas != &quot;&quot;)
122 else{ 123 else{
123 $visiveis = str_replace(" ",",",$visiveis); 124 $visiveis = str_replace(" ",",",$visiveis);
124 $visiveis = strtolower($visiveis); 125 $visiveis = strtolower($visiveis);
125 - $visiveis = explode(",",$visiveis); 126 + $visiveis = explode(",",$visiveis);
126 } 127 }
127 $objOpenLayers = array(); 128 $objOpenLayers = array();
128 if(isset($servidor) && $servidor != "../ogc.php"){ 129 if(isset($servidor) && $servidor != "../ogc.php"){
@@ -144,7 +145,7 @@ if($temas != &quot;&quot;) @@ -144,7 +145,7 @@ if($temas != &quot;&quot;)
144 $nomeMap = $tema; 145 $nomeMap = $tema;
145 } 146 }
146 } 147 }
147 - if($nomeMap != ""){ 148 + if($nomeMap != ""){
148 if(empty($layers)){ 149 if(empty($layers)){
149 $layers = array(); 150 $layers = array();
150 $maptemp = @ms_newMapObj($nomeMap); 151 $maptemp = @ms_newMapObj($nomeMap);
@@ -195,12 +196,12 @@ Par&amp;acirc;metros: @@ -195,12 +196,12 @@ Par&amp;acirc;metros:
195 incluilayergrafico (true|false) - indica se o layer que recebe elementos gr&aacute;ficos ser&aacute; adicionado ou n&atilde;o ao mapa 196 incluilayergrafico (true|false) - indica se o layer que recebe elementos gr&aacute;ficos ser&aacute; adicionado ou n&atilde;o ao mapa
196 ativalayerswicther (true|false) - inicia o mapa com a caixa de escolha das camadas (layerSwitcher) aberta ou n&atilde;o. Por default, inicia fechada 197 ativalayerswicther (true|false) - inicia o mapa com a caixa de escolha das camadas (layerSwitcher) aberta ou n&atilde;o. Por default, inicia fechada
197 ativarodadomouse (true|false) - ativa ou n&atilde;o o zoom com base na roda do mouse (default &eacute; true) 198 ativarodadomouse (true|false) - ativa ou n&atilde;o o zoom com base na roda do mouse (default &eacute; true)
198 - 199 +
199 fundo - lista com os nomes, separados por ',' dos layers que ser&atilde;o usados como fundo para o mapa. Se n&atilde;o for definido, 200 fundo - lista com os nomes, separados por ',' dos layers que ser&atilde;o usados como fundo para o mapa. Se n&atilde;o for definido,
200 ser&aacute; usado o default. O primeiro da lista ser&aacute; o fundo ativo. Se na lista de temas de fundo estiver algum 201 ser&aacute; usado o default. O primeiro da lista ser&aacute; o fundo ativo. Se na lista de temas de fundo estiver algum
201 tema incluido com o parametro 'temas', esses ser&atilde;o inclu&iacute;dos como temas de fundo. 202 tema incluido com o parametro 'temas', esses ser&atilde;o inclu&iacute;dos como temas de fundo.
202 Os seguintes fundos podem usados nessa lista: 203 Os seguintes fundos podem usados nessa lista:
203 - 204 +
204 e_oce - ESRI Ocean Basemap 205 e_oce - ESRI Ocean Basemap
205 e_ims - ESRI Imagery World 2D 206 e_ims - ESRI Imagery World 2D
206 e_wsm - ESRI World Street Map 207 e_wsm - ESRI World Street Map
@@ -208,14 +209,14 @@ Par&amp;acirc;metros: @@ -208,14 +209,14 @@ Par&amp;acirc;metros:
208 ol_wms - base mundial da Meta Carta 209 ol_wms - base mundial da Meta Carta
209 top_wms - topon&iacute;mia do servidor do MMA usado no mapa de refer&ecirc;ncia 210 top_wms - topon&iacute;mia do servidor do MMA usado no mapa de refer&ecirc;ncia
210 est_wms - estados do Brasil 211 est_wms - estados do Brasil
211 - 212 +
212 controles - lista com os nomes dos controles que ser&atilde;o adicionados ao mapa. Se n&atilde;o for definido, todos os controles ser&atilde;o adicionados 213 controles - lista com os nomes dos controles que ser&atilde;o adicionados ao mapa. Se n&atilde;o for definido, todos os controles ser&atilde;o adicionados
213 navigation 214 navigation
214 - panzoombar  
215 - layerswitcher  
216 - scaleline 215 + panzoombar
  216 + layerswitcher
  217 + scaleline
217 mouseposition 218 mouseposition
218 - overviewmap 219 + overviewmap
219 keyboarddefaults 220 keyboarddefaults
220 botoes - lista com os nomes dos botoes que ser&atilde;o adicionados ao mapa. Se n&atilde;o for definido, todos os bot&otilde;es ser&atilde;o adicionados 221 botoes - lista com os nomes dos botoes que ser&atilde;o adicionados ao mapa. Se n&atilde;o for definido, todos os bot&otilde;es ser&atilde;o adicionados
221 pan 222 pan
@@ -242,14 +243,14 @@ Par&amp;acirc;metros: @@ -242,14 +243,14 @@ Par&amp;acirc;metros:
242 fecha 243 fecha
243 corta 244 corta
244 245
245 - Para ver a lista de códigos de temas, que podem ser utilizados no par&acirc;metro 'temas', acesse: 246 + Para ver a lista de códigos de temas, que podem ser utilizados no par&acirc;metro 'temas', acesse:
246 <a href='../ogc.php?lista=temas' >lista de temas</a>. Os códigos s&atilde;o mostrados em vermelho. 247 <a href='../ogc.php?lista=temas' >lista de temas</a>. Os códigos s&atilde;o mostrados em vermelho.
247 248
248 Exemplo: 249 Exemplo:
249 250
250 &lt;iframe height='400px' src='http://mapas.mma.gov.br/i3geo/mashups/openlayers.php?temas=bioma&amp;altura=350&amp;largura=350' style='border: 0px solid white;' width='400px'&gt;&lt;/iframe&gt; 251 &lt;iframe height='400px' src='http://mapas.mma.gov.br/i3geo/mashups/openlayers.php?temas=bioma&amp;altura=350&amp;largura=350' style='border: 0px solid white;' width='400px'&gt;&lt;/iframe&gt;
251 252
252 - "; 253 + ";
253 exit; 254 exit;
254 } 255 }
255 ?> 256 ?>
ms_criamapa.php
@@ -1115,8 +1115,7 @@ function incluiMapaGvsig($gvsiggvp,$gvsigview=&quot;&quot;){ @@ -1115,8 +1115,7 @@ function incluiMapaGvsig($gvsiggvp,$gvsigview=&quot;&quot;){
1115 } 1115 }
1116 $dataView = $gm->getViewData($gvsigview); 1116 $dataView = $gm->getViewData($gvsigview);
1117 $numlayers = $mapn->numlayers; 1117 $numlayers = $mapn->numlayers;
1118 - for ($i=0;$i < $numlayers;$i++)  
1119 - { 1118 + for ($i=0;$i < $numlayers;$i++){
1120 $layer = $mapn->getlayer($i); 1119 $layer = $mapn->getlayer($i);
1121 $layer->set("status",MS_DELETE); 1120 $layer->set("status",MS_DELETE);
1122 } 1121 }
@@ -78,18 +78,16 @@ tema - tema para acesso @@ -78,18 +78,16 @@ tema - tema para acesso
78 */ 78 */
79 function ogc_endereco(tema) 79 function ogc_endereco(tema)
80 { 80 {
81 - tema.checked = false  
82 - tema = tema.value  
83 - ins = "<H1>Endere&ccedil;o do web service:</H1>" 81 + tema.checked = false;
  82 + tema = tema.value;
  83 + ins = "<H1>Endere&ccedil;o do web service:</H1>";
84 var re = new RegExp(".htm", "g"); 84 var re = new RegExp(".htm", "g");
85 - var servico = window.location.href.replace(re,'.php?tema=')+tema  
86 - ins += "<p>"+servico  
87 -  
88 - ins += "<p>Bookmark: <span id=bm ></span>" 85 + var servico = window.location.href.replace(re,'.php?tema=')+tema;
  86 + ins += "<p>"+servico;
  87 + ins += "<p>Bookmark: <span id=bm ></span>";
89 ins += "<p><iframe src='http://www.facebook.com/plugins/like.php?href="+servico+"&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=21' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:100px; height:21px;' allowTransparency='true'></iframe>"; 88 ins += "<p><iframe src='http://www.facebook.com/plugins/like.php?href="+servico+"&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=21' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:100px; height:21px;' allowTransparency='true'></iframe>";
90 - ins += "<p><a target=blank href='"+servico+"&SRS=EPSG:4618&WIDTH=500&HEIGHT=500&BBOX=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&FORMAT=image/png&service=wms&version=1.1.0&request=getmap&layers="+tema+"' />testar</a>"  
91 - ins += "<p><a target=blank href='ogc.php?temas="+tema+"&format=application/openlayers&bbox=-76.5125927,-39.3925675209,-29.5851853,9.49014852081' />visualizar</a>"  
92 - 89 + ins += "<p><a target=blank href='"+servico+"&SRS=EPSG:4618&WIDTH=500&HEIGHT=500&BBOX=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&FORMAT=image/png&service=wms&version=1.1.0&request=getmap&layers="+tema+"' />testar</a>";
  90 + ins += "<p><a target=blank href='ogc.php?temas="+tema+"&format=application/openlayers&bbox=-76.5125927,-39.3925675209,-29.5851853,9.49014852081' />visualizar</a>";
93 if(!$i("panellistaarquivos")){ 91 if(!$i("panellistaarquivos")){
94 YAHOO.namespace("datadownloadLista"); 92 YAHOO.namespace("datadownloadLista");
95 YAHOO.datadownloadLista.panel = new YAHOO.widget.Panel("panellistaarquivos", {zIndex:2000, iframe:false, width:"450px",align:"left", visible:false, draggable:true, close:true, modal:true } ); 93 YAHOO.datadownloadLista.panel = new YAHOO.widget.Panel("panellistaarquivos", {zIndex:2000, iframe:false, width:"450px",align:"left", visible:false, draggable:true, close:true, modal:true } );
@@ -104,30 +102,24 @@ function ogc_endereco(tema) @@ -104,30 +102,24 @@ function ogc_endereco(tema)
104 $i("bm").innerHTML = i3GEO.social.bookmark(servico); 102 $i("bm").innerHTML = i3GEO.social.bookmark(servico);
105 //document.getElementById("corpo").innerHTML = ins 103 //document.getElementById("corpo").innerHTML = ins
106 } 104 }
107 -  
108 -  
109 -  
110 var loc = window.location.href; 105 var loc = window.location.href;
111 -  
112 var temp = loc.split("/ogc.htm"); 106 var temp = loc.split("/ogc.htm");
113 -g_locaplic = temp[0] 107 +g_locaplic = temp[0];
114 i3GEO.configura.locaplic = g_locaplic; 108 i3GEO.configura.locaplic = g_locaplic;
115 109
116 $i("bm1").innerHTML = i3GEO.social.bookmark(loc); 110 $i("bm1").innerHTML = i3GEO.social.bookmark(loc);
117 i3GEO.social.compartilhar("curtir",loc,loc,"comtotal"); 111 i3GEO.social.compartilhar("curtir",loc,loc,"comtotal");
118 112
119 -g_arvoreClicks = "" 113 +g_arvoreClicks = "";
120 i3GEO.idioma.IDSELETOR = "bandeiras"; 114 i3GEO.idioma.IDSELETOR = "bandeiras";
121 i3GEO.idioma.mostraSeletor(); 115 i3GEO.idioma.mostraSeletor();
122 -i3GEO.arvoreDeTemas.INCLUISISTEMAS = false  
123 -i3GEO.arvoreDeTemas.FILTRAOGC = true  
124 -i3GEO.arvoreDeTemas.INCLUIWMS = false  
125 -i3GEO.arvoreDeTemas.OPCOESADICIONAIS.incluiArvore = false  
126 -i3GEO.arvoreDeTemas.OPCOESADICIONAIS.incluibusca = false 116 +i3GEO.arvoreDeTemas.INCLUISISTEMAS = false;
  117 +i3GEO.arvoreDeTemas.FILTRAOGC = true;
  118 +i3GEO.arvoreDeTemas.INCLUIWMS = false;
  119 +i3GEO.arvoreDeTemas.OPCOESADICIONAIS.incluiArvore = false;
  120 +i3GEO.arvoreDeTemas.OPCOESADICIONAIS.incluibusca = false;
127 i3GEO.arvoreDeTemas.TIPOBOTAO = "radio"; 121 i3GEO.arvoreDeTemas.TIPOBOTAO = "radio";
128 -  
129 i3GEO.arvoreDeTemas.cria("",g_locaplic,"arvoreTemas","ogc_endereco\(this\)"); 122 i3GEO.arvoreDeTemas.cria("",g_locaplic,"arvoreTemas","ogc_endereco\(this\)");
130 -  
131 </script> 123 </script>
132 </body> 124 </body>
133 </html> 125 </html>
1 <?php 1 <?php
  2 +//TODO incluir projeto gvsig
2 /* 3 /*
3 Title: ogc.php 4 Title: ogc.php
4 5
@@ -86,7 +87,7 @@ if(isset($format) &amp;&amp; strtolower($format) == &quot;application/openlayers&quot;){ @@ -86,7 +87,7 @@ if(isset($format) &amp;&amp; strtolower($format) == &quot;application/openlayers&quot;){
86 if(!headers_sent()) 87 if(!headers_sent())
87 {header("Location:".$urln);} 88 {header("Location:".$urln);}
88 else 89 else
89 - {echo "<meta http-equiv='refresh' content='0;url=$urln'>";} 90 + {echo "<meta http-equiv='refresh' content='0;url=$urln'>";}
90 } 91 }
91 // 92 //
92 //pega os endere&ccedil;os para compor a url de chamada do gerador de web services 93 //pega os endere&ccedil;os para compor a url de chamada do gerador de web services
@@ -184,10 +185,8 @@ $oMap-&gt;setmetadata(&quot;wms_attribution_logourl_href&quot;,$proto.$server.dirname($_SERVE @@ -184,10 +185,8 @@ $oMap-&gt;setmetadata(&quot;wms_attribution_logourl_href&quot;,$proto.$server.dirname($_SERVE
184 $oMap->setmetadata("wms_attribution_onlineresource",$proto.$server.dirname($_SERVER['PHP_SELF'])); 185 $oMap->setmetadata("wms_attribution_onlineresource",$proto.$server.dirname($_SERVER['PHP_SELF']));
185 $oMap->setmetadata("wms_attribution_title",$tituloInstituicao); 186 $oMap->setmetadata("wms_attribution_title",$tituloInstituicao);
186 $oMap->setmetadata("ows_enable_request","*"); 187 $oMap->setmetadata("ows_enable_request","*");
187 -  
188 $e = $oMap->extent; 188 $e = $oMap->extent;
189 $extensaoMap = ($e->minx)." ".($e->miny)." ".($e->maxx)." ".($e->maxy); 189 $extensaoMap = ($e->minx)." ".($e->miny)." ".($e->maxx)." ".($e->maxy);
190 -  
191 if (!isset($intervalo)) 190 if (!isset($intervalo))
192 {$intervalo = "0,5000";} 191 {$intervalo = "0,5000";}
193 else 192 else
@@ -197,24 +196,26 @@ if(!isset($tema)){ @@ -197,24 +196,26 @@ if(!isset($tema)){
197 {$intervalo = "0,5000";} 196 {$intervalo = "0,5000";}
198 $tipo = "intervalo"; 197 $tipo = "intervalo";
199 } 198 }
200 -if ($tipo == "" || $tipo == "metadados")  
201 -{ 199 +if ($tipo == "" || $tipo == "metadados"){
202 $tema = explode(" ",$tema); 200 $tema = explode(" ",$tema);
203 //para o caso do tema ser um arquivo mapfile existente em uma pasta qualquer 201 //para o caso do tema ser um arquivo mapfile existente em uma pasta qualquer
204 //$temai3geo = true indica que o layer ser&aacute; buscado na pasta i3geo/temas 202 //$temai3geo = true indica que o layer ser&aacute; buscado na pasta i3geo/temas
205 $temai3geo = true; 203 $temai3geo = true;
  204 + //FIXME não aceita gvp quando o caminho é completo
206 if(file_exists($_GET["tema"])){ 205 if(file_exists($_GET["tema"])){
207 $nmap = ms_newMapobj($_GET["tema"]); 206 $nmap = ms_newMapobj($_GET["tema"]);
208 $temai3geo = false; 207 $temai3geo = false;
209 $nmap->setmetadata("ows_enable_request","*"); 208 $nmap->setmetadata("ows_enable_request","*");
210 } 209 }
211 - foreach ($tema as $tx)  
212 - { 210 + foreach ($tema as $tx){
213 $extensao = ".map"; 211 $extensao = ".map";
214 if(file_exists($locaplic."/temas/".$tx.".php") && $temai3geo == true){ 212 if(file_exists($locaplic."/temas/".$tx.".php") && $temai3geo == true){
215 $extensao = ".php"; 213 $extensao = ".php";
216 } 214 }
217 - if($extensao == ".map"){ 215 + if(file_exists($locaplic."/temas/".$tx.".gvp") && $temai3geo == true){
  216 + $extensao = ".gvp";
  217 + }
  218 + if($extensao == ".map"){
218 if($temai3geo == true){ 219 if($temai3geo == true){
219 $nmap = ms_newMapobj($locaplic."/temas/".$tx.".map"); 220 $nmap = ms_newMapobj($locaplic."/temas/".$tx.".map");
220 $nmap->setmetadata("ows_enable_request","*"); 221 $nmap->setmetadata("ows_enable_request","*");
@@ -224,80 +225,93 @@ if ($tipo == &quot;&quot; || $tipo == &quot;metadados&quot;) @@ -224,80 +225,93 @@ if ($tipo == &quot;&quot; || $tipo == &quot;metadados&quot;)
224 else{ 225 else{
225 $ts = explode(",",str_replace(" ",",",$layers)); 226 $ts = explode(",",str_replace(" ",",",$layers));
226 } 227 }
227 - foreach ($ts as $t)  
228 - { 228 + foreach ($ts as $t){
229 $l = $nmap->getlayerbyname($t); 229 $l = $nmap->getlayerbyname($t);
230 - //necess&aacute;rio pq o mapfile pode ter todos os layers como default  
231 - if($temai3geo == false)  
232 - {$l->set("status",MS_OFF);}  
233 - if($cache == true && strtolower($l->getmetadata('cache')) == 'sim' && $tipo == '' && count($tema) == 1){  
234 - carregaCacheImagem($_GET['BBOX'],$tx,$_GET['WIDTH'],$_GET['HEIGHT'],$cachedir);  
235 - }  
236 - $l->setmetadata("ows_title",pegaNome($l));  
237 - $l->setmetadata("ows_srs",$listaepsg);  
238 - //essa linha &eacute; necess&aacute;ria pq as vezes no mapfile n&atilde;o tem nenhum layer com o nome igual ao nome do mapfile  
239 - if(count($ts)==1)  
240 - {$l->set("name",$tx);}  
241 - $l->setmetadata("gml_include_items","all");  
242 - $l->set("dump",MS_TRUE);  
243 - $l->setmetadata("WMS_INCLUDE_ITEMS","all");  
244 - $l->setmetadata("WFS_INCLUDE_ITEMS","all");  
245 - if(file_exists($locaplic."/temas/miniaturas/".$t.".map.mini.png"))  
246 - {  
247 - $mini = $proto.$server.dirname($_SERVER['PHP_SELF'])."/temas/miniaturas/".$t.".map.mini.png";  
248 - $l->setmetadata("wms_attribution_logourl_format","image/png");  
249 - $l->setmetadata("wms_attribution_logourl_height","50");  
250 - $l->setmetadata("wms_attribution_logourl_width","50");  
251 - $l->setmetadata("wms_attribution_logourl_href",$mini);  
252 - }  
253 - if($l->type == MS_LAYER_RASTER && $l->numclasses > 0)  
254 - {  
255 - $c = $l->getclass(0);  
256 - if($c->name == "")  
257 - {$c->name = " ";}  
258 - }  
259 - //inclui extensao geografica  
260 - $extensao = $l->getmetadata("EXTENSAO");  
261 - if($extensao == "")  
262 - {$extensao = $extensaoMap;}  
263 - $l->setmetadata("wms_extent",$extensao);  
264 - if (!empty($postgis_mapa))  
265 - {  
266 - if ($l->connectiontype == MS_POSTGIS)  
267 - {  
268 - $lcon = $l->connection;  
269 - if (($lcon == " ") || ($lcon == "") || (in_array($lcon,array_keys($postgis_mapa))))  
270 - {  
271 - //  
272 - //o metadata CONEXAOORIGINAL guarda o valor original para posterior substitui&ccedil;&atilde;o  
273 - //  
274 - if(($lcon == " ") || ($lcon == ""))  
275 - {  
276 - $l->set("connection",$postgis_mapa);  
277 - $l->setmetadata("CONEXAOORIGINAL",$lcon); 230 + $permite = $l->getmetadata("permiteogc");
  231 + if(strtolower($permite) != "nao"){
  232 + //necess&aacute;rio pq o mapfile pode ter todos os layers como default
  233 + if($temai3geo == false){
  234 + $l->set("status",MS_OFF);
  235 + }
  236 + if($cache == true && strtolower($l->getmetadata('cache')) == 'sim' && $tipo == '' && count($tema) == 1){
  237 + carregaCacheImagem($_GET['BBOX'],$tx,$_GET['WIDTH'],$_GET['HEIGHT'],$cachedir);
  238 + }
  239 + $l->setmetadata("ows_title",pegaNome($l));
  240 + $l->setmetadata("ows_srs",$listaepsg);
  241 + //essa linha &eacute; necess&aacute;ria pq as vezes no mapfile n&atilde;o tem nenhum layer com o nome igual ao nome do mapfile
  242 + if(count($ts)==1){
  243 + $l->set("name",$tx);
  244 + }
  245 + $l->setmetadata("gml_include_items","all");
  246 + $l->set("dump",MS_TRUE);
  247 + $l->setmetadata("WMS_INCLUDE_ITEMS","all");
  248 + $l->setmetadata("WFS_INCLUDE_ITEMS","all");
  249 + if(file_exists($locaplic."/temas/miniaturas/".$t.".map.mini.png")){
  250 + $mini = $proto.$server.dirname($_SERVER['PHP_SELF'])."/temas/miniaturas/".$t.".map.mini.png";
  251 + $l->setmetadata("wms_attribution_logourl_format","image/png");
  252 + $l->setmetadata("wms_attribution_logourl_height","50");
  253 + $l->setmetadata("wms_attribution_logourl_width","50");
  254 + $l->setmetadata("wms_attribution_logourl_href",$mini);
  255 + }
  256 + if($l->type == MS_LAYER_RASTER && $l->numclasses > 0){
  257 + $c = $l->getclass(0);
  258 + if($c->name == "")
  259 + {$c->name = " ";}
  260 + }
  261 + //inclui extensao geografica
  262 + $extensao = $l->getmetadata("EXTENSAO");
  263 + if($extensao == ""){
  264 + $extensao = $extensaoMap;
  265 + }
  266 + $l->setmetadata("wms_extent",$extensao);
  267 + if (!empty($postgis_mapa)){
  268 + if ($l->connectiontype == MS_POSTGIS){
  269 + $lcon = $l->connection;
  270 + if (($lcon == " ") || ($lcon == "") || (in_array($lcon,array_keys($postgis_mapa)))){
  271 + //
  272 + //o metadata CONEXAOORIGINAL guarda o valor original para posterior substitui&ccedil;&atilde;o
  273 + //
  274 + if(($lcon == " ") || ($lcon == "")){
  275 + $l->set("connection",$postgis_mapa);
  276 + $l->setmetadata("CONEXAOORIGINAL",$lcon);
  277 + }
  278 + else{
  279 + $l->set("connection",$postgis_mapa[$lcon]);
  280 + $l->setmetadata("CONEXAOORIGINAL",$lcon);
  281 + }
278 } 282 }
279 - else  
280 - {  
281 - $l->set("connection",$postgis_mapa[$lcon]);  
282 - $l->setmetadata("CONEXAOORIGINAL",$lcon);  
283 - }  
284 } 283 }
285 } 284 }
  285 + autoClasses($l,$oMap);
  286 + ms_newLayerObj($oMap, $l);
286 } 287 }
287 - autoClasses($l,$oMap);  
288 - $permite = $l->getmetadata("permiteogc");  
289 - if($permite != "nao")  
290 - ms_newLayerObj($oMap, $l);  
291 } 288 }
292 } 289 }
293 - else{ 290 + if($extensao == ".php"){
294 include_once($locaplic."/temas/".$tx.".php"); 291 include_once($locaplic."/temas/".$tx.".php");
295 eval($tx."(\$oMap);"); 292 eval($tx."(\$oMap);");
296 } 293 }
  294 + if($extensao == ".gvp"){
  295 + include_once($locaplic."/pacotes/gvsig/gvsig2mapfile/class.gvsig2mapfile.php");
  296 + $gm = new gvsig2mapfile($locaplic."/temas/".$tx.".gvp");
  297 + $gvsigview = $gm->getViewsNames();
  298 + $gvsigview = $gvsigview[0];
  299 + $dataView = $gm->getViewData($gvsigview);
  300 + $oMap = $gm->addLayers($oMap,$gvsigview,$dataView["layerNames"]);
  301 + $numlayers = $oMap->numlayers;
  302 + for ($i=0;$i < $numlayers;$i++){
  303 + $l = $oMap->getlayer($i);
  304 + $l->setmetadata("gml_include_items","all");
  305 + $l->set("dump",MS_TRUE);
  306 + $l->setmetadata("WMS_INCLUDE_ITEMS","all");
  307 + $l->setmetadata("WFS_INCLUDE_ITEMS","all");
  308 + $l->setmetadata("ows_srs",$listaepsg);
  309 + $oMap->setmetadata("ows_enable_request","*");
  310 + }
  311 + }
297 } 312 }
298 } 313 }
299 -else  
300 -{ 314 +else{
301 $conta = 0; 315 $conta = 0;
302 $int = explode(",",$intervalo); 316 $int = explode(",",$intervalo);
303 $codigosTema = array(); 317 $codigosTema = array();
@@ -305,22 +319,15 @@ else @@ -305,22 +319,15 @@ else
305 include("classesphp/classe_menutemas.php"); 319 include("classesphp/classe_menutemas.php");
306 $m = new Menutemas("",$perfil,$locaplic,$urli3geo); 320 $m = new Menutemas("",$perfil,$locaplic,$urli3geo);
307 $menus = $m->pegaListaDeMenus(); 321 $menus = $m->pegaListaDeMenus();
308 - foreach ($menus as $menu)  
309 - { 322 + foreach ($menus as $menu){
310 $grupos = $m->pegaListaDeGrupos($menu["idmenu"],$listasistemas="nao",$listasgrupos="sim"); 323 $grupos = $m->pegaListaDeGrupos($menu["idmenu"],$listasistemas="nao",$listasgrupos="sim");
311 - foreach($grupos as $grupo)  
312 - {  
313 - if(strtolower($grupo["ogc"]) == "sim")  
314 - {  
315 - foreach($grupo["subgrupos"] as $sgrupo)  
316 - {  
317 - if(strtolower($sgrupo["ogc"]) == "sim")  
318 - { 324 + foreach($grupos as $grupo){
  325 + if(strtolower($grupo["ogc"]) == "sim"){
  326 + foreach($grupo["subgrupos"] as $sgrupo){
  327 + if(strtolower($sgrupo["ogc"]) == "sim"){
319 $temas = $m->pegaListaDeTemas($grupo["id_n1"],$sgrupo["id_n2"],$menu["idmenu"]); 328 $temas = $m->pegaListaDeTemas($grupo["id_n1"],$sgrupo["id_n2"],$menu["idmenu"]);
320 - foreach($temas as $tema)  
321 - {  
322 - if(strtolower($tema["ogc"]) == "sim")  
323 - { 329 + foreach($temas as $tema){
  330 + if(strtolower($tema["ogc"]) == "sim"){
324 $codigosTema[] = array("tema"=>$tema["tid"],"fonte"=>$tema["link"]); 331 $codigosTema[] = array("tema"=>$tema["tid"],"fonte"=>$tema["link"]);
325 } 332 }
326 } 333 }
@@ -332,25 +339,18 @@ else @@ -332,25 +339,18 @@ else
332 //echo "<pre>"; 339 //echo "<pre>";
333 //var_dump($$codigosTema); 340 //var_dump($$codigosTema);
334 //exit; 341 //exit;
335 - foreach($codigosTema as $c)  
336 - { 342 + foreach($codigosTema as $c){
337 $codigoTema = $c["tema"]; 343 $codigoTema = $c["tema"];
338 - if(file_exists($locaplic."/temas/".$codigoTema.".map"))  
339 - {  
340 - if (@ms_newMapobj($locaplic."/temas/".$codigoTema.".map"))  
341 - { 344 + if(file_exists($locaplic."/temas/".$codigoTema.".map")){
  345 + if (@ms_newMapobj($locaplic."/temas/".$codigoTema.".map")){
342 $nmap = ms_newMapobj($locaplic."/temas/".$codigoTema.".map"); 346 $nmap = ms_newMapobj($locaplic."/temas/".$codigoTema.".map");
343 $nmap->setmetadata("ows_enable_request","*"); 347 $nmap->setmetadata("ows_enable_request","*");
344 $ts = $nmap->getalllayernames(); 348 $ts = $nmap->getalllayernames();
345 - if (count($ts) == 1)  
346 - {  
347 - foreach ($ts as $t)  
348 - {  
349 - if ($oMap->getlayerbyname($t) == "")  
350 - { 349 + if (count($ts) == 1){
  350 + foreach ($ts as $t){
  351 + if ($oMap->getlayerbyname($t) == ""){
351 $conta++; 352 $conta++;
352 - if (($conta >= $int[0]) && ($conta <= $int[1]))  
353 - { 353 + if (($conta >= $int[0]) && ($conta <= $int[1])){
354 $l = $nmap->getlayerbyname($t); 354 $l = $nmap->getlayerbyname($t);
355 $extensao = $l->getmetadata("EXTENSAO"); 355 $extensao = $l->getmetadata("EXTENSAO");
356 if($extensao == "") 356 if($extensao == "")
@@ -364,18 +364,17 @@ else @@ -364,18 +364,17 @@ else
364 $l->set("dump",MS_TRUE); 364 $l->set("dump",MS_TRUE);
365 $l->setmetadata("WMS_INCLUDE_ITEMS","all"); 365 $l->setmetadata("WMS_INCLUDE_ITEMS","all");
366 $l->setmetadata("WFS_INCLUDE_ITEMS","all"); 366 $l->setmetadata("WFS_INCLUDE_ITEMS","all");
367 - 367 +
368 $l->setmetadata("ows_metadataurl_href",$c["fonte"]); 368 $l->setmetadata("ows_metadataurl_href",$c["fonte"]);
369 $l->setmetadata("ows_metadataurl_type","TC211"); 369 $l->setmetadata("ows_metadataurl_type","TC211");
370 $l->setmetadata("ows_metadataurl_format","text/html"); 370 $l->setmetadata("ows_metadataurl_format","text/html");
371 - if(file_exists($locaplic."/temas/miniaturas/".$t.".map.mini.png"))  
372 - { 371 + if(file_exists($locaplic."/temas/miniaturas/".$t.".map.mini.png")){
373 $mini = $proto.$server.dirname($_SERVER['PHP_SELF'])."/temas/miniaturas/".$t.".map.mini.png"; 372 $mini = $proto.$server.dirname($_SERVER['PHP_SELF'])."/temas/miniaturas/".$t.".map.mini.png";
374 $l->setmetadata("wms_attribution_logourl_format","image/png"); 373 $l->setmetadata("wms_attribution_logourl_format","image/png");
375 $l->setmetadata("wms_attribution_logourl_height","50"); 374 $l->setmetadata("wms_attribution_logourl_height","50");
376 $l->setmetadata("wms_attribution_logourl_width","50"); 375 $l->setmetadata("wms_attribution_logourl_width","50");
377 $l->setmetadata("wms_attribution_logourl_href",$mini); 376 $l->setmetadata("wms_attribution_logourl_href",$mini);
378 - } 377 + }
379 ms_newLayerObj($oMap, $l); 378 ms_newLayerObj($oMap, $l);
380 } 379 }
381 } 380 }
@@ -386,7 +385,7 @@ else @@ -386,7 +385,7 @@ else
386 } 385 }
387 } 386 }
388 if($cache == true){ 387 if($cache == true){
389 - 388 +
390 } 389 }
391 ms_ioinstallstdouttobuffer(); 390 ms_ioinstallstdouttobuffer();
392 $oMap->owsdispatch($req); 391 $oMap->owsdispatch($req);
@@ -401,8 +400,7 @@ ms_ioresethandlers(); @@ -401,8 +400,7 @@ ms_ioresethandlers();
401 // 400 //
402 //fun&ccedil;&otilde;es 401 //fun&ccedil;&otilde;es
403 // 402 //
404 -function ogc_pegaListaDeMenus()  
405 -{ 403 +function ogc_pegaListaDeMenus(){
406 global $perfil,$locaplic,$urli3geo; 404 global $perfil,$locaplic,$urli3geo;
407 if(!isset($perfil)){$perfil = "";} 405 if(!isset($perfil)){$perfil = "";}
408 $m = new Menutemas("",$perfil,$locsistemas,$locaplic,"",$urli3geo); 406 $m = new Menutemas("",$perfil,$locsistemas,$locaplic,"",$urli3geo);
@@ -410,8 +408,7 @@ function ogc_pegaListaDeMenus() @@ -410,8 +408,7 @@ function ogc_pegaListaDeMenus()
410 {$menus[] = $urli3geo."/admin/xmlmenutemas.php?id_menu=".$menu["idmenu"];} 408 {$menus[] = $urli3geo."/admin/xmlmenutemas.php?id_menu=".$menu["idmenu"];}
411 return $menus; 409 return $menus;
412 } 410 }
413 -function ogc_imprimeAjuda()  
414 -{ 411 +function ogc_imprimeAjuda(){
415 echo "<pre><b>Construtor de web services do I3Geo.</b><br><br>"; 412 echo "<pre><b>Construtor de web services do I3Geo.</b><br><br>";
416 echo "Esse utilit&aacute;rio usa os arquivos mapfiles existentes em <br>"; 413 echo "Esse utilit&aacute;rio usa os arquivos mapfiles existentes em <br>";
417 echo "i3geo/temas para gerar web services no padr&atilde;o OGC.<br>"; 414 echo "i3geo/temas para gerar web services no padr&atilde;o OGC.<br>";
@@ -423,32 +420,24 @@ function ogc_imprimeAjuda() @@ -423,32 +420,24 @@ function ogc_imprimeAjuda()
423 echo "Utilize o sistema de administra&ccedil;&atilde;o do i3Geo para configurar quais os temas da pasta i3geo/temas podem ser utilizados."; 420 echo "Utilize o sistema de administra&ccedil;&atilde;o do i3Geo para configurar quais os temas da pasta i3geo/temas podem ser utilizados.";
424 echo "Utilize o parametro &intervalo=0,20 para definir o n&uacute;mero de temas desejado na fun&ccedil;&atilde;o getcapabilities."; 421 echo "Utilize o parametro &intervalo=0,20 para definir o n&uacute;mero de temas desejado na fun&ccedil;&atilde;o getcapabilities.";
425 } 422 }
426 -function ogc_imprimeListaDeTemas()  
427 -{ 423 +function ogc_imprimeListaDeTemas(){
428 global $urli3geo,$perfil,$locaplic; 424 global $urli3geo,$perfil,$locaplic;
429 $m = new Menutemas("",$perfil,$locaplic,$urli3geo); 425 $m = new Menutemas("",$perfil,$locaplic,$urli3geo);
430 $menus = $m->pegaListaDeMenus(); 426 $menus = $m->pegaListaDeMenus();
431 echo '<html><head><title>WMS</title><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"><meta name="description" content="OGC"><meta name="keywords" content="WMS OGC mapa sig gis webmapping geo geoprocessamento interativo meio ambiente MMA cartografia geografia"> <meta name="robots" content="index,follow">'; 427 echo '<html><head><title>WMS</title><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"><meta name="description" content="OGC"><meta name="keywords" content="WMS OGC mapa sig gis webmapping geo geoprocessamento interativo meio ambiente MMA cartografia geografia"> <meta name="robots" content="index,follow">';
432 echo "<body><b>Lista de temas por grupos e subgrupos e endere&ccedil;os de acesso aos dados por meio de Web Services WMS (os códigos dos temas est&atilde;o em vermelho)</b><br><br>"; 428 echo "<body><b>Lista de temas por grupos e subgrupos e endere&ccedil;os de acesso aos dados por meio de Web Services WMS (os códigos dos temas est&atilde;o em vermelho)</b><br><br>";
433 $imprimir = ""; 429 $imprimir = "";
434 - foreach ($menus as $menu)  
435 - { 430 + foreach ($menus as $menu){
436 $grupos = $m->pegaListaDeGrupos($menu["idmenu"],$listasistemas="nao",$listasgrupos="sim"); 431 $grupos = $m->pegaListaDeGrupos($menu["idmenu"],$listasistemas="nao",$listasgrupos="sim");
437 - foreach($grupos as $grupo)  
438 - {  
439 - if(strtolower($grupo["ogc"]) == "sim")  
440 - { 432 + foreach($grupos as $grupo){
  433 + if(strtolower($grupo["ogc"]) == "sim"){
441 $imprimegrupo = "<i>".$grupo["nome"]."</i>"; 434 $imprimegrupo = "<i>".$grupo["nome"]."</i>";
442 - foreach($grupo["subgrupos"] as $sgrupo)  
443 - {  
444 - if(strtolower($sgrupo["ogc"]) == "sim")  
445 - { 435 + foreach($grupo["subgrupos"] as $sgrupo){
  436 + if(strtolower($sgrupo["ogc"]) == "sim"){
446 $imprimesubgrupo = $sgrupo["nome"]; 437 $imprimesubgrupo = $sgrupo["nome"];
447 $temas = $m->pegaListaDeTemas($grupo["id_n1"],$sgrupo["id_n2"],$menu["idmenu"]); 438 $temas = $m->pegaListaDeTemas($grupo["id_n1"],$sgrupo["id_n2"],$menu["idmenu"]);
448 - foreach($temas as $tema)  
449 - {  
450 - if(strtolower($tema["ogc"]) == "sim")  
451 - { 439 + foreach($temas as $tema){
  440 + if(strtolower($tema["ogc"]) == "sim"){
452 $imprimir .= $imprimegrupo."->".$imprimesubgrupo."<br>"; 441 $imprimir .= $imprimegrupo."->".$imprimesubgrupo."<br>";
453 $imprimir .= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"; 442 $imprimir .= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
454 $imprimir .= "<span style=color:red >".$tema["tid"]."</span>"; 443 $imprimir .= "<span style=color:red >".$tema["tid"]."</span>";
@@ -474,8 +463,7 @@ function carregaCacheImagem($bbox,$layer,$w,$h,$cachedir=&quot;&quot;){ @@ -474,8 +463,7 @@ function carregaCacheImagem($bbox,$layer,$w,$h,$cachedir=&quot;&quot;){
474 {$nome = $dir_tmp."/cache/".$layer."/".$nome;} 463 {$nome = $dir_tmp."/cache/".$layer."/".$nome;}
475 else 464 else
476 {$nome = $cachedir."/".$layer."/".$nome;} 465 {$nome = $cachedir."/".$layer."/".$nome;}
477 - if(file_exists($nome))  
478 - { 466 + if(file_exists($nome)){
479 ob_start(); 467 ob_start();
480 // assuming you have image data in $imagedata 468 // assuming you have image data in $imagedata
481 $img = file_get_contents($nome); 469 $img = file_get_contents($nome);
@@ -494,7 +482,7 @@ function carregaCacheImagem($bbox,$layer,$w,$h,$cachedir=&quot;&quot;){ @@ -494,7 +482,7 @@ function carregaCacheImagem($bbox,$layer,$w,$h,$cachedir=&quot;&quot;){
494 print($img); 482 print($img);
495 ob_end_flush(); 483 ob_end_flush();
496 exit; 484 exit;
497 - } 485 + }
498 /* 486 /*
499 if(file_exists($nome)) 487 if(file_exists($nome))
500 { 488 {