Commit a68dcca80e3d252cdc7de76703772cfbf065f65f
1 parent
c67086c8
Exists in
master
Correção na limpeza da seleção de todos os temas
Showing
2 changed files
with
6 additions
and
2 deletions
Show diff stats
aplicmap/dados/estados.shp.tl3x
No preview for this file type
classesphp/classe_selecao.php
@@ -664,6 +664,10 @@ Limpa a seleção do tema. | @@ -664,6 +664,10 @@ Limpa a seleção do tema. | ||
664 | if (file_exists($file)){ | 664 | if (file_exists($file)){ |
665 | unlink ($file); | 665 | unlink ($file); |
666 | } | 666 | } |
667 | + $file = dirname($this->arquivo)."/".$l->name."_qy.php"; | ||
668 | + if (file_exists($file)){ | ||
669 | + unlink ($file); | ||
670 | + } | ||
667 | } | 671 | } |
668 | if (file_exists($this->qyfile)){ | 672 | if (file_exists($this->qyfile)){ |
669 | unlink ($this->qyfile); | 673 | unlink ($this->qyfile); |
@@ -870,7 +874,7 @@ parameters: | @@ -870,7 +874,7 @@ parameters: | ||
870 | $tipo - Tipo de operação adiciona|retira|inverte|limpa|novo | 874 | $tipo - Tipo de operação adiciona|retira|inverte|limpa|novo |
871 | 875 | ||
872 | $ext - coordenadas separadas por espaços no estilo xmin ymin xmax ymax | 876 | $ext - coordenadas separadas por espaços no estilo xmin ymin xmax ymax |
873 | - | 877 | + |
874 | $retornaShapes - retorna os shapes selecionados. Nesse caso, nao e gerado o arquivo em disco contendo a selecao | 878 | $retornaShapes - retorna os shapes selecionados. Nesse caso, nao e gerado o arquivo em disco contendo a selecao |
875 | */ | 879 | */ |
876 | function selecaoBOX($tipo,$ext,$retornaShapes=false) { | 880 | function selecaoBOX($tipo,$ext,$retornaShapes=false) { |
@@ -922,7 +926,7 @@ $retornaShapes - retorna os shapes selecionados. Nesse caso, nao e gerado o arqu | @@ -922,7 +926,7 @@ $retornaShapes - retorna os shapes selecionados. Nesse caso, nao e gerado o arqu | ||
922 | } | 926 | } |
923 | else{ | 927 | else{ |
924 | $shpi[] = $this->layer->getfeature($result->shapeindex,-1); | 928 | $shpi[] = $this->layer->getfeature($result->shapeindex,-1); |
925 | - } | 929 | + } |
926 | } | 930 | } |
927 | } | 931 | } |
928 | } | 932 | } |