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,6 +112,8 @@ foreach ($_GET as $k=>$v) | ||
| 112 | $req->setParameter($k, $v); | 112 | $req->setParameter($k, $v); |
| 113 | if(strtolower($v) == "getcapabilities") | 113 | if(strtolower($v) == "getcapabilities") |
| 114 | {$tipo = "metadados";} | 114 | {$tipo = "metadados";} |
| 115 | + if(strtolower($v) == "getlegendgraphic") | ||
| 116 | + {$tipo = "legenda";} | ||
| 115 | if(strtolower($k) == "layers") | 117 | if(strtolower($k) == "layers") |
| 116 | {$tema = $v;} | 118 | {$tema = $v;} |
| 117 | } | 119 | } |
| @@ -124,6 +126,8 @@ $server = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVE | @@ -124,6 +126,8 @@ $server = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVE | ||
| 124 | $or = $proto.$server.$_SERVER['PHP_SELF']; | 126 | $or = $proto.$server.$_SERVER['PHP_SELF']; |
| 125 | if((isset($tema)) && ($tema != "") && ($tipo=="metadados")) | 127 | if((isset($tema)) && ($tema != "") && ($tipo=="metadados")) |
| 126 | {$or = $or."tema=".$tema."&";} | 128 | {$or = $or."tema=".$tema."&";} |
| 129 | +if((isset($tema)) && ($tema != "") && ($tipo=="legenda")) | ||
| 130 | +{$or = $or."tema=".$tema."&";} | ||
| 127 | $oMap->setmetadata("ows_onlineresource",$or); | 131 | $oMap->setmetadata("ows_onlineresource",$or); |
| 128 | if (!isset($intervalo)) | 132 | if (!isset($intervalo)) |
| 129 | {$intervalo = "0,50";} | 133 | {$intervalo = "0,50";} |