Commit 904ceb7277ff593aefb68120583055feb60a6ee8

Authored by Edmar Moretti
1 parent 0839127a

Correção na função de impressão. O ocultamento da string de conexão no mapfile n…

…ão estava retornando corretamente
ferramentas/imprimir/.pdf
No preview for this file type
ferramentas/imprimir/geraimagens.php
@@ -29,7 +29,12 @@ if (array_search( "MapScript", $exts) != TRUE) @@ -29,7 +29,12 @@ if (array_search( "MapScript", $exts) != TRUE)
29 } 29 }
30 require("../../classesphp/funcoes_gerais.php"); 30 require("../../classesphp/funcoes_gerais.php");
31 $nomes = nomeRandomico(); 31 $nomes = nomeRandomico();
32 -$map = ms_newMapObj($map_file); 32 +
  33 +$temp = str_replace(".map","xxx.map",$map_file);
  34 +$map->save($temp);
  35 +substituiCon($temp,$postgis_mapa);
  36 +$map = ms_newMapObj($temp);
  37 +
33 $w = $map->width; 38 $w = $map->width;
34 $h = $map->height; 39 $h = $map->height;
35 $legenda =$map->legend; 40 $legenda =$map->legend;