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
@@ -80,10 +80,8 @@ MAP | @@ -80,10 +80,8 @@ MAP | ||
80 | TRANSPARENT TRUE | 80 | TRANSPARENT TRUE |
81 | FORMATOPTION "INTERLACE=OFF" | 81 | FORMATOPTION "INTERLACE=OFF" |
82 | END | 82 | END |
83 | - | ||
84 | - | ||
85 | PROJECTION | 83 | PROJECTION |
86 | - "init=epsg:4291" | 84 | + "+proj=longlat +ellps=GRS67 +no_defs" |
87 | END | 85 | END |
88 | LEGEND | 86 | LEGEND |
89 | IMAGECOLOR 255 255 255 | 87 | IMAGECOLOR 255 255 255 |
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,6 +142,10 @@ require_once ($caminho."classesphp/carrega_ext.php"); | ||
142 | // | 142 | // |
143 | //quando $funcao existe, é pq o ms_criamapa.php está sendo utilizado como um include em classesphp/mapa_controle.php | 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 | if(!isset($funcao)) | 149 | if(!isset($funcao)) |
146 | {ob_end_clean();} | 150 | {ob_end_clean();} |
147 | if (!isset($caminho)) | 151 | if (!isset($caminho)) |
@@ -177,12 +181,6 @@ if(!isset($dir_tmp)) | @@ -177,12 +181,6 @@ if(!isset($dir_tmp)) | ||
177 | {include_once ($caminho."ms_configura.php");} | 181 | {include_once ($caminho."ms_configura.php");} |
178 | if(isset($tempBaseX) && $tempBaseX != "") | 182 | if(isset($tempBaseX) && $tempBaseX != "") |
179 | {$base = $tempBaseX;} | 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 | Define o cookie para o idioma da interface | 185 | Define o cookie para o idioma da interface |
188 | */ | 186 | */ |
@@ -677,8 +675,8 @@ function incluiTemasIniciais() | @@ -677,8 +675,8 @@ function incluiTemasIniciais() | ||
677 | // | 675 | // |
678 | if($existeraster) | 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 | erroCriacao(); | 681 | erroCriacao(); |
684 | } | 682 | } |
ogc.php
@@ -218,7 +218,7 @@ if ($tipo == "" || $tipo == "metadados") | @@ -218,7 +218,7 @@ if ($tipo == "" || $tipo == "metadados") | ||
218 | $l = $nmap->getlayerbyname($t); | 218 | $l = $nmap->getlayerbyname($t); |
219 | if($cache == true && strtolower($l->getmetadata("cache")) == "sim" && $tipo == "" && count($tema) == 1){ | 219 | if($cache == true && strtolower($l->getmetadata("cache")) == "sim" && $tipo == "" && count($tema) == 1){ |
220 | carregaCacheImagem($_GET["BBOX"],$tx,$_GET["WIDTH"],$_GET["HEIGHT"],$cachedir); | 220 | carregaCacheImagem($_GET["BBOX"],$tx,$_GET["WIDTH"],$_GET["HEIGHT"],$cachedir); |
221 | - } | 221 | + } |
222 | $l->setmetadata("ows_title",pegaNome($l)); | 222 | $l->setmetadata("ows_title",pegaNome($l)); |
223 | $l->setmetadata("ows_srs",$listaepsg); | 223 | $l->setmetadata("ows_srs",$listaepsg); |
224 | //essa linha é necessária pq as vezes no mapfile não tem nenhum layer com o nome igual ao nome do mapfile | 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,10 +236,10 @@ if ($tipo == "" || $tipo == "metadados") | ||
236 | $l->setmetadata("wms_attribution_logourl_width","50"); | 236 | $l->setmetadata("wms_attribution_logourl_width","50"); |
237 | $l->setmetadata("wms_attribution_logourl_href",$mini); | 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 | $c = $l->getclass(0); | 241 | $c = $l->getclass(0); |
242 | - if ($c->name == "") | 242 | + if($c->name == "") |
243 | {$c->name = " ";} | 243 | {$c->name = " ";} |
244 | } | 244 | } |
245 | //inclui extensao geografica | 245 | //inclui extensao geografica |