index.html
9.54 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
<!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>Mashups</title>
<link rel="stylesheet" type="text/css" href="../css/input.css" />
<link rel="stylesheet" type="text/css" href="../css/geral.css">
<style>
P {
text-align: justify;
font-size: 14px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
fieldset {
border: 1px solid #F0F0F0;
border-radius: 5px 5px 5px 5px;
box-shadow: 1px 1px 1px 1px lightgray;
margin: auto;
margin-top: 20px;
padding: 5px;
background-color: white;
font-size: 0.4cm;
display: block;
width: 80%;
}
.borda {
background-color: #4682b4;
padding: 5px 0px 5px 0px;
text-align: left;
width: 100%;
}
#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: doted;
}
A:hover {
color: #4142ff;
}
body {
padding-top: 0px;
COLOR: #2F4632;
text-align: center;
font-size: 0.6cm;
font-family: Verdana, Arial, Helvetica, sans-serif;
background-color: rgb(250, 250, 250);
margin: auto;
}
legend {
font-size: 14px;
}
</style>
</head>
<body>
<div class="borda">
<div id="bandeiras"></div>
<div style="text-align: center; color: white;">
<b>Mashups do i3geo</b>
</div>
</div>
<div style="text-align: left; margin: auto; width: 100%;">
<fieldset>
<p>Mashups são pequenos programas que podem ser facilmente inseridos em páginas HTML e que mostram determinados
conteúdos.</p>
<p>No caso do i3Geo, os mashups mostram mapas tendo como base o conjunto de temas existentes no diretório i3geo/temas.</p>
</fieldset>
<fieldset>
<legend>OpenLayers</legend>
<p>
O <a href="http://openlayers.org" target=_blank>OpenLayers</a> é uma biblioteca em javascript bastante popular. Possuí
uma interface simples mas que pode conter um grande número de funcionalidades.
</p>
<p>
Para ver todos os parâmetros: <a target=_blank href="openlayers.php">i3geo/mashups/openlayers.php</a>
</p>
<p>
Para usar o Open Street Map (OSM) utilize o endereço <a target=_blank href="osm.php">i3geo/mashups/osm.php</a>
</p>
<p>Nos exemplos, basta substituir openlayers.php por osm.php:</p>
<p class="m">
Windows: <a target=_blank href="osm.php?temas=_wbiomashp&largura=800&altura=500">osm.php?temas=_wbiomashp&largura=800&altura=500</a>
</p>
<p class="m">
Linux: <a target=_blank href="osm.php?temas=_lbiomashp&largura=800&altura=500">osm.php?temas=_lbiomashp&largura=800&altura=500</a>
</p>
<p>O gerador de Web Services do i3GEO pode ser utilizado para abrir o mashup.</p>
<p class="m">
Windows: <a target=_blank href="../ogc.php?temas=_wbiomashp&format=application/openlayers&bbox=-54,-14,-50,-10">ogc.php?temas=_wbiomashp&format=application/openlayers&bbox=-54,-14,-50,-10</a>
</p>
<p class="m">
Linux: <a target=_blank href="../ogc.php?temas=_lbiomashp&format=application/openlayers&bbox=-54,-14,-50,-10">ogc.php?temas=_lbiomashp&format=application/openlayers&bbox=-54,-14,-50,-10</a>
</p>
</fieldset>
<fieldset>
<legend>Filtro</legend>
<p>Cada tema pode receber filtros seguindo-se a sintaxe &map_layer_{codigo do tema}_filter=<br>
Em camadas com origem em arquivos shapefile o valor do filtro segue o padrão (('[nome_da_coluna]'='valor_do_registro'))<br>
Camadas baseadas em Postgis seguem o padrão nome_da_coluna=valor_do_registro.
</p>
<p class="m">
Windows: <a target=_blank href="http://localhost/i3geo/mashups/openlayers.php?map_layer__wbiomashp_filter=(('[CD_LEGENDA]'='CAATINGA'))&temas=_wbiomashp&layers=_wbiomashp">openlayers.php?map_layer__lbiomashp_filter=(('[CD_LEGENDA]'='CAATINGA'))&temas=_wbiomashp&layers=_wbiomashp</a>
</p>
<p class="m">
Linux: <a target=_blank href="http://localhost/i3geo/mashups/openlayers.php?map_layer__lbiomashp_filter=(('[CD_LEGENDA]'='CAATINGA'))&temas=_lbiomashp&layers=_lbiomashp">openlayers.php?map_layer__lbiomashp_filter=(('[CD_LEGENDA]'='CAATINGA'))&temas=_lbiomashp&layers=_lbiomashp</a>
</p>
</fieldset>
<fieldset>
<legend>Todas as opções e um tema adicionado</legend>
<p class="m">
Windows: <a target=_blank href="openlayers.php?temas=_wbiomashp&largura=800&altura=500">openlayers.php?temas=_wbiomashp&largura=800&altura=500</a>
</p>
<p class="m">
Linux: <a target=_blank href="openlayers.php?temas=_lbiomashp&largura=800&altura=500">openlayers.php?temas=_lbiomashp&largura=800&altura=500</a>
</p>
</fieldset>
<fieldset>
<legend>Duas camadas mas com apenas uma visível na inicialização do mapa</legend>
<p class="m">
Windows: <a target=_blank href="openlayers.php?temas=_wbiomashp,_wlocali&largura=800&altura=500&visiveis=_wbiomashp">openlayers.php?temas=_wbiomashp,_wlocali&largura=800&altura=500&visiveis=_wbiomashp</a>
</p>
<p class="m">
Linux: <a target=_blank href="openlayers.php?temas=_lbiomashp,_llocali&largura=800&altura=500&visiveis=_lbiomashp">openlayers.php?temas=_lbiomashp,_llocali&largura=800&altura=500&visiveis=_lbiomashp</a>
</p>
</fieldset>
<fieldset>
<legend>Zoom para uma região</legend>
<p class="m">
Windows: <a target=_blank href="openlayers.php?temas=_wbiomashp&largura=800&mapext=-68.39967%20-12.16172%20-62.67402%20-5.366808">openlayers.php?temas=_wbiomashp&largura=800&mapext=-68.39967
-12.16172 -62.67402 -5.366808</a>
</p>
<p class="m">
Linux: <a target=_blank href="openlayers.php?temas=_lbiomashp&largura=800&mapext=-68.39967%20-12.16172%20-62.67402%20-5.366808">openlayers.php?temas=_lbiomashp&largura=800&mapext=-68.39967
-12.16172 -62.67402 -5.366808</a>
</p>
</fieldset>
<fieldset>
<legend>Botões principais e barra de zoom maior</legend>
<p class="m">
Windows: <a target=_blank
href="openlayers.php?temas=_wbiomashp&largura=800&botoes=pan,zoombox,zoomtot,distancia,area,identifica&numzoomlevels=10">openlayers.php?temas=_wbiomashp&largura=800&botoes=pan,zoombox,zoomtot,distancia,area,identifica&numzoomlevels=10</a>
</p>
<p class="m">
Linux: <a target=_blank
href="openlayers.php?temas=_lbiomashp&largura=800&botoes=pan,zoombox,zoomtot,distancia,area,identifica&numzoomlevels=10">openlayers.php?temas=_lbiomashp&largura=800&botoes=pan,zoombox,zoomtot,distancia,area,identifica&numzoomlevels=10</a>
</p>
</fieldset>
<fieldset>
<legend>Inclusão de pontos</legend>
<p class="m">
Windows: <a target=_blank href="openlayers.php?temas=_wbiomashp&largura=800&pontos=-54%20-12%20-56%20-15">openlayers.php?temas=_wbiomashp&largura=800&pontos=-54
-12 -56 -15</a>
</p>
<p class="m">
Linux: <a target=_blank href="openlayers.php?temas=_lbiomashp&largura=800&pontos=-54%20-12%20-56%20-15">openlayers.php?temas=_lbiomashp&largura=800&pontos=-54
-12 -56 -15</a>
</p>
</fieldset>
<fieldset>
<legend>Camada adicional como fundo</legend>
<p class="m">
Windows: <a target=_blank href="openlayers.php?temas=_wbiomashp&largura=800&fundo=_wbiomashp">openlayers.php?temas=_wbiomashp&largura=800&fundo=_wbiomashp</a>
</p>
<p class="m">
Linux: <a target=_blank href="openlayers.php?temas=_lbiomashp&largura=800&fundo=_lbiomashp&largura=800&fundo=_lbiomashp">openlayers.php?temas=_lbiomashp&largura=800&fundo=_lbiomashp</a>
</p>
</fieldset>
<fieldset>
<legend>KML</legend>
<p class="m">
Windows: <a target=_blank href="openlayers.php?temas=_wbiomashp&largura=700&kml=http://localhost/i3geo/aplicmap/dados/sundials.kml">openlayers.php?temas=_wbiomashp&largura=700&kml=http://localhost/i3geo/aplicmap/dados/sundials.kml</a>
</p>
<p class="m">
Linux: <a target=_blank href="openlayers.php?temas=_lbiomashp&largura=700&kml=http://localhost/i3geo/aplicmap/dados/sundials.kml">openlayers.php?temas=_lbiomashp&largura=700&kml=http://localhost/i3geo/aplicmap/dados/sundials.kml</a>
</p>
</fieldset>
</div>
<script>
/*
Title: Mashups
Como usar os mashups do i3geo
Link:
http://localhost/i3geo/mashup
Arquivo:
mashup/index.htm
Licenca:
GPL2
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.
*/
</script>
</body>
</html>