Commit eae3ead1e1f4bc27ef743b7cbebd19e4faf9f9e1

Authored by Edmar Moretti
1 parent 00716188

--no commit message

Showing 1 changed file with 4 additions and 8 deletions   Show diff stats
testamapfile.php
@@ -294,7 +294,6 @@ function verifica($map,$solegenda){ @@ -294,7 +294,6 @@ function verifica($map,$solegenda){
294 } 294 }
295 ms_newLayerObj($mapa, $layern); 295 ms_newLayerObj($mapa, $layern);
296 296
297 -  
298 //pega simbolos locais e aplica no novo mapa 297 //pega simbolos locais e aplica no novo mapa
299 $numclasses = $layern->numclasses; 298 $numclasses = $layern->numclasses;
300 for($ci=0;$ci < $numclasses;$ci++){ 299 for($ci=0;$ci < $numclasses;$ci++){
@@ -303,14 +302,13 @@ function verifica($map,$solegenda){ @@ -303,14 +302,13 @@ function verifica($map,$solegenda){
303 for($ei=0;$ei < $numestilos;$ei++){ 302 for($ei=0;$ei < $numestilos;$ei++){
304 $estilo = $classe->getstyle($ei); 303 $estilo = $classe->getstyle($ei);
305 if($estilo->symbolname != ""){ 304 if($estilo->symbolname != ""){
306 - $nomesimbolo = $estilo->symbolname;  
307 - 305 + $nomesimbolo = $estilo->symbolname;
308 $simbolo = new symbolObj($nmapa, $nomesimbolo); 306 $simbolo = new symbolObj($nmapa, $nomesimbolo);
309 $ipath = $simbolo->imagepath; 307 $ipath = $simbolo->imagepath;
310 if(ms_newSymbolObj($nmapa, $nomesimbolo) != ms_newSymbolObj($mapa, $nomesimbolo)+1){ 308 if(ms_newSymbolObj($nmapa, $nomesimbolo) != ms_newSymbolObj($mapa, $nomesimbolo)+1){
311 $simbolon = new symbolObj($mapa, $nomesimbolo); 309 $simbolon = new symbolObj($mapa, $nomesimbolo);
312 - $simbolon->setImagePath($ipath);  
313 $simbolon->set("inmapfile",MS_TRUE); 310 $simbolon->set("inmapfile",MS_TRUE);
  311 + $simbolon->setImagePath($ipath);
314 } 312 }
315 //algumas versoes do mapserver nao funciona 313 //algumas versoes do mapserver nao funciona
316 if($simbolon->imagePath != $ipath){ 314 if($simbolon->imagePath != $ipath){
@@ -320,9 +318,6 @@ function verifica($map,$solegenda){ @@ -320,9 +318,6 @@ function verifica($map,$solegenda){
320 } 318 }
321 } 319 }
322 320
323 -  
324 -  
325 -  
326 if ($layern->data == ""){ 321 if ($layern->data == ""){
327 $dados = $layern->connection; 322 $dados = $layern->connection;
328 } 323 }
@@ -368,8 +363,9 @@ function verifica($map,$solegenda){ @@ -368,8 +363,9 @@ function verifica($map,$solegenda){
368 $sca->set("status",MS_OFF); 363 $sca->set("status",MS_OFF);
369 } 364 }
370 $destino = $dir_tmp."/".nomeRandomico().".map"; 365 $destino = $dir_tmp."/".nomeRandomico().".map";
  366 + echo $destino;exit;
371 $mapa->save($destino); 367 $mapa->save($destino);
372 - //echo $destino;exit; 368 +
373 $mapa = ms_newMapObj($destino); 369 $mapa = ms_newMapObj($destino);
374 $objImagem = @$mapa->draw(); 370 $objImagem = @$mapa->draw();
375 $objImagemLegenda = @$mapa->drawLegend(); 371 $objImagemLegenda = @$mapa->drawLegend();