Commit 8321bc974daf97a2ae85ff11bc7f1fcf3dce17e1
1 parent
5fb3036f
Exists in
master
and in
7 other branches
Correção na geração de web services ogc
Showing
3 changed files
with
7 additions
and
2 deletions
Show diff stats
admin/php/classe_arvore.php
classesphp/classe_menutemas.php
| ... | ... | @@ -119,7 +119,7 @@ array |
| 119 | 119 | { |
| 120 | 120 | if(!isset($this->locaplic)) |
| 121 | 121 | {return "locaplic nao foi definido";} |
| 122 | - include_once("../admin/php/classe_arvore.php"); | |
| 122 | + include_once($this->locaplic."/admin/php/classe_arvore.php"); | |
| 123 | 123 | $arvore = new Arvore($this->locaplic); |
| 124 | 124 | $resultado = $arvore->pegaListaDeMenus($this->perfil); |
| 125 | 125 | unset($arvore); | ... | ... |
ogc.php
| ... | ... | @@ -68,6 +68,7 @@ require_once("classesphp/carrega_ext.php"); |
| 68 | 68 | include("ms_configura.php"); |
| 69 | 69 | include("classesphp/pega_variaveis.php"); |
| 70 | 70 | include("classesphp/classe_menutemas.php"); |
| 71 | + | |
| 71 | 72 | // |
| 72 | 73 | //pega os endereços para compor a url de chamada do gerador de web services |
| 73 | 74 | //ogc.php |
| ... | ... | @@ -82,6 +83,7 @@ $urli3geo = str_replace("/ogc.php","",$protocolo.$_SERVER["PHP_SELF"]); |
| 82 | 83 | //se a variável definida em ms_configura for = "", a busca é feita |
| 83 | 84 | //pelo método Menutemas |
| 84 | 85 | // |
| 86 | + | |
| 85 | 87 | if(!isset($perfil)){$perfil = "";} |
| 86 | 88 | if($menutemas != "" || is_array($menutemas)) |
| 87 | 89 | { |
| ... | ... | @@ -168,6 +170,7 @@ foreach ($_GET as $k=>$v) |
| 168 | 170 | //if(strtolower($k) == "srs") |
| 169 | 171 | //{$SRS = $v;} |
| 170 | 172 | } |
| 173 | + | |
| 171 | 174 | if(count($_GET) == 0){ |
| 172 | 175 | $tipo="intervalo"; |
| 173 | 176 | $req->setParameter("REQUEST", "getCapabilities"); |
| ... | ... | @@ -201,6 +204,7 @@ if(!isset($tema)){ |
| 201 | 204 | $intervalo = "0,5000"; |
| 202 | 205 | $tipo = "intervalo"; |
| 203 | 206 | } |
| 207 | + | |
| 204 | 208 | if ($tipo == "" || $tipo == "metadados") |
| 205 | 209 | { |
| 206 | 210 | $tema = explode(" ",$tema); |
| ... | ... | @@ -318,6 +322,7 @@ else |
| 318 | 322 | } |
| 319 | 323 | } |
| 320 | 324 | } |
| 325 | + | |
| 321 | 326 | ms_ioinstallstdouttobuffer(); |
| 322 | 327 | $oMap->owsdispatch($req); |
| 323 | 328 | $contenttype = ms_iostripstdoutbuffercontenttype(); | ... | ... |