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