Commit e46a4d214290be0f73b97262e1d028a737617db4

Authored by Edmar Moretti
1 parent 269436fd

Remoção das linhas que removiam os filtros de um layer em diferentes situações, para testes

admin/admin.db
No preview for this file type
classesphp/classe_alteraclasse.php
... ... @@ -1169,7 +1169,7 @@ class Alteraclasse
1169 1169 function pegaValores($mapa,$layer,$item,$numerico=false,$ignorar="")
1170 1170 {
1171 1171 $layer->set("template","none.htm");
1172   - $layer->setfilter("");
  1172 + //$layer->setfilter("");
1173 1173 $versao = versao();
1174 1174 $versao = $versao["principal"];
1175 1175 $ignorararray = explode(",",$ignorar);
... ...
classesphp/classe_atributos.php
... ... @@ -328,7 +328,7 @@ class Atributos
328 328 $this->mapa = extPadrao($this->mapa);
329 329 }
330 330 $this->layer->set("template","none.htm");
331   - $this->layer->setfilter("");
  331 + //$this->layer->setfilter("");
332 332 //le o arquivo de query se existir e checa se existe seleção para o tema
333 333 $items = pegaItens($this->layer,$this->mapa);
334 334  
... ... @@ -408,7 +408,7 @@ class Atributos
408 408 $this->mapa = extPadrao($this->mapa);
409 409 }
410 410 $this->layer->set("template","none.htm");
411   - $this->layer->setfilter("");
  411 + //$this->layer->setfilter("");
412 412 if ($this->layer->data == ""){
413 413 return "erro. O tema não tem tabela";
414 414 }
... ... @@ -590,7 +590,7 @@ class Atributos
590 590 return "erro";
591 591 }
592 592 $this->layer->set("template","none.htm");
593   - $this->layer->setfilter("");
  593 + //$this->layer->setfilter("");
594 594 if(strtoupper($this->layer->getmetadata("convcaracter")) == "NAO"){
595 595 $convC = false;
596 596 }
... ... @@ -658,7 +658,7 @@ class Atributos
658 658 $this->mapa = extPadrao($this->mapa);
659 659 }
660 660 $this->layer->set("template","none.htm");
661   - $this->layer->setfilter("");
  661 + //$this->layer->setfilter("");
662 662 if ($this->layer->data == ""){
663 663 return "erro. O tema não tem tabela";
664 664 }
... ... @@ -766,7 +766,7 @@ class Atributos
766 766 }
767 767 $filtro = $l->getfilterstring();
768 768 if ($filtro != ""){
769   - $l->setfilter("");
  769 + //$l->setfilter("");
770 770 }
771 771 $sopen = $l->open();
772 772 if($sopen == MS_FAILURE){
... ... @@ -858,7 +858,7 @@ class Atributos
858 858 $valores = array();
859 859 $filtro = $this->layer->getfilterstring();
860 860 if ($filtro != ""){
861   - $this->layer->setfilter("");
  861 + //$this->layer->setfilter("");
862 862 }
863 863 //le o arquivo de query se existir e checa se existe seleção para o tema
864 864 $shapes = retornaShapesSelecionados($this->layer,$this->arquivo,$this->mapa);
... ...
classesphp/classe_selecao.php
... ... @@ -785,7 +785,7 @@ $dir_tmp - localização do diretório temporário
785 785 function selecao2tema($locaplic,$dir_tmp)
786 786 {
787 787 if(!$this->layer){return "erro";}
788   - $this->layer->setfilter("");
  788 + //$this->layer->setfilter("");
789 789 $nomeshp = criaSHP($this->nome,$this->arquivo,$locaplic,$dir_tmp,true,"",false);
790 790 $novolayer = criaLayer($this->mapa,$this->layer->type,MS_DEFAULT,"Seleção de ".(pegaNome($this->layer))." (".$this->nome.")",$metaClasse="SIM");
791 791 if($this->layer->getprojection() != ""){
... ...
classesphp/classe_shp.php
... ... @@ -409,7 +409,7 @@ array - xy
409 409 //error_reporting(0);
410 410 if(!$this->layer){return "erro";}
411 411 $this->layer->set("template","none.htm");
412   - $this->layer->setfilter("");
  412 + //$this->layer->setfilter("");
413 413 $shapes = retornaShapesSelecionados($this->layer,$this->arquivo,$this->mapa);
414 414 $xy = array();
415 415 foreach($shapes as $shape)
... ...
classesphp/graficos.php
... ... @@ -672,7 +672,7 @@ function pegaValoresM($mapa,$layer,$itens,$exclui="nulo",$selecionados="nao",$ch
672 672 $prjMapa = $mapa->getProjection();
673 673 $prjTema = $layer->getProjection();
674 674 $layer->set("template","none.htm");
675   - $layer->setfilter("");
  675 + //$layer->setfilter("");
676 676  
677 677 $indicesel = array();
678 678 //pega os valores dos indices dos elementos selecionados para comparacao posterior
... ...
ferramentas/filtro/template_linhafiltro_mst.html 100644 → 100755