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