Commit 9e42236e352d8f106fbd8cc38c1a15ef949ea9ad
1 parent
6e934492
Exists in
master
and in
7 other branches
Correção nos casos de definição de cache
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
ferramentas/parametrossql/ogc.php
| @@ -199,7 +199,7 @@ else{ | @@ -199,7 +199,7 @@ else{ | ||
| 199 | if($filtro != ""){ | 199 | if($filtro != ""){ |
| 200 | $l->setfilter($filtro); | 200 | $l->setfilter($filtro); |
| 201 | } | 201 | } |
| 202 | - | 202 | + |
| 203 | $l->set("data",$data); | 203 | $l->set("data",$data); |
| 204 | //acrecenta-se um md5 apos o nome caso seja necessario gerar cache | 204 | //acrecenta-se um md5 apos o nome caso seja necessario gerar cache |
| 205 | if($cache == true){ | 205 | if($cache == true){ |
| @@ -417,6 +417,11 @@ if(strtolower($req->getValueByName("REQUEST")) == "getfeatureinfo"){ | @@ -417,6 +417,11 @@ if(strtolower($req->getValueByName("REQUEST")) == "getfeatureinfo"){ | ||
| 417 | } | 417 | } |
| 418 | } | 418 | } |
| 419 | ms_ioinstallstdouttobuffer(); | 419 | ms_ioinstallstdouttobuffer(); |
| 420 | +//o LAYER pode ter um nome randomico em funcao de ser um plugin | ||
| 421 | +$l = $oMap->getlayer(0); | ||
| 422 | +if($req->getValueByName("LAYERS") != $l->name){ | ||
| 423 | + $req->setParameter("LAYERS",$l->name); | ||
| 424 | +} | ||
| 420 | //verifica parametro outputformat | 425 | //verifica parametro outputformat |
| 421 | if(strtolower($req->getValueByName("REQUEST")) == "getmap" && $req->getValueByName("format") == ""){ | 426 | if(strtolower($req->getValueByName("REQUEST")) == "getmap" && $req->getValueByName("format") == ""){ |
| 422 | $req->setParameter("format","image/png"); | 427 | $req->setParameter("format","image/png"); |