Commit ea41e01dfeaf79709d90b86a6ff097e6cd382e25
1 parent
8afdd650
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
classesphp/classe_analise.php
@@ -1620,6 +1620,8 @@ class Analise | @@ -1620,6 +1620,8 @@ class Analise | ||
1620 | $nomeCentroides = nomeRandomico(); | 1620 | $nomeCentroides = nomeRandomico(); |
1621 | $nomeshp = $this->diretorio."/".$nomeCentroides; | 1621 | $nomeshp = $this->diretorio."/".$nomeCentroides; |
1622 | $shapes = retornaShapesSelecionados($this->layer,$this->arquivo,$this->mapa); | 1622 | $shapes = retornaShapesSelecionados($this->layer,$this->arquivo,$this->mapa); |
1623 | + | ||
1624 | + //$shapes = $shape[0]; | ||
1623 | foreach($shapes as $shape){ | 1625 | foreach($shapes as $shape){ |
1624 | $LineObj = ms_newLineObj(); | 1626 | $LineObj = ms_newLineObj(); |
1625 | $LineObj->add($shape->getCentroid()); | 1627 | $LineObj->add($shape->getCentroid()); |
@@ -1663,7 +1665,7 @@ class Analise | @@ -1663,7 +1665,7 @@ class Analise | ||
1663 | else | 1665 | else |
1664 | dbase_close($db); | 1666 | dbase_close($db); |
1665 | //adiciona no mapa atual o novo tema | 1667 | //adiciona no mapa atual o novo tema |
1666 | - $novolayer = criaLayer($this->mapa,MS_LAYER_POINT,MS_DEFAULT,("Centr�ide (".$nomeCentroides.")"),$metaClasse="SIM"); | 1668 | + $novolayer = criaLayer($this->mapa,MS_LAYER_POINT,MS_DEFAULT,("Centroide (".$nomeCentroides.")"),$metaClasse="SIM"); |
1667 | $novolayer->set("data",$nomeshp.".shp"); | 1669 | $novolayer->set("data",$nomeshp.".shp"); |
1668 | $novolayer->setmetadata("DOWNLOAD","SIM"); | 1670 | $novolayer->setmetadata("DOWNLOAD","SIM"); |
1669 | $novolayer->set("template","none.htm"); | 1671 | $novolayer->set("template","none.htm"); |