ogc.htm
10.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<title>Download de dados geográficos</title>
<meta name="description" content="Mapa interativo do MMA">
<meta name="keywords" content="WMS OGC mapa sig gis webmapping geo geoprocessamento interativo meio ambiente MMA cartografia geografia">
<meta name="robots" content="index,follow">
<script type="text/javascript" src="classesjs/i3geo.js"></script>
<link rel="stylesheet" type="text/css" href="admin/html/admin.css">
<style>
.ajuda_usuario {
margin-left: 10px;
}
P {
padding-top: 12px;
COLOR: #2F4632;
text-align: left;
font-size: 12px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
#corpo {
text-align: left;
font-size: 12px;
width: 450px;
position: absolute;
top: 0px;
left: 380px;
background: white;
}
#arvoreTemas {
width: 280px;
}
body {
padding-top: 0px;
COLOR: #2F4632;
text-align: center;
font-size: 0.6cm;
font-family: Verdana, Arial, Helvetica, sans-serif;
background-color: white;
margin: auto;
}
#brasil {
background-image: url("imagens/sprite.png");
background-position: 0 -600px;
background-repeat: no-repeat;
cursor: pointer;
height: 10px;
width: 20px;
}
#uk {
background-image: url("imagens/sprite.png");
background-position: 0 -625px;
background-repeat: no-repeat;
cursor: pointer;
height: 10px;
width: 20px;
}
#espanhol {
background-image: url("imagens/sprite.png");
background-position: 0 -1400px;
background-repeat: no-repeat;
cursor: pointer;
height: 10px;
width: 20px;
}
#bandeiras img {
margin-left: 7px;
}
#bandeiras {
width: 100px;
text-align: left;
position: absolute;
left: 0.2cm;
z-index: 10;
}
a {
margin: 0px auto;
text-decoration: none;
font-size: 14px;
color: #26298D;
outline: none;
}
A:hover {
color: #4142ff;
}
</style>
</head>
<body class=" yui-skin-sam " style="background-color: white;">
<div class="borda">
<div id="bandeiras"></div>
<div style="text-align: center">
<a href="http://www.softwarepublico.gov.br" target="_blank" style="color: white;">
<b>OGC</b>
</a>
</div>
</div>
<div id="conteudo" style="position: relative; top: 10px; margin: auto; max-width: 1000px; left: 10px;">
<div id=arvoreTemas>
<p>Carregando árvore...
</div>
<!-- aqui vai o corpo da aplicação -->
<div id=corpo style="background-color: rgb(250, 250, 250)">
<H1>Web services OGC</H1>
<p>Navegue pela árvore ao lado para localizar o tema desejado.
<p>Clicando-se em um tema, é mostrado o endereço do serviço OGC.
<p>Os serviços são Web Wervices que possibilitam o acesso aos dados disponíveis nessa instalação do i3Geo.
<p>A lista de temas baseia-se nas configurações específicas de cada servidor onde o i3Geo está instalado.
<p>
Você pode usar um Web Service para acessar os dados configurados nesse servidor por meio de outros softwares de geoprocessamento, como o
<a href="http://www.gvsig.gva.es/index.php?id=gvsig&L=0">gvSIG.</a>
<p>
Para maiores informações sobre o uso de web services, veja
<a href='http://www.opengeospatial.org/standards' target=blank>http://www.opengeospatial.org/standards</a>
<p>
Bookmark: <span id=bm1></span>
<p>
<div style="text-align: left" id=curtir></div>
</div>
</div>
<script>
/*
Monta uma árvore de temas permitindo que o usuário clique em um deles e veja o endereço para acesso aos dados via WMS.
File: i3geo/ogc.htm
About: Licença
I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet
Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil
Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br
Este programa é software livre; você pode redistribuí-lo
e/ou modificá-lo sob os termos da Licença Pública Geral
GNU conforme publicada pela Free Software Foundation;
Este programa é distribuído na expectativa de que seja útil,
porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita
de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA.
Consulte a Licença Pública Geral do GNU para mais detalhes.
Você deve ter recebido uma cópia da Licença Pública Geral do
GNU junto com este programa; se não, escreva para a
Free Software Foundation, Inc., no endereço
59 Temple Street, Suite 330, Boston, MA 02111-1307 USA.
*/
/*
Gera o endereço do webservice do tema escolhido
Parameters:
botao - objeto do tipo input com o valor do tema para acesso
*/
function ogc_endereco(botao) {
botao.checked = false;
tema = botao.value;
if (tema === undefined) {
tema = botao.title;
}
ins = "<H1>Endereços de acesso:</H1>";
var re = new RegExp(".htm", "g");
var servico = window.location.href.replace(re, '.php?');
//remove variaveis adicionais, se houver
servico = servico.split("?")[0]+"?";
var s = ""; //"tema="+tema;
if (botao.name === "metaestat") {
s = "id_medida_variavel=" + tema.split("_")[1] + "&";
}
if (botao.name === "mapaCadastrado") {
s = "restauramapa=" + tema.split("_")[1] + "&";
tema = "";
}
servico += s;
ins += "<p>Webservice com todas as camadas: <a href='" + servico + "' target='_blank' >" + servico + "</a>";
ins += "<p>Webservice dessa camada: <a href='" + servico + "tema=" + tema + "&' target='_blank' >" + servico + "tema=" + tema + "&</a>";
ins += "<p>Link para essa página: <a href='"+ window.location.href.split("?")[0] + "?temaOgc=" + tema + "'>"+ window.location.href.split("?")[0] + "?temaOgc=" + tema + "</a>";
ins += "<p>Bookmark: <span id=bm ></span>";
ins +=
"<p><iframe src='http://www.facebook.com/plugins/like.php?href=" + servico
+ "&layout=button_count&show_faces=false&width=100&action=like&colorscheme=light&height=21' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:100px; height:21px;' allowTransparency='true'></iframe>";
ins +=
"<p><a target=blank href='"+servico+"service=wms&version=1.1.1&request=getcapabilities&layers="+tema+"' />GetCapabilities</a>";
ins +=
"<p><a target=blank href='"+servico+"SRS=EPSG:4618&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="+tema+"' />testar getmap</a>";
ins +=
"<p><a target=blank href='"+servico+"SRS=EPSG:4618&WIDTH=500&HEIGHT=500&BBOX=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&FORMAT=image/png&service=wms&version=1.1.0&request=getlegendgraphic&layers="+tema+"' />testar getLegendGraphic</a>";
ins +=
"<p><a target=blank href='"+servico+"format=application/openlayers&bbox=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&layers="+tema+"' />visualizar com openLayers</a>";
ins +=
"<p><a target=blank href='"+servico+"OUTPUTFORMAT=shape-zip&bbox=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&service=wfs&version=1.1.0&request=getfeature&layers="+tema+"&typeName="+tema+"' />download shapefile via WFS</a>";
ins +=
"<p><a target=blank href='"+servico+"OUTPUTFORMAT=csv&bbox=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&service=wfs&version=1.1.0&request=getfeature&layers="+tema+"&typeName="+tema+"&ows_geomtype=AS_WKT' />download CSV via WFS com geometria</a>";
ins +=
"<p><a target=blank href='"+servico+"OUTPUTFORMAT=csv&bbox=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&service=wfs&version=1.1.0&request=getfeature&layers="+tema+"&typeName="+tema+"&ows_geomtype=none' />download CSV via WFS mas sem a geometria</a>";
ins +=
"<p><a target=blank href='"+servico+"OUTPUTFORMAT=kmz&bbox=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&service=wfs&version=1.1.0&request=getfeature&layers="+tema+"&typeName="+tema+"' />download KMZ</a>";
ins +=
"<p><a target=blank href='"+servico+"OUTPUTFORMAT=geojson&bbox=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&service=wfs&version=1.1.0&request=getfeature&layers="+tema+"&typeName="+tema+"' />GeoJson</a>";
ins +=
"<p><a target=blank href='ferramentas/recline/default.php?tema="+tema+"' />Explore a tabela de atributos</a>";
if (!$i("panellistaarquivos")) {
YAHOO.namespace("datadownloadLista");
YAHOO.datadownloadLista.panel = new YAHOO.widget.Panel("panellistaarquivos", {
zIndex : 2000,
iframe : false,
width : "450px",
align : "left",
visible : false,
draggable : true,
close : true,
modal : true
});
YAHOO.datadownloadLista.panel.setHeader("OGC");
YAHOO.datadownloadLista.panel.setBody("");
YAHOO.datadownloadLista.panel.setFooter("");
YAHOO.datadownloadLista.panel.render(document.body);
YAHOO.datadownloadLista.panel.center();
YAHOO.datadownloadLista.panel.cfg.setProperty("y", 100);
}
;
YAHOO.datadownloadLista.panel.setBody(ins);
YAHOO.datadownloadLista.panel.show();
$i("bm").innerHTML = i3GEO.social.bookmark(servico);
//document.getElementById("corpo").innerHTML = ins
}
var loc = window.location.href;
var temp = loc.split("/ogc.htm");
g_locaplic = temp[0];
i3GEO.configura.locaplic = g_locaplic;
$i("bm1").innerHTML = i3GEO.social.bookmark(loc);
//i3GEO.social.compartilhar("curtir", loc, loc, "comtotal");
g_arvoreClicks = "";
i3GEO.idioma.IDSELETOR = "bandeiras";
i3GEO.idioma.mostraSeletor();
i3GEO.arvoreDeTemas.INCLUISISTEMAS = false;
i3GEO.arvoreDeTemas.FILTRAOGC = true;
i3GEO.arvoreDeTemas.INCLUIWMS = false;
i3GEO.arvoreDeTemas.INCLUIWMSMETAESTAT = true;
i3GEO.arvoreDeTemas.INCLUIREGIOES = false;
i3GEO.arvoreDeTemas.INCLUIINDIBR = false;
i3GEO.arvoreDeTemas.OPCOESADICIONAIS.incluiArvore = false;
i3GEO.arvoreDeTemas.OPCOESADICIONAIS.incluibusca = false;
i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir = false;
i3GEO.arvoreDeTemas.INCLUIMAPASCADASTRADOS = true;
i3GEO.arvoreDeTemas.OPCOESADICIONAIS.flutuante = false;
i3GEO.arvoreDeTemas.INCLUIESTRELAS = false;
i3GEO.arvoreDeTemas.TIPOBOTAO = "radio";
i3GEO.arvoreDeTemas.cria("", g_locaplic, "arvoreTemas", "ogc_endereco\(this\)");
//verifica se deve abrir de imediato a janela de links
temp = loc.split("temaOgc=");
if(temp[1]){
temaOgc = temp[1];
temaOgc = temaOgc.split("&");
temaOgc = temaOgc[0];
var botao = {
checked: false,
name: temaOgc,
value: temaOgc
};
ogc_endereco(botao);
}
</script>
</body>
</html>