Commit bfd25575eca7be6684df8f78c49f06adb6bf7d9c
1 parent
1d68cfd2
Exists in
master
--no commit message
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
ferramentas/parametrossql/ogc.php
... | ... | @@ -199,7 +199,7 @@ else{ |
199 | 199 | if($filtro != ""){ |
200 | 200 | $l->setfilter($filtro); |
201 | 201 | } |
202 | - | |
202 | + | |
203 | 203 | $l->set("data",$data); |
204 | 204 | //acrecenta-se um md5 apos o nome caso seja necessario gerar cache |
205 | 205 | if($cache == true){ |
... | ... | @@ -417,6 +417,11 @@ if(strtolower($req->getValueByName("REQUEST")) == "getfeatureinfo"){ |
417 | 417 | } |
418 | 418 | } |
419 | 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 | 425 | //verifica parametro outputformat |
421 | 426 | if(strtolower($req->getValueByName("REQUEST")) == "getmap" && $req->getValueByName("format") == ""){ |
422 | 427 | $req->setParameter("format","image/png"); | ... | ... |