Commit 9332c6545022f79a619cddcd14df65121a87a12b
1 parent
e514d4c1
Exists in
master
and in
7 other branches
--no commit message
Showing
5 changed files
with
111 additions
and
11 deletions
Show diff stats
.settings/.jsdtscope
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <classpath> | 2 | <classpath> |
3 | - <classpathentry excluding="*compact*|*pacotes*" kind="src" path=""> | ||
4 | - <attributes> | ||
5 | - <attribute name="provider" value="org.eclipse.wst.jsdt.web.core.internal.project.ModuleSourcePathProvider"/> | ||
6 | - </attributes> | ||
7 | - </classpathentry> | 3 | + <classpathentry kind="src" path="admin/js"/> |
4 | + <classpathentry kind="src" path="classesjs"/> | ||
5 | + <classpathentry kind="src" path="documentacao/javascript"/> | ||
6 | + <classpathentry kind="src" path="exemplos/atlas"/> | ||
7 | + <classpathentry kind="src" path="ferramentas/3d"/> | ||
8 | + <classpathentry kind="src" path="ferramentas/agrupaelementos"/> | ||
9 | + <classpathentry kind="src" path="ferramentas/analisageometrias"/> | ||
10 | + <classpathentry kind="src" path="ferramentas/animacao"/> | ||
11 | + <classpathentry kind="src" path="ferramentas/aplicarsld"/> | ||
12 | + <classpathentry kind="src" path="ferramentas/buffer"/> | ||
13 | + <classpathentry kind="src" path="ferramentas/bufferpt"/> | ||
14 | + <classpathentry kind="src" path="ferramentas/busca"/> | ||
15 | + <classpathentry kind="src" path="ferramentas/buscafotos"/> | ||
16 | + <classpathentry kind="src" path="ferramentas/buscainde"/> | ||
17 | + <classpathentry kind="src" path="ferramentas/buscarapida"/> | ||
18 | + <classpathentry kind="src" path="ferramentas/carouseltemas"/> | ||
19 | + <classpathentry kind="src" path="ferramentas/carregakml"/> | ||
20 | + <classpathentry kind="src" path="ferramentas/carregamapa"/> | ||
21 | + <classpathentry kind="src" path="ferramentas/centroide"/> | ||
22 | + <classpathentry kind="src" path="ferramentas/centromassa"/> | ||
23 | + <classpathentry kind="src" path="ferramentas/colorpicker"/> | ||
24 | + <classpathentry kind="src" path="ferramentas/colourramp"/> | ||
25 | + <classpathentry kind="src" path="ferramentas/comentarios"/> | ||
26 | + <classpathentry kind="src" path="ferramentas/conectargeojson"/> | ||
27 | + <classpathentry kind="src" path="ferramentas/conectargeorss"/> | ||
28 | + <classpathentry kind="src" path="ferramentas/conectarwms"/> | ||
29 | + <classpathentry kind="src" path="ferramentas/confluence"/> | ||
30 | + <classpathentry kind="src" path="ferramentas/convertekml"/> | ||
31 | + <classpathentry kind="src" path="ferramentas/convertemapakml"/> | ||
32 | + <classpathentry kind="src" path="ferramentas/convertews"/> | ||
33 | + <classpathentry kind="src" path="ferramentas/cortina"/> | ||
34 | + <classpathentry kind="src" path="ferramentas/dissolve"/> | ||
35 | + <classpathentry kind="src" path="ferramentas/distanciaptpt"/> | ||
36 | + <classpathentry kind="src" path="ferramentas/download"/> | ||
37 | + <classpathentry kind="src" path="ferramentas/editorsql"/> | ||
38 | + <classpathentry kind="src" path="ferramentas/especies"/> | ||
39 | + <classpathentry kind="src" path="ferramentas/etiqueta"/> | ||
40 | + <classpathentry kind="src" path="ferramentas/excluirarvore"/> | ||
41 | + <classpathentry kind="src" path="ferramentas/filtro"/> | ||
42 | + <classpathentry kind="src" path="ferramentas/filtroarvore"/> | ||
43 | + <classpathentry kind="src" path="ferramentas/geonames"/> | ||
44 | + <classpathentry kind="src" path="ferramentas/googlemaps"/> | ||
45 | + <classpathentry kind="src" path="ferramentas/gradecoord"/> | ||
46 | + <classpathentry kind="src" path="ferramentas/gradehex"/> | ||
47 | + <classpathentry kind="src" path="ferramentas/gradepol"/> | ||
48 | + <classpathentry kind="src" path="ferramentas/gradepontos"/> | ||
49 | + <classpathentry kind="src" path="ferramentas/graficointerativo"/> | ||
50 | + <classpathentry kind="src" path="ferramentas/graficotema"/> | ||
51 | + <classpathentry kind="src" path="ferramentas/identifica"/> | ||
52 | + <classpathentry kind="src" path="ferramentas/importarwmc"/> | ||
53 | + <classpathentry kind="src" path="ferramentas/imprimir"/> | ||
54 | + <classpathentry kind="src" path="ferramentas/inseregrafico"/> | ||
55 | + <classpathentry kind="src" path="ferramentas/inseretxt"/> | ||
56 | + <classpathentry kind="src" path="ferramentas/inserexy2"/> | ||
57 | + <classpathentry kind="src" path="ferramentas/legenda"/> | ||
58 | + <classpathentry kind="src" path="ferramentas/linhadotempo"/> | ||
59 | + <classpathentry kind="src" path="ferramentas/loginusuario"/> | ||
60 | + <classpathentry kind="src" path="ferramentas/metar"/> | ||
61 | + <classpathentry kind="src" path="ferramentas/mostraexten"/> | ||
62 | + <classpathentry kind="src" path="ferramentas/nptpol"/> | ||
63 | + <classpathentry kind="src" path="ferramentas/nuvemtags"/> | ||
64 | + <classpathentry kind="src" path="ferramentas/nuvemtagsflash"/> | ||
65 | + <classpathentry kind="src" path="ferramentas/opacidademapa"/> | ||
66 | + <classpathentry kind="src" path="ferramentas/opcoes_autoredesenha"/> | ||
67 | + <classpathentry kind="src" path="ferramentas/opcoes_escala"/> | ||
68 | + <classpathentry kind="src" path="ferramentas/opcoes_fundo"/> | ||
69 | + <classpathentry kind="src" path="ferramentas/opcoes_label"/> | ||
70 | + <classpathentry kind="src" path="ferramentas/opcoes_legenda"/> | ||
71 | + <classpathentry kind="src" path="ferramentas/opcoes_quadros"/> | ||
72 | + <classpathentry kind="src" path="ferramentas/opcoes_querymap"/> | ||
73 | + <classpathentry kind="src" path="ferramentas/opcoes_tamanho"/> | ||
74 | + <classpathentry kind="src" path="ferramentas/outputformat"/> | ||
75 | + <classpathentry kind="src" path="ferramentas/perfil"/> | ||
76 | + <classpathentry kind="src" path="ferramentas/pontoempoligono"/> | ||
77 | + <classpathentry kind="src" path="ferramentas/pontosdistri"/> | ||
78 | + <classpathentry kind="src" path="ferramentas/redessociais"/> | ||
79 | + <classpathentry kind="src" path="ferramentas/salvamapa"/> | ||
80 | + <classpathentry kind="src" path="ferramentas/salvamapfile"/> | ||
81 | + <classpathentry kind="src" path="ferramentas/scielo"/> | ||
82 | + <classpathentry kind="src" path="ferramentas/selecao"/> | ||
83 | + <classpathentry kind="src" path="ferramentas/tabela"/> | ||
84 | + <classpathentry kind="src" path="ferramentas/telaremota"/> | ||
85 | + <classpathentry kind="src" path="ferramentas/tipoimagem"/> | ||
86 | + <classpathentry kind="src" path="ferramentas/tme"/> | ||
87 | + <classpathentry kind="src" path="ferramentas/toponimia"/> | ||
88 | + <classpathentry kind="src" path="ferramentas/upload"/> | ||
89 | + <classpathentry kind="src" path="ferramentas/uploaddbf"/> | ||
90 | + <classpathentry kind="src" path="ferramentas/uploadgpx"/> | ||
91 | + <classpathentry kind="src" path="ferramentas/uploadkml"/> | ||
92 | + <classpathentry kind="src" path="ferramentas/wiki"/> | ||
93 | + <classpathentry kind="src" path="ferramentas/wmstime"/> | ||
94 | + <classpathentry kind="src" path="mashups"/> | ||
8 | <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/> | 95 | <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/> |
9 | - <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/> | ||
10 | - <classpathentry kind="con" path="org.eclipse.wst.jsdt.USER_LIBRARY/YUI"/> | ||
11 | <classpathentry kind="output" path=""/> | 96 | <classpathentry kind="output" path=""/> |
12 | </classpath> | 97 | </classpath> |
admin/admin.db
No preview for this file type
admin/php/classe_metaestat.php
@@ -285,7 +285,7 @@ class Metaestat{ | @@ -285,7 +285,7 @@ class Metaestat{ | ||
285 | $rand = $this->nomeRandomico(); | 285 | $rand = $this->nomeRandomico(); |
286 | $arq = $this->dir_tmp."/".$rand.".map"; | 286 | $arq = $this->dir_tmp."/".$rand.".map"; |
287 | $dados[] = "MAP"; | 287 | $dados[] = "MAP"; |
288 | - $dados[] = "SYMBOLSET ".$this->locaplic."/symbols/simbolosv6.sym"; | 288 | + $dados[] = 'SYMBOLSET "'.$this->locaplic.'/symbols/simbolosv6.sym"'; |
289 | $dados[] = 'FONTSET "'.$this->locaplic.'/symbols/fontes.txt"'; | 289 | $dados[] = 'FONTSET "'.$this->locaplic.'/symbols/fontes.txt"'; |
290 | $dados[] = "LAYER"; | 290 | $dados[] = "LAYER"; |
291 | $dados[] = ' NAME "'.$rand.'"'; | 291 | $dados[] = ' NAME "'.$rand.'"'; |
@@ -346,7 +346,7 @@ class Metaestat{ | @@ -346,7 +346,7 @@ class Metaestat{ | ||
346 | $versao = $versao["principal"]; | 346 | $versao = $versao["principal"]; |
347 | $f = ""; | 347 | $f = ""; |
348 | if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')){ | 348 | if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')){ |
349 | - $f = $locaplic."/aplicmap/geral1windowsv".$versao.".map"; | 349 | + $f = $this->locaplic."/aplicmap/geral1windowsv".$versao.".map"; |
350 | } | 350 | } |
351 | else{ | 351 | else{ |
352 | if($f == "" && file_exists('/var/www/i3geo/aplicmap/geral1debianv'.$versao.'.map')){ | 352 | if($f == "" && file_exists('/var/www/i3geo/aplicmap/geral1debianv'.$versao.'.map')){ |
admin/php/metaestat.php
@@ -767,6 +767,7 @@ switch (strtoupper($funcao)) | @@ -767,6 +767,7 @@ switch (strtoupper($funcao)) | ||
767 | 'dirtmp' => $dir_tmp, | 767 | 'dirtmp' => $dir_tmp, |
768 | 'barSize'=> 5000 | 768 | 'barSize'=> 5000 |
769 | ); | 769 | ); |
770 | + | ||
770 | include (__DIR__."/../../pacotes/tme/TME_i3geo.php"); | 771 | include (__DIR__."/../../pacotes/tme/TME_i3geo.php"); |
771 | } | 772 | } |
772 | exit; | 773 | exit; |
testamapfile.php
@@ -190,6 +190,7 @@ function verifica($map,$solegenda) | @@ -190,6 +190,7 @@ function verifica($map,$solegenda) | ||
190 | } | 190 | } |
191 | //echo $base;exit; | 191 | //echo $base;exit; |
192 | $mapa = ms_newMapObj($base); | 192 | $mapa = ms_newMapObj($base); |
193 | + | ||
193 | error_reporting(0); | 194 | error_reporting(0); |
194 | $temasn = $mapa->getAllLayerNames(); | 195 | $temasn = $mapa->getAllLayerNames(); |
195 | foreach ($temasn as $teman) | 196 | foreach ($temasn as $teman) |
@@ -210,6 +211,7 @@ function verifica($map,$solegenda) | @@ -210,6 +211,7 @@ function verifica($map,$solegenda) | ||
210 | } | 211 | } |
211 | } | 212 | } |
212 | } | 213 | } |
214 | + | ||
213 | if(!stristr($tema, '.php') === FALSE){ | 215 | if(!stristr($tema, '.php') === FALSE){ |
214 | echo "<br>Arquivo <i>$tema</i> é um programa PHP. O teste pode não funcionar.<br>"; | 216 | echo "<br>Arquivo <i>$tema</i> é um programa PHP. O teste pode não funcionar.<br>"; |
215 | include_once($locaplic."/".$tema); | 217 | include_once($locaplic."/".$tema); |
@@ -221,8 +223,20 @@ function verifica($map,$solegenda) | @@ -221,8 +223,20 @@ function verifica($map,$solegenda) | ||
221 | eval($pegarext."(\$mapa);"); | 223 | eval($pegarext."(\$mapa);"); |
222 | } | 224 | } |
223 | else{ | 225 | else{ |
224 | - if(file_exists($mapUrl)) | ||
225 | - {$nmapa = ms_newMapObj($mapUrl);} | 226 | + if(file_exists($mapUrl)){ |
227 | + if(@ms_newMapObj($mapUrl)) | ||
228 | + {$nmapa = ms_newMapObj($mapUrl);} | ||
229 | + else{ | ||
230 | + echo "Erro no arquivo $mapUrl <br>"; | ||
231 | + $error = ms_GetErrorObj(); | ||
232 | + while($error && $error->code != MS_NOERR) | ||
233 | + { | ||
234 | + printf("<br>Error in %s: %s<br>\n", $error->routine, $error->message); | ||
235 | + $error = $error->next(); | ||
236 | + } | ||
237 | + return; | ||
238 | + } | ||
239 | + } | ||
226 | else{ | 240 | else{ |
227 | if(@ms_newMapObj($locaplic."/".$tema)) | 241 | if(@ms_newMapObj($locaplic."/".$tema)) |
228 | { | 242 | { |