From ee7857ac6d5b9ae6a8d51b2f8d4da51457598887 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 12 Sep 2012 01:26:22 +0000 Subject: [PATCH] Melhoria da performance da função identifica --- classesphp/classe_atributos.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classesphp/classe_atributos.php b/classesphp/classe_atributos.php index 97093c6..996439d 100644 --- a/classesphp/classe_atributos.php +++ b/classesphp/classe_atributos.php @@ -873,7 +873,7 @@ $wkt - (opcional) {boolean} inclui ou não o valor do wkt da geometria */ function identifica2($opcao,$xy,$resolucao,$ext="",$listaDeTemas="",$wkt="nao") { - if ($opcao != "tema"){ + if ($opcao != "tema" && $opcao != "tip"){ if($listaDeTemas != "") { $listaDeTemas = str_replace(" ",",",$listaDeTemas); @@ -971,6 +971,7 @@ $wkt - (opcional) {boolean} inclui ou não o valor do wkt da geometria if ($opcao == "tip") { $ltemp = array(); + $listatemas = $this->mapa->getalllayernames(); foreach ($listatemas as $tema) { $tl = $this->mapa->getlayerbyname($tema); -- libgit2 0.21.2