From e46a4d214290be0f73b97262e1d028a737617db4 Mon Sep 17 00:00:00 2001 From: edmarmoretti Date: Sun, 23 Jul 2017 10:17:17 -0300 Subject: [PATCH] Remoção das linhas que removiam os filtros de um layer em diferentes situações, para testes --- admin/admin.db | Bin 340992 -> 0 bytes classesphp/classe_alteraclasse.php | 2 +- classesphp/classe_atributos.php | 12 ++++++------ classesphp/classe_selecao.php | 2 +- classesphp/classe_shp.php | 2 +- classesphp/graficos.php | 2 +- ferramentas/filtro/template_linhafiltro_mst.html | 0 7 files changed, 10 insertions(+), 10 deletions(-) mode change 100644 => 100755 ferramentas/filtro/template_linhafiltro_mst.html diff --git a/admin/admin.db b/admin/admin.db index 2408a13..2913c9c 100755 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/classesphp/classe_alteraclasse.php b/classesphp/classe_alteraclasse.php index 9ed098b..c1cd990 100755 --- a/classesphp/classe_alteraclasse.php +++ b/classesphp/classe_alteraclasse.php @@ -1169,7 +1169,7 @@ class Alteraclasse function pegaValores($mapa,$layer,$item,$numerico=false,$ignorar="") { $layer->set("template","none.htm"); - $layer->setfilter(""); + //$layer->setfilter(""); $versao = versao(); $versao = $versao["principal"]; $ignorararray = explode(",",$ignorar); diff --git a/classesphp/classe_atributos.php b/classesphp/classe_atributos.php index 6ae7b8f..e2713ee 100755 --- a/classesphp/classe_atributos.php +++ b/classesphp/classe_atributos.php @@ -328,7 +328,7 @@ class Atributos $this->mapa = extPadrao($this->mapa); } $this->layer->set("template","none.htm"); - $this->layer->setfilter(""); + //$this->layer->setfilter(""); //le o arquivo de query se existir e checa se existe seleção para o tema $items = pegaItens($this->layer,$this->mapa); @@ -408,7 +408,7 @@ class Atributos $this->mapa = extPadrao($this->mapa); } $this->layer->set("template","none.htm"); - $this->layer->setfilter(""); + //$this->layer->setfilter(""); if ($this->layer->data == ""){ return "erro. O tema não tem tabela"; } @@ -590,7 +590,7 @@ class Atributos return "erro"; } $this->layer->set("template","none.htm"); - $this->layer->setfilter(""); + //$this->layer->setfilter(""); if(strtoupper($this->layer->getmetadata("convcaracter")) == "NAO"){ $convC = false; } @@ -658,7 +658,7 @@ class Atributos $this->mapa = extPadrao($this->mapa); } $this->layer->set("template","none.htm"); - $this->layer->setfilter(""); + //$this->layer->setfilter(""); if ($this->layer->data == ""){ return "erro. O tema não tem tabela"; } @@ -766,7 +766,7 @@ class Atributos } $filtro = $l->getfilterstring(); if ($filtro != ""){ - $l->setfilter(""); + //$l->setfilter(""); } $sopen = $l->open(); if($sopen == MS_FAILURE){ @@ -858,7 +858,7 @@ class Atributos $valores = array(); $filtro = $this->layer->getfilterstring(); if ($filtro != ""){ - $this->layer->setfilter(""); + //$this->layer->setfilter(""); } //le o arquivo de query se existir e checa se existe seleção para o tema $shapes = retornaShapesSelecionados($this->layer,$this->arquivo,$this->mapa); diff --git a/classesphp/classe_selecao.php b/classesphp/classe_selecao.php index cacde70..a0eb367 100755 --- a/classesphp/classe_selecao.php +++ b/classesphp/classe_selecao.php @@ -785,7 +785,7 @@ $dir_tmp - localização do diretório temporário function selecao2tema($locaplic,$dir_tmp) { if(!$this->layer){return "erro";} - $this->layer->setfilter(""); + //$this->layer->setfilter(""); $nomeshp = criaSHP($this->nome,$this->arquivo,$locaplic,$dir_tmp,true,"",false); $novolayer = criaLayer($this->mapa,$this->layer->type,MS_DEFAULT,"Seleção de ".(pegaNome($this->layer))." (".$this->nome.")",$metaClasse="SIM"); if($this->layer->getprojection() != ""){ diff --git a/classesphp/classe_shp.php b/classesphp/classe_shp.php index 4be841a..a7d86fa 100755 --- a/classesphp/classe_shp.php +++ b/classesphp/classe_shp.php @@ -409,7 +409,7 @@ array - xy //error_reporting(0); if(!$this->layer){return "erro";} $this->layer->set("template","none.htm"); - $this->layer->setfilter(""); + //$this->layer->setfilter(""); $shapes = retornaShapesSelecionados($this->layer,$this->arquivo,$this->mapa); $xy = array(); foreach($shapes as $shape) diff --git a/classesphp/graficos.php b/classesphp/graficos.php index 01d688d..a2cec45 100755 --- a/classesphp/graficos.php +++ b/classesphp/graficos.php @@ -672,7 +672,7 @@ function pegaValoresM($mapa,$layer,$itens,$exclui="nulo",$selecionados="nao",$ch $prjMapa = $mapa->getProjection(); $prjTema = $layer->getProjection(); $layer->set("template","none.htm"); - $layer->setfilter(""); + //$layer->setfilter(""); $indicesel = array(); //pega os valores dos indices dos elementos selecionados para comparacao posterior diff --git a/ferramentas/filtro/template_linhafiltro_mst.html b/ferramentas/filtro/template_linhafiltro_mst.html old mode 100644 new mode 100755 index 99d6eff..99d6eff --- a/ferramentas/filtro/template_linhafiltro_mst.html +++ b/ferramentas/filtro/template_linhafiltro_mst.html -- libgit2 0.21.2