Commit 103aac6c50632b9a61465ffdae8b256a52333b3c
1 parent
6c349a1f
Exists in
master
and in
7 other branches
--no commit message
Showing
17 changed files
with
23 additions
and
27 deletions
Show diff stats
admin/admin.db
No preview for this file type
aplicmap/geral1.map
aplicmap/geral1debian.map
aplicmap/geral1debianv5.map
aplicmap/geral1debianv6.map
aplicmap/geral1fedorav5.map
aplicmap/geral1fedorav6.map
aplicmap/geral1v5.map
aplicmap/geral1v6.map
aplicmap/geral1windows.map
aplicmap/geral1windowsv5.map
aplicmap/geral1windowsv6.map
aplicmap/ogcws.map
aplicmap/ogcwsv5.map
aplicmap/ogcwsv6.map
ms_criamapa.php
... | ... | @@ -142,6 +142,10 @@ require_once ($caminho."classesphp/carrega_ext.php"); |
142 | 142 | // |
143 | 143 | //quando $funcao existe, é pq o ms_criamapa.php está sendo utilizado como um include em classesphp/mapa_controle.php |
144 | 144 | // |
145 | +if (!isset($_GET["debug"])) | |
146 | +{error_reporting(0);$debug="nao";} | |
147 | +else | |
148 | +{error_reporting(E_ALL);$debug="sim";} | |
145 | 149 | if(!isset($funcao)) |
146 | 150 | {ob_end_clean();} |
147 | 151 | if (!isset($caminho)) |
... | ... | @@ -177,12 +181,6 @@ if(!isset($dir_tmp)) |
177 | 181 | {include_once ($caminho."ms_configura.php");} |
178 | 182 | if(isset($tempBaseX) && $tempBaseX != "") |
179 | 183 | {$base = $tempBaseX;} |
180 | - | |
181 | -if (!isset($debug)) | |
182 | -{error_reporting(0);$debug="nao";} | |
183 | -else | |
184 | -{error_reporting(E_ALL);$debug="sim";} | |
185 | - | |
186 | 184 | /* |
187 | 185 | Define o cookie para o idioma da interface |
188 | 186 | */ |
... | ... | @@ -677,8 +675,8 @@ function incluiTemasIniciais() |
677 | 675 | // |
678 | 676 | if($existeraster) |
679 | 677 | { |
680 | - $of = $mapn->outputformat; | |
681 | - $of->set("imagemode",MS_IMAGEMODE_RGB); | |
678 | + //$of = $mapn->outputformat; | |
679 | + //$of->set("imagemode",MS_IMAGEMODE_RGB); | |
682 | 680 | } |
683 | 681 | erroCriacao(); |
684 | 682 | } | ... | ... |
ogc.php
... | ... | @@ -218,7 +218,7 @@ if ($tipo == "" || $tipo == "metadados") |
218 | 218 | $l = $nmap->getlayerbyname($t); |
219 | 219 | if($cache == true && strtolower($l->getmetadata("cache")) == "sim" && $tipo == "" && count($tema) == 1){ |
220 | 220 | carregaCacheImagem($_GET["BBOX"],$tx,$_GET["WIDTH"],$_GET["HEIGHT"],$cachedir); |
221 | - } | |
221 | + } | |
222 | 222 | $l->setmetadata("ows_title",pegaNome($l)); |
223 | 223 | $l->setmetadata("ows_srs",$listaepsg); |
224 | 224 | //essa linha é necessária pq as vezes no mapfile não tem nenhum layer com o nome igual ao nome do mapfile |
... | ... | @@ -236,10 +236,10 @@ if ($tipo == "" || $tipo == "metadados") |
236 | 236 | $l->setmetadata("wms_attribution_logourl_width","50"); |
237 | 237 | $l->setmetadata("wms_attribution_logourl_href",$mini); |
238 | 238 | } |
239 | - if($l->type == MS_LAYER_RASTER) | |
239 | + if($l->type == MS_LAYER_RASTER && $l->numclasses > 0) | |
240 | 240 | { |
241 | 241 | $c = $l->getclass(0); |
242 | - if ($c->name == "") | |
242 | + if($c->name == "") | |
243 | 243 | {$c->name = " ";} |
244 | 244 | } |
245 | 245 | //inclui extensao geografica | ... | ... |