Commit 80125f3709635f823fc8430304ef5ead6c56903f
1 parent
240f4500
Exists in
master
and in
7 other branches
--no commit message
Showing
4 changed files
with
17 additions
and
5 deletions
Show diff stats
classesphp/classe_atributos.php
@@ -1140,9 +1140,13 @@ $listaDeTemas - (opcional) Lista com os códigos dos temas que serão identificado | @@ -1140,9 +1140,13 @@ $listaDeTemas - (opcional) Lista com os códigos dos temas que serão identificado | ||
1140 | function identificaQBP2($tema="",$x=0,$y=0,$map_file="",$resolucao=0,$item="",$tiporetorno="",$etip=false,$ext="") | 1140 | function identificaQBP2($tema="",$x=0,$y=0,$map_file="",$resolucao=0,$item="",$tiporetorno="",$etip=false,$ext="") |
1141 | { | 1141 | { |
1142 | if($map_file == "") | 1142 | if($map_file == "") |
1143 | - {$mapa = $this->mapa;} | 1143 | + { |
1144 | + $mapa = $this->mapa; | ||
1145 | + $map_file = $this->arquivo; | ||
1146 | + } | ||
1144 | else | 1147 | else |
1145 | {$mapa = ms_newMapObj($map_file);} | 1148 | {$mapa = ms_newMapObj($map_file);} |
1149 | + | ||
1146 | if($ext != ""){ | 1150 | if($ext != ""){ |
1147 | $extmapa = $mapa->extent; | 1151 | $extmapa = $mapa->extent; |
1148 | $e = explode(" ",$ext); | 1152 | $e = explode(" ",$ext); |
@@ -1165,6 +1169,7 @@ $listaDeTemas - (opcional) Lista com os códigos dos temas que serão identificado | @@ -1165,6 +1169,7 @@ $listaDeTemas - (opcional) Lista com os códigos dos temas que serão identificado | ||
1165 | $layer->set("toleranceunits",MS_PIXELS); | 1169 | $layer->set("toleranceunits",MS_PIXELS); |
1166 | $layer->set("tolerance",$resolucao); | 1170 | $layer->set("tolerance",$resolucao); |
1167 | $ptimg = xy2imagem($map_file,array($x,$y)); | 1171 | $ptimg = xy2imagem($map_file,array($x,$y)); |
1172 | + //var_dump($ptimg);exit; | ||
1168 | $mapa = desligatemas($mapa); | 1173 | $mapa = desligatemas($mapa); |
1169 | $mapa = desligamargem($mapa); | 1174 | $mapa = desligamargem($mapa); |
1170 | $imgo = $mapa->draw(); | 1175 | $imgo = $mapa->draw(); |
@@ -1192,6 +1197,10 @@ $listaDeTemas - (opcional) Lista com os códigos dos temas que serão identificado | @@ -1192,6 +1197,10 @@ $listaDeTemas - (opcional) Lista com os códigos dos temas que serão identificado | ||
1192 | $res = str_replace("INFOFORMAT","INFO_FORMAT",$res); | 1197 | $res = str_replace("INFOFORMAT","INFO_FORMAT",$res); |
1193 | $res2 = $layer->getWMSFeatureInfoURL($ptimg->x, $ptimg->y, 1,"MIME"); | 1198 | $res2 = $layer->getWMSFeatureInfoURL($ptimg->x, $ptimg->y, 1,"MIME"); |
1194 | $res2 = str_replace("INFOFORMAT","INFO_FORMAT",$res2); | 1199 | $res2 = str_replace("INFOFORMAT","INFO_FORMAT",$res2); |
1200 | + | ||
1201 | + //echo $ptimg->x;exit; | ||
1202 | + | ||
1203 | + | ||
1195 | $resposta = file($res); | 1204 | $resposta = file($res); |
1196 | $n = array(); | 1205 | $n = array(); |
1197 | if(strtoupper($formatoinfo) == "TEXT/HTML") | 1206 | if(strtoupper($formatoinfo) == "TEXT/HTML") |
classesphp/pega_variaveis.php
@@ -59,8 +59,10 @@ if (isset($_GET)) | @@ -59,8 +59,10 @@ if (isset($_GET)) | ||
59 | { | 59 | { |
60 | foreach(array_keys($_GET) as $k) | 60 | foreach(array_keys($_GET) as $k) |
61 | { | 61 | { |
62 | - if ($_GET[$k] != "''") | ||
63 | - eval("\$".$k."='".(strip_tags($_GET[$k]))."';"); | 62 | + if ($_GET[$k] != "''"){ |
63 | + $v = strip_tags($_GET[$k]); | ||
64 | + eval("\$".$k."='".($v)."';"); | ||
65 | + } | ||
64 | } | 66 | } |
65 | } | 67 | } |
66 | //var_dump($_GET);exit; | 68 | //var_dump($_GET);exit; |
ferramentas/identifica/index.js.php
@@ -600,6 +600,7 @@ i3GEOF.identifica = { | @@ -600,6 +600,7 @@ i3GEOF.identifica = { | ||
600 | */ | 600 | */ |
601 | mostraDadosTema: function(retorno){ | 601 | mostraDadosTema: function(retorno){ |
602 | var res="",div0,ntemas,i,resultados,nres,cor,j,itens,nitens,k,atualN = "todas",inicio=0,numResultados,tip; | 602 | var res="",div0,ntemas,i,resultados,nres,cor,j,itens,nitens,k,atualN = "todas",inicio=0,numResultados,tip; |
603 | + | ||
603 | if($i("i3GEOFidentificaNocorrencias")) | 604 | if($i("i3GEOFidentificaNocorrencias")) |
604 | {atualN = $i("i3GEOFidentificaNocorrencias").value;} | 605 | {atualN = $i("i3GEOFidentificaNocorrencias").value;} |
605 | $i("i3GEOF.identifica_corpo").scrollTop = 0; | 606 | $i("i3GEOF.identifica_corpo").scrollTop = 0; |
@@ -631,7 +632,7 @@ i3GEOF.identifica = { | @@ -631,7 +632,7 @@ i3GEOF.identifica = { | ||
631 | nitens = resultados[j].length; | 632 | nitens = resultados[j].length; |
632 | for(k=0;k<nitens;k++){ | 633 | for(k=0;k<nitens;k++){ |
633 | tip = " "; | 634 | tip = " "; |
634 | - if(resultados[j][k].tip.toLowerCase() == "sim"){ | 635 | + if(resultados[j][k].tip && resultados[j][k].tip.toLowerCase() == "sim"){ |
635 | tip = "<img style='margin-right:2px;position:relative;top:3px;width:12px;' src='"+i3GEO.configura.locaplic+"/imagens/tips.png' title='Etiqueta ativa' />"; | 636 | tip = "<img style='margin-right:2px;position:relative;top:3px;width:12px;' src='"+i3GEO.configura.locaplic+"/imagens/tips.png' title='Etiqueta ativa' />"; |
636 | } | 637 | } |
637 | else{ | 638 | else{ |
versao.php
@@ -2,5 +2,5 @@ | @@ -2,5 +2,5 @@ | ||
2 | /* | 2 | /* |
3 | Utilizado como um include em ms_configura.php | 3 | Utilizado como um include em ms_configura.php |
4 | */ | 4 | */ |
5 | -$mensagemInicia = 'Versão 4.5 - SP9 '; | 5 | +$mensagemInicia = 'Versão 4.5 - SP10 '; |
6 | ?> | 6 | ?> |
7 | \ No newline at end of file | 7 | \ No newline at end of file |