Commit 91f5b27853521bcde3c626182c3cd2911251c57e
1 parent
921fd0fa
Exists in
master
and in
7 other branches
-
Showing
2 changed files
with
2 additions
and
3 deletions
Show diff stats
classesphp/classe_mapa.php
@@ -2057,8 +2057,7 @@ class Mapa | @@ -2057,8 +2057,7 @@ class Mapa | ||
2057 | else | 2057 | else |
2058 | {$shape = $s->getshape(0);} | 2058 | {$shape = $s->getshape(0);} |
2059 | */ | 2059 | */ |
2060 | - //$shape = $s->getshape(0); | ||
2061 | - $shape = $s->getshape(new resultObj(0)); | 2060 | + $shape = $s->getshape(0); |
2062 | $t = $shape->type; | 2061 | $t = $shape->type; |
2063 | $tipo = MS_LAYER_POLYGON; | 2062 | $tipo = MS_LAYER_POLYGON; |
2064 | if ($t == 0) | 2063 | if ($t == 0) |
ferramentas/melhorcaminho/exec.php
@@ -101,7 +101,7 @@ switch (strtoupper($funcao)) | @@ -101,7 +101,7 @@ switch (strtoupper($funcao)) | ||
101 | $cor = $estilo->color; | 101 | $cor = $estilo->color; |
102 | $cor->setRGB(255,0,0); | 102 | $cor->setRGB(255,0,0); |
103 | } | 103 | } |
104 | - if(file_exists($pathresult."/".$prefixo."_xxxcartesian_straight_line_cost.shp")){ | 104 | + if(file_exists($pathresult."/".$prefixo."_cartesian_straight_line_cost.shp")){ |
105 | //cartesian_straight_line_cost | 105 | //cartesian_straight_line_cost |
106 | $retorno = $m->adicionaTemaSHP($pathresult."/".$prefixo."_cartesian_straight_line_cost.shp"); | 106 | $retorno = $m->adicionaTemaSHP($pathresult."/".$prefixo."_cartesian_straight_line_cost.shp"); |
107 | $layer = $m->mapa->getlayerbyname($prefixo."_cartesian_straight_line_cost.shp"); | 107 | $layer = $m->mapa->getlayerbyname($prefixo."_cartesian_straight_line_cost.shp"); |