Commit 8b6b7fee958106396079255a6b451bef7d56c34e

Authored by Edmar Moretti
1 parent b5ba5f0c

Correção na definição do tipo de imagem na geração de WMS (fixado em PNG)

admin/php/editormapfile.php
@@ -601,7 +601,7 @@ function pegaGeral() @@ -601,7 +601,7 @@ function pegaGeral()
601 function alterarGeral() 601 function alterarGeral()
602 { 602 {
603 global $dir_tmp,$testar,$codigoMap,$codigoLayer,$locaplic,$name,$projection,$sizeunits,$status,$toleranceunits,$tolerance,$symbolscale,$opacity,$offsite,$minscale,$maxscale,$labelsizeitem,$labelminscale,$labelmaxscale,$labelitem,$group,$filteritem,$type,$filter; 603 global $dir_tmp,$testar,$codigoMap,$codigoLayer,$locaplic,$name,$projection,$sizeunits,$status,$toleranceunits,$tolerance,$symbolscale,$opacity,$offsite,$minscale,$maxscale,$labelsizeitem,$labelminscale,$labelmaxscale,$labelitem,$group,$filteritem,$type,$filter;
604 - error_reporting(E_ALL); 604 + error_reporting(0);
605 $v = versao(); 605 $v = versao();
606 $dados = array(); 606 $dados = array();
607 607
admin/php/parsemapfile.php
@@ -298,7 +298,7 @@ function mapfile() @@ -298,7 +298,7 @@ function mapfile()
298 {$s = "default";} 298 {$s = "default";}
299 $xml .= "<version>$v</version>"; 299 $xml .= "<version>$v</version>";
300 $xml .= "<srs>$e</srs>"; 300 $xml .= "<srs>$e</srs>";
301 - $xml .= "<format>$i</format>"; 301 + $xml .= "<format>image/png</format>";
302 $xml .= "<style>$s</style>"; 302 $xml .= "<style>$s</style>";
303 $tagLegenda = ""; 303 $tagLegenda = "";
304 } 304 }