diff --git a/classesphp/classe_atributos.php b/classesphp/classe_atributos.php index 3438509..490b380 100755 --- a/classesphp/classe_atributos.php +++ b/classesphp/classe_atributos.php @@ -763,25 +763,11 @@ class Atributos if($sopen == MS_FAILURE){ return "erro"; } + $l->close(); $ret = $this->mapa->extent; - /* - $prjMapa = $this->mapa->getProjection(); - $prjTema = $l->getProjection(); - if ($prjTema != ""){ - $projInObj = ms_newprojectionobj($prjTema); - $projOutObj = ms_newprojectionobj($prjMapa); - } - */ - /* - if (($prjTema != "") && ($prjMapa != $prjTema)) { - $status = $ret->project($projInObj, $projOutObj); - if($status !== MS_SUCCESS){ - $ret = $this->mapa->extent; - } - } - */ $fr = array(); if (@$l->queryByrect($ret) == MS_SUCCESS){ + $l->open(); $res_count = $l->getNumresults(); $palavra = $this->remove_accents(strtolower($palavra)); for ($i = 0; $i < $res_count; ++$i) { diff --git a/classesphp/funcoes_gerais.php b/classesphp/funcoes_gerais.php index 1a3bbc4..d5f3267 100755 --- a/classesphp/funcoes_gerais.php +++ b/classesphp/funcoes_gerais.php @@ -1072,24 +1072,21 @@ Retorno: {array} | "erro" */ -function buscaRapida($servico,$palavra) -{ +function buscaRapida($servico,$palavra){ //error_reporting(0); - if(!function_exists('preg_match')) - { + if(!function_exists('preg_match')){ include_once(dirname(__FILE__).'/../pacotes/SOAPdepreciado/nusoap.php'); new Xsoapclient($servico."?wsdl","wsdl"); } - else - { + else{ include_once(dirname(__FILE__).'/../pacotes/SOAP/nusoap.php'); $soapclient = new nusoap_client($servico); } -//echo $soapclient->getDebug(); -//exit; $vv = "erro"; $vv = $soapclient->call("procurar",array("palavra"=>$palavra,"tipoBusca"=>"qualquer")); - if($vv == ""){$vv = "erro";} + if($vv == ""){ + $vv = "erro"; + } return ($vv); } /* diff --git a/classesphp/mapa_controle.php b/classesphp/mapa_controle.php index ad77ecb..fa2530d 100755 --- a/classesphp/mapa_controle.php +++ b/classesphp/mapa_controle.php @@ -1847,8 +1847,7 @@ switch (strtoupper($funcao)) case "BUSCARAPIDA": $servico = $_pg["servico"]; $palavra = $_pg["palavra"]; - if($servico != "temas") - { + if($servico != "temas"){ $retorno = buscaRapida($servico,$palavra); } else{ @@ -1866,8 +1865,8 @@ switch (strtoupper($funcao)) } } } - else - {$retorno = "erro"; + else { + $retorno = "erro"; } } break; diff --git a/ferramentas/busca/index.js b/ferramentas/busca/index.js index 6565b32..0e6b184 100755 --- a/ferramentas/busca/index.js +++ b/ferramentas/busca/index.js @@ -236,7 +236,16 @@ i3GEOF.busca = { cp = new cpaint(); cp.set_response_type("json"); cp.set_transfer_mode('POST'); - cp.call(p,"listavaloresitens",i3GEOF.busca.mostraBusca,"funcao=listavaloresitens","palavra="+palavra,"lista="+listai.join("|"),"tipo="+tipo,"onde="+onde,"ext="+i3GEO.parametros.mapexten); + cp.call( + p, + "listavaloresitens", + i3GEOF.busca.mostraBusca, + "funcao=listavaloresitens&palavra="+palavra + +"&lista="+listai.join("|") + +"&tipo="+tipo + +"&onde="+onde + +"&ext="+i3GEO.parametros.mapexten + ); } } }, diff --git a/ferramentas/melhorcaminho/exec.php b/ferramentas/melhorcaminho/exec.php index 08a3ffe..e2c17d1 100755 --- a/ferramentas/melhorcaminho/exec.php +++ b/ferramentas/melhorcaminho/exec.php @@ -2,7 +2,7 @@ include_once(dirname(__FILE__)."/../safe.php"); if($statusFerramentas["melhorcaminho"] != true){ exit; -); +} // //faz a busca da função que deve ser executada // @@ -241,4 +241,4 @@ if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){ restauraCon($map_file,$postgis_mapa); } cpjson($retorno); -?> +?> \ No newline at end of file -- libgit2 0.21.2