From 80125f3709635f823fc8430304ef5ead6c56903f Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Fri, 2 Sep 2011 18:04:54 +0000 Subject: [PATCH] --- classesphp/classe_atributos.php | 11 ++++++++++- classesphp/pega_variaveis.php | 6 ++++-- ferramentas/identifica/index.js.php | 3 ++- versao.php | 2 +- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/classesphp/classe_atributos.php b/classesphp/classe_atributos.php index 3d12f5b..0dd662c 100644 --- a/classesphp/classe_atributos.php +++ b/classesphp/classe_atributos.php @@ -1140,9 +1140,13 @@ $listaDeTemas - (opcional) Lista com os códigos dos temas que serão identificado function identificaQBP2($tema="",$x=0,$y=0,$map_file="",$resolucao=0,$item="",$tiporetorno="",$etip=false,$ext="") { if($map_file == "") - {$mapa = $this->mapa;} + { + $mapa = $this->mapa; + $map_file = $this->arquivo; + } else {$mapa = ms_newMapObj($map_file);} + if($ext != ""){ $extmapa = $mapa->extent; $e = explode(" ",$ext); @@ -1165,6 +1169,7 @@ $listaDeTemas - (opcional) Lista com os códigos dos temas que serão identificado $layer->set("toleranceunits",MS_PIXELS); $layer->set("tolerance",$resolucao); $ptimg = xy2imagem($map_file,array($x,$y)); + //var_dump($ptimg);exit; $mapa = desligatemas($mapa); $mapa = desligamargem($mapa); $imgo = $mapa->draw(); @@ -1192,6 +1197,10 @@ $listaDeTemas - (opcional) Lista com os códigos dos temas que serão identificado $res = str_replace("INFOFORMAT","INFO_FORMAT",$res); $res2 = $layer->getWMSFeatureInfoURL($ptimg->x, $ptimg->y, 1,"MIME"); $res2 = str_replace("INFOFORMAT","INFO_FORMAT",$res2); + + //echo $ptimg->x;exit; + + $resposta = file($res); $n = array(); if(strtoupper($formatoinfo) == "TEXT/HTML") diff --git a/classesphp/pega_variaveis.php b/classesphp/pega_variaveis.php index a31f867..cef3246 100644 --- a/classesphp/pega_variaveis.php +++ b/classesphp/pega_variaveis.php @@ -59,8 +59,10 @@ if (isset($_GET)) { foreach(array_keys($_GET) as $k) { - if ($_GET[$k] != "''") - eval("\$".$k."='".(strip_tags($_GET[$k]))."';"); + if ($_GET[$k] != "''"){ + $v = strip_tags($_GET[$k]); + eval("\$".$k."='".($v)."';"); + } } } //var_dump($_GET);exit; diff --git a/ferramentas/identifica/index.js.php b/ferramentas/identifica/index.js.php index 971854c..3209fbe 100644 --- a/ferramentas/identifica/index.js.php +++ b/ferramentas/identifica/index.js.php @@ -600,6 +600,7 @@ i3GEOF.identifica = { */ mostraDadosTema: function(retorno){ var res="",div0,ntemas,i,resultados,nres,cor,j,itens,nitens,k,atualN = "todas",inicio=0,numResultados,tip; + if($i("i3GEOFidentificaNocorrencias")) {atualN = $i("i3GEOFidentificaNocorrencias").value;} $i("i3GEOF.identifica_corpo").scrollTop = 0; @@ -631,7 +632,7 @@ i3GEOF.identifica = { nitens = resultados[j].length; for(k=0;k"; } else{ diff --git a/versao.php b/versao.php index 1ea04dd..189580b 100644 --- a/versao.php +++ b/versao.php @@ -2,5 +2,5 @@ /* Utilizado como um include em ms_configura.php */ -$mensagemInicia = 'Versão 4.5 - SP9 '; +$mensagemInicia = 'Versão 4.5 - SP10 '; ?> \ No newline at end of file -- libgit2 0.21.2