Commit 4b8c99df48b21e521f639de876333de7caac2d40
1 parent
d51e5f08
Exists in
master
V5 - correção na ferramenta de processamento de geometrias que apresentava erros…
… em temas com acentuação
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
classesphp/classe_temas.php
... | ... | @@ -788,9 +788,10 @@ $nome - nome que será dado a geometria |
788 | 788 | $sb = $this->mapa->scalebar; |
789 | 789 | $sb->set("status",MS_OFF); |
790 | 790 | $items = pegaItens($this->layer); |
791 | - $final["layer"] = pegaNome($this->layer); | |
791 | + $final["layer"] = pegaNome($this->layer,"UTF-8"); | |
792 | 792 | $shapes = retornaShapesSelecionados($this->layer,$this->arquivo,$this->mapa); |
793 | 793 | $registros = array(); |
794 | + $i = 0; | |
794 | 795 | foreach($shapes as $shape) |
795 | 796 | { |
796 | 797 | $valitem = array(); |
... | ... | @@ -817,6 +818,7 @@ $nome - nome que será dado a geometria |
817 | 818 | $abriu = $this->layer->open(); |
818 | 819 | } |
819 | 820 | else{return "erro";} |
821 | + $i++; | |
820 | 822 | } |
821 | 823 | $fechou = $this->layer->close(); |
822 | 824 | if (count($registros) > 0) | ... | ... |