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 | 1140 | function identificaQBP2($tema="",$x=0,$y=0,$map_file="",$resolucao=0,$item="",$tiporetorno="",$etip=false,$ext="") |
1141 | 1141 | { |
1142 | 1142 | if($map_file == "") |
1143 | - {$mapa = $this->mapa;} | |
1143 | + { | |
1144 | + $mapa = $this->mapa; | |
1145 | + $map_file = $this->arquivo; | |
1146 | + } | |
1144 | 1147 | else |
1145 | 1148 | {$mapa = ms_newMapObj($map_file);} |
1149 | + | |
1146 | 1150 | if($ext != ""){ |
1147 | 1151 | $extmapa = $mapa->extent; |
1148 | 1152 | $e = explode(" ",$ext); |
... | ... | @@ -1165,6 +1169,7 @@ $listaDeTemas - (opcional) Lista com os códigos dos temas que serão identificado |
1165 | 1169 | $layer->set("toleranceunits",MS_PIXELS); |
1166 | 1170 | $layer->set("tolerance",$resolucao); |
1167 | 1171 | $ptimg = xy2imagem($map_file,array($x,$y)); |
1172 | + //var_dump($ptimg);exit; | |
1168 | 1173 | $mapa = desligatemas($mapa); |
1169 | 1174 | $mapa = desligamargem($mapa); |
1170 | 1175 | $imgo = $mapa->draw(); |
... | ... | @@ -1192,6 +1197,10 @@ $listaDeTemas - (opcional) Lista com os códigos dos temas que serão identificado |
1192 | 1197 | $res = str_replace("INFOFORMAT","INFO_FORMAT",$res); |
1193 | 1198 | $res2 = $layer->getWMSFeatureInfoURL($ptimg->x, $ptimg->y, 1,"MIME"); |
1194 | 1199 | $res2 = str_replace("INFOFORMAT","INFO_FORMAT",$res2); |
1200 | + | |
1201 | + //echo $ptimg->x;exit; | |
1202 | + | |
1203 | + | |
1195 | 1204 | $resposta = file($res); |
1196 | 1205 | $n = array(); |
1197 | 1206 | if(strtoupper($formatoinfo) == "TEXT/HTML") | ... | ... |
classesphp/pega_variaveis.php
... | ... | @@ -59,8 +59,10 @@ if (isset($_GET)) |
59 | 59 | { |
60 | 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 | 68 | //var_dump($_GET);exit; | ... | ... |
ferramentas/identifica/index.js.php
... | ... | @@ -600,6 +600,7 @@ i3GEOF.identifica = { |
600 | 600 | */ |
601 | 601 | mostraDadosTema: function(retorno){ |
602 | 602 | var res="",div0,ntemas,i,resultados,nres,cor,j,itens,nitens,k,atualN = "todas",inicio=0,numResultados,tip; |
603 | + | |
603 | 604 | if($i("i3GEOFidentificaNocorrencias")) |
604 | 605 | {atualN = $i("i3GEOFidentificaNocorrencias").value;} |
605 | 606 | $i("i3GEOF.identifica_corpo").scrollTop = 0; |
... | ... | @@ -631,7 +632,7 @@ i3GEOF.identifica = { |
631 | 632 | nitens = resultados[j].length; |
632 | 633 | for(k=0;k<nitens;k++){ |
633 | 634 | tip = " "; |
634 | - if(resultados[j][k].tip.toLowerCase() == "sim"){ | |
635 | + if(resultados[j][k].tip && resultados[j][k].tip.toLowerCase() == "sim"){ | |
635 | 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 | 638 | else{ | ... | ... |