diff --git a/classesphp/classe_mapa.php b/classesphp/classe_mapa.php index 44893b4..f38518f 100644 --- a/classesphp/classe_mapa.php +++ b/classesphp/classe_mapa.php @@ -2057,8 +2057,7 @@ class Mapa else {$shape = $s->getshape(0);} */ - //$shape = $s->getshape(0); - $shape = $s->getshape(new resultObj(0)); + $shape = $s->getshape(0); $t = $shape->type; $tipo = MS_LAYER_POLYGON; if ($t == 0) diff --git a/ferramentas/melhorcaminho/exec.php b/ferramentas/melhorcaminho/exec.php index e3c2d36..2a85019 100755 --- a/ferramentas/melhorcaminho/exec.php +++ b/ferramentas/melhorcaminho/exec.php @@ -101,7 +101,7 @@ switch (strtoupper($funcao)) $cor = $estilo->color; $cor->setRGB(255,0,0); } - if(file_exists($pathresult."/".$prefixo."_xxxcartesian_straight_line_cost.shp")){ + if(file_exists($pathresult."/".$prefixo."_cartesian_straight_line_cost.shp")){ //cartesian_straight_line_cost $retorno = $m->adicionaTemaSHP($pathresult."/".$prefixo."_cartesian_straight_line_cost.shp"); $layer = $m->mapa->getlayerbyname($prefixo."_cartesian_straight_line_cost.shp"); -- libgit2 0.21.2