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,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"); |