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
@@ -104,7 +104,8 @@ $menus = array("menutemas/menutemas.xml"); @@ -104,7 +104,8 @@ $menus = array("menutemas/menutemas.xml");
104 //pega a lista de grupos 104 //pega a lista de grupos
105 if ($lista == "temas") 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 $imprimir = ""; 109 $imprimir = "";
109 foreach ($menus as $menu) 110 foreach ($menus as $menu)
110 { 111 {
@@ -125,6 +126,7 @@ if ($lista == &quot;temas&quot;) @@ -125,6 +126,7 @@ if ($lista == &quot;temas&quot;)
125 $imprimir .= "<span style=color:red >".$id."</span>"; 126 $imprimir .= "<span style=color:red >".$id."</span>";
126 $imprimir .= "&nbsp;-&nbsp;".mb_convert_encoding($tema->TNOME,"HTML-ENTITIES","auto")."&nbsp"; 127 $imprimir .= "&nbsp;-&nbsp;".mb_convert_encoding($tema->TNOME,"HTML-ENTITIES","auto")."&nbsp";
127 $imprimir .= "&nbsp;<a href='".$urli3geo."/ogc.php?tema=".$id."&service=wms&request=getcapabilities' >Getcapabilities</a>"; 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 if (mb_convert_encoding($tema->TLINK,"HTML-ENTITIES","auto") != "") 130 if (mb_convert_encoding($tema->TLINK,"HTML-ENTITIES","auto") != "")
129 {$imprimir .= "&nbsp;&nbsp;<a href='".mb_convert_encoding($tema->TLINK,"HTML-ENTITIES","auto")."' >fonte</a>";} 131 {$imprimir .= "&nbsp;&nbsp;<a href='".mb_convert_encoding($tema->TLINK,"HTML-ENTITIES","auto")."' >fonte</a>";}
130 $imprimir .= "<br>"; 132 $imprimir .= "<br>";
@@ -133,28 +135,7 @@ if ($lista == &quot;temas&quot;) @@ -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 return; 139 return;
159 } 140 }
160 if (isset($ajuda)) 141 if (isset($ajuda))
@@ -209,7 +190,7 @@ $oMap-&gt;setmetadata(&quot;ows_onlineresource&quot;,$or); @@ -209,7 +190,7 @@ $oMap-&gt;setmetadata(&quot;ows_onlineresource&quot;,$or);
209 $oMap->setmetadata("ows_title",$tituloInstituicao." - i3geo"); 190 $oMap->setmetadata("ows_title",$tituloInstituicao." - i3geo");
210 if (!isset($intervalo)) 191 if (!isset($intervalo))
211 {$intervalo = "0,50";} 192 {$intervalo = "0,50";}
212 -if ($tipo == "") 193 +if ($tipo == "" || $tipo == "metadados")
213 { 194 {
214 $tema = explode(" ",$tema); 195 $tema = explode(" ",$tema);
215 foreach ($tema as $tx) 196 foreach ($tema as $tx)
@@ -170,6 +170,15 @@ Aplicativos disponíveis com o i3geo e documentação. @@ -170,6 +170,15 @@ Aplicativos disponíveis com o i3geo e documentação.
170 <tr> 170 <tr>
171 <td></td> 171 <td></td>
172 <td> 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 <a href="kml.php" target="_blank" > 182 <a href="kml.php" target="_blank" >
174 Gerador kml. 183 Gerador kml.
175 </a> 184 </a>