Commit 91dee1ac0da3ae600ed3a14f244ca1a936e3266c

Authored by Edmar Moretti
1 parent 936d8828

--no commit message

Showing 2 changed files with 14 additions and 24 deletions   Show diff stats
ogc.php
... ... @@ -104,7 +104,8 @@ $menus = array("menutemas/menutemas.xml");
104 104 //pega a lista de grupos
105 105 if ($lista == "temas")
106 106 {
107   - echo "<b>Lista de temas por grupos e subgrupos e endereços de acesso aos dados por meio de Web Services WMS (os códigos dos temas estão em vermelho)</b><br><br>";
  107 + echo '<html><head><title>WMS</title><meta name="description" content="OGC"><meta name="keywords" content="WMS OGC mapa sig gis webmapping geo geoprocessamento interativo meio ambiente MMA cartografia geografia"> <meta name="robots" content="index,follow">';
  108 + echo "<body><b>Lista de temas por grupos e subgrupos e endereços de acesso aos dados por meio de Web Services WMS (os códigos dos temas estão em vermelho)</b><br><br>";
108 109 $imprimir = "";
109 110 foreach ($menus as $menu)
110 111 {
... ... @@ -125,6 +126,7 @@ if ($lista == &quot;temas&quot;)
125 126 $imprimir .= "<span style=color:red >".$id."</span>";
126 127 $imprimir .= "&nbsp;-&nbsp;".mb_convert_encoding($tema->TNOME,"HTML-ENTITIES","auto")."&nbsp";
127 128 $imprimir .= "&nbsp;<a href='".$urli3geo."/ogc.php?tema=".$id."&service=wms&request=getcapabilities' >Getcapabilities</a>";
  129 + $imprimir .= "&nbsp;<a href='".$urli3geo."/ogc.php?tema=".$id."&SRS=EPSG:4291&WIDTH=500&HEIGHT=500&BBOX=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&FORMAT=image/png&service=wms&version=1.1.0&request=getmap&layers=".$id."' >GetMap </a>";
128 130 if (mb_convert_encoding($tema->TLINK,"HTML-ENTITIES","auto") != "")
129 131 {$imprimir .= "&nbsp;&nbsp;<a href='".mb_convert_encoding($tema->TLINK,"HTML-ENTITIES","auto")."' >fonte</a>";}
130 132 $imprimir .= "<br>";
... ... @@ -133,28 +135,7 @@ if ($lista == &quot;temas&quot;)
133 135 }
134 136 }
135 137 }
136   - echo $imprimir;
137   - return;
138   -}
139   -if ($lista == "sitemap")
140   -{
141   - foreach ($menus as $menu)
142   - {
143   - $xml = simplexml_load_file($menu);
144   - foreach($xml->GRUPO as $grupo)
145   - {
146   - foreach($grupo->SGRUPO as $sgrupo)
147   - {
148   - foreach($sgrupo->TEMA as $tema)
149   - {
150   - if (mb_convert_encoding($tema->OGC,"HTML-ENTITIES","auto") == "")
151   - {
152   - echo $urli3geo."/ogc.php?tema=".mb_convert_encoding($tema->TID,"HTML-ENTITIES","auto")."&service=wms&request=getcapabilities<br>";
153   - }
154   - }
155   - }
156   - }
157   - }
  138 + echo $imprimir."</body></html>";
158 139 return;
159 140 }
160 141 if (isset($ajuda))
... ... @@ -209,7 +190,7 @@ $oMap-&gt;setmetadata(&quot;ows_onlineresource&quot;,$or);
209 190 $oMap->setmetadata("ows_title",$tituloInstituicao." - i3geo");
210 191 if (!isset($intervalo))
211 192 {$intervalo = "0,50";}
212   -if ($tipo == "")
  193 +if ($tipo == "" || $tipo == "metadados")
213 194 {
214 195 $tema = explode(" ",$tema);
215 196 foreach ($tema as $tx)
... ...
principal.htm
... ... @@ -170,6 +170,15 @@ Aplicativos disponíveis com o i3geo e documentação.
170 170 <tr>
171 171 <td></td>
172 172 <td>
  173 + <a href="ogc.php?lista=temas" target="_blank" >
  174 + Listagem compacta dos Web Services.
  175 + </a>
  176 + &nbsp;Lista os Web Services em um formato compacto. Útil para "sitemaps".
  177 + </td>
  178 +</tr>
  179 +<tr>
  180 + <td></td>
  181 + <td>
173 182 <a href="kml.php" target="_blank" >
174 183 Gerador kml.
175 184 </a>
... ...