Commit 904ceb7277ff593aefb68120583055feb60a6ee8
1 parent
0839127a
Exists in
master
and in
7 other branches
Correção na função de impressão. O ocultamento da string de conexão no mapfile n…
…ão estava retornando corretamente
Showing
2 changed files
with
6 additions
and
1 deletions
Show diff stats
ferramentas/imprimir/.pdf
No preview for this file type
ferramentas/imprimir/geraimagens.php
| ... | ... | @@ -29,7 +29,12 @@ if (array_search( "MapScript", $exts) != TRUE) |
| 29 | 29 | } |
| 30 | 30 | require("../../classesphp/funcoes_gerais.php"); |
| 31 | 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 | 38 | $w = $map->width; |
| 34 | 39 | $h = $map->height; |
| 35 | 40 | $legenda =$map->legend; | ... | ... |