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