diff --git a/testamapfile.php b/testamapfile.php index 4e529e6..70a7950 100644 --- a/testamapfile.php +++ b/testamapfile.php @@ -294,7 +294,6 @@ function verifica($map,$solegenda){ } ms_newLayerObj($mapa, $layern); - //pega simbolos locais e aplica no novo mapa $numclasses = $layern->numclasses; for($ci=0;$ci < $numclasses;$ci++){ @@ -303,14 +302,13 @@ function verifica($map,$solegenda){ for($ei=0;$ei < $numestilos;$ei++){ $estilo = $classe->getstyle($ei); if($estilo->symbolname != ""){ - $nomesimbolo = $estilo->symbolname; - + $nomesimbolo = $estilo->symbolname; $simbolo = new symbolObj($nmapa, $nomesimbolo); $ipath = $simbolo->imagepath; if(ms_newSymbolObj($nmapa, $nomesimbolo) != ms_newSymbolObj($mapa, $nomesimbolo)+1){ $simbolon = new symbolObj($mapa, $nomesimbolo); - $simbolon->setImagePath($ipath); $simbolon->set("inmapfile",MS_TRUE); + $simbolon->setImagePath($ipath); } //algumas versoes do mapserver nao funciona if($simbolon->imagePath != $ipath){ @@ -320,9 +318,6 @@ function verifica($map,$solegenda){ } } - - - if ($layern->data == ""){ $dados = $layern->connection; } @@ -368,8 +363,9 @@ function verifica($map,$solegenda){ $sca->set("status",MS_OFF); } $destino = $dir_tmp."/".nomeRandomico().".map"; + echo $destino;exit; $mapa->save($destino); - //echo $destino;exit; + $mapa = ms_newMapObj($destino); $objImagem = @$mapa->draw(); $objImagemLegenda = @$mapa->drawLegend(); -- libgit2 0.21.2