Commit dd115e0c0344791480ded2c02acce5676b9998ab
1 parent
606d4a4a
Exists in
master
and in
7 other branches
correção da função getlegendgraphic do ogc.php
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
ogc.php
| ... | ... | @@ -112,6 +112,8 @@ foreach ($_GET as $k=>$v) |
| 112 | 112 | $req->setParameter($k, $v); |
| 113 | 113 | if(strtolower($v) == "getcapabilities") |
| 114 | 114 | {$tipo = "metadados";} |
| 115 | + if(strtolower($v) == "getlegendgraphic") | |
| 116 | + {$tipo = "legenda";} | |
| 115 | 117 | if(strtolower($k) == "layers") |
| 116 | 118 | {$tema = $v;} |
| 117 | 119 | } |
| ... | ... | @@ -124,6 +126,8 @@ $server = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVE |
| 124 | 126 | $or = $proto.$server.$_SERVER['PHP_SELF']; |
| 125 | 127 | if((isset($tema)) && ($tema != "") && ($tipo=="metadados")) |
| 126 | 128 | {$or = $or."tema=".$tema."&";} |
| 129 | +if((isset($tema)) && ($tema != "") && ($tipo=="legenda")) | |
| 130 | +{$or = $or."tema=".$tema."&";} | |
| 127 | 131 | $oMap->setmetadata("ows_onlineresource",$or); |
| 128 | 132 | if (!isset($intervalo)) |
| 129 | 133 | {$intervalo = "0,50";} | ... | ... |