Commit 2578568e02001a6209fa1e5a02c5c000d2159a19

Authored by Edmar Moretti
1 parent ea9c3a1c

Inclusão de mapfile de testes com banco postgis em UTF-8

admin/js/editormapfile.js
... ... @@ -733,9 +733,9 @@ function montaEditorConexao(dados)
733 733 "linhas":[
734 734 {ajuda:"Type of connection. Default is local.",
735 735 titulo:"Connectiontype",id:"",value:"",div:"<div id=cConnectiontype ></div>",tipo:"text"},
736   - {ajuda:"Database connection string to retrieve remote data.An SDE connection string consists of a hostname, instance name, database name, username and password separated by commas.A PostGIS connection string is basically a regular PostgreSQL connection string, it takes the form of 'user=nobody password=****** dbname=dbname host=localhost port=5432' An Oracle connection string: user/pass[@db]",
  736 + {ajuda:"Database connection string to retrieve remote data.An SDE connection string consists of a hostname, instance name, database name, username and password separated by commas.A PostGIS connection string is basically a regular PostgreSQL connection string, it takes the form of 'user=nobody password=****** dbname=dbname host=localhost port=5432' An Oracle connection string: user/pass[@db] . Se vc tiver problemas com acentuação, experimente algo como: user=postgres password=postgres dbname=pgutf8 host=localhost port=5432 options='-c client_encoding=LATIN1'",
737 737 titulo:"Connection",id:"connection",value:dados.connection,tipo:"text"},
738   - {ajuda:"Full filename of the spatial data to process. No file extension is necessary for shapefiles. Can be specified relative to the SHAPEPATH option from the Map Object.If this is an SDE layer, the parameter should include the name of the layer as well as the geometry column, i.e. 'mylayer,shape,myversion'.If this is a PostGIS layer, the parameter should be in the form of '<columnname> from <tablename>', where 'columnname' is the name of the column containing the geometry objects and 'tablename' is the name of the table from which the geometry data will be read.For Oracle, use 'shape FROM table' or 'shape FROM (SELECT statement)' or even more complex Oracle compliant queries! Note that there are important performance impacts when using spatial subqueries however. Try using MapServer's FILTER whenever possible instead. You can also see the SQL submitted by forcing an error, for instance by submitting a DATA parameter you know won't work, using for example a bad column name.",
  738 + {ajuda:"Full filename of the spatial data to process. No file extension is necessary for shapefiles. Can be specified relative to the SHAPEPATH option from the Map Object.If this is an SDE layer, the parameter should include the name of the layer as well as the geometry column, i.e. 'mylayer,shape,myversion'.If this is a PostGIS layer, the parameter should be in the form of '<columnname> from <tablename>', where 'columnname' is the name of the column containing the geometry objects and 'tablename' is the name of the table from which the geometry data will be read.For Oracle, use 'shape FROM table' or 'shape FROM (SELECT statement)' or even more complex Oracle compliant queries! Note that there are important performance impacts when using spatial subqueries however. Try using MapServer's FILTER whenever possible instead. You can also see the SQL submitted by forcing an error, for instance by submitting a DATA parameter you know won't work, using for example a bad column name. Exemplo postgis: the_geom FROM (select * FROM biomas) as foo USING UNIQUE gid USING SRID=4291 ",
739 739 titulo:"Data",id:"data",value:dados.data,tipo:"text"},
740 740 {ajuda:"Item that contains the location of an individual tile, default is 'location'.",
741 741 titulo:"tileitem",id:"tileitem",value:dados.tileitem,tipo:"text"},
... ... @@ -1123,13 +1123,15 @@ function salvarDadosEditor(tipo,codigoMap,codigoLayer,indiceClasse,indiceEstilo,
1123 1123 //validação
1124 1124 //
1125 1125 var valorTeste = $i("extensao").value
1126   - var teste1 = valorTeste.split(" ");
1127   - if(teste1.length != 4)
1128   - {alert("Sao necessarios 4 valores em extensao");return;}
1129   - if(teste1[0]*1 > teste1[2]*1)
1130   - {alert("xmin maior que xmax em extensao");return;}
1131   - if(teste1[1]*1 > teste1[3]*1)
1132   - {alert("ymin maior que ymax em extensao");return;}
  1126 + if(valorTeste != ""){
  1127 + var teste1 = valorTeste.split(" ");
  1128 + if(teste1.length != 4)
  1129 + {alert("Sao necessarios 4 valores em extensao");return;}
  1130 + if(teste1[0]*1 > teste1[2]*1)
  1131 + {alert("xmin maior que xmax em extensao");return;}
  1132 + if(teste1[1]*1 > teste1[3]*1)
  1133 + {alert("ymin maior que ymax em extensao");return;}
  1134 + }
1133 1135 var valorTeste = $i("escala").value
1134 1136 if(valorTeste != ""){
1135 1137 var teste1 = valorTeste * 1;
... ...
aplicmap/estadoslwindows.map
... ... @@ -10,8 +10,8 @@ LAYER
10 10 ITENS "ESTADO"
11 11 TIP "ESTADO"
12 12 ITENSDESC "Estado"
13   - #ITEMIMG "ESTADO"
14   - #IMGLOC "imagens/bandeiras"
  13 + ITEMIMG "ESTADO"
  14 + IMGLOC "../imagens/bandeiras"
15 15 TEMA "Limite Estadual"
16 16 ESCALA "250000"
17 17 CLASSE "SIM"
... ...
aplicmap/meumapa.htm
... ... @@ -9,24 +9,27 @@
9 9 Os códigos do i3geo são compactados para tornar o carregamento mais rápido.
10 10 Se vc alterar os códigos originais, não se esqueça de compactá-los com classesjs/compactajs.php.
11 11 Para depurar o código sem ter de compactá-los, substitua na linha abaixo
12   - o arquivo i3geo.js por i3geonaocompacto.js
  12 + o arquivo i3geo.js por i3geo.js
13 13 -->
14 14 <script type="text/javascript" src="../classesjs/i3geo.js"></script>
15   -<!--
16   - <style>
17   - #box1
18   - {font-size:0px;cursor:crosshair;opacity:.25;background-color: gray;position: absolute;visibility: hidden;width: 0px;height: 0px;border: 2px solid green;}
19   - </style>
20   --->
  15 + <style>
  16 + .yui-log .i3geo {background-color:yellow;} /* customize a color */
  17 + .yui-log .redesenho {background-color:yellow;} /* customize a color */
  18 + .yui-log .janela {background-color:yellow;} /* customize a color */
  19 + .yui-log-bd {text-align:left;}
  20 + .yui-log-entry yui-log-verbose, p{text-align:left;}
  21 + .info {text-align:left;}
  22 + </style>
21 23 </head>
22   -<body id="i3geo" >
23   -<center>
24   -<table id='mst' summary="" style='display:none' width=100% cellspacing='0'>
  24 +<body id="i3geo">
  25 +
  26 +<table id='mst' summary="" style='display:none;' width=100% cellspacing='0'>
  27 +
25 28 <!--
26 29 Inclui a barra superior. Se vc não quiser o menu, é só comentar o TR
27 30 -->
28 31 <tr style="border:0px">
29   - <td colspan=2 style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td>
  32 + <td colspan=2 id="barraSuperior" style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td>
30 33 </tr>
31 34 <tr>
32 35 <td>
... ... @@ -37,17 +40,19 @@
37 40 <!--
38 41 Guias principais, não mude o ID, apenas o nome se for desejado
39 42 -->
  43 +
40 44 <div class=verdeescuro style="top:0px;cursor:pointer;">
41 45 <div id=guia1 class=guia >Temas</div>
42 46 <div id=guia2 class=guia >Adiciona</div>
43 47 <div id=guia4 class=guia >Legenda</div>
44   - <div id=guia5 class=guia >Mapas</div>
  48 + <div id=guia5 class=guia >Links</div>
45 49 </div>
46 50 </td>
  51 +
47 52 </tr>
48 53 </table>
49 54 </td>
50   -<td style="text-align:right;height:0px;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)">
  55 +<td id="contemMenu" style="text-align:right;height:0px;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)">
51 56 <!--
52 57 menu suspenso
53 58 -->
... ... @@ -59,6 +64,7 @@
59 64 <!--
60 65 Esta div acrescenta a lista de propriedades do mapa, caso vc queira colocá-la em um lugar específico
61 66 -->
  67 +
62 68 <!--<div id=listaPropriedades ></div>-->
63 69 <!--
64 70 Esta div acrescenta a opção de busca rápida, caso vc queira colocá-la em um lugar específico
... ... @@ -78,6 +84,7 @@
78 84 <div id=outrasOpcoesAdiciona style='top:25px;' ></div>
79 85 -->
80 86 </div>
  87 +
81 88 <div id='guia2obj' style='display:none;'>Aguarde...<img alt="" src="../imagens/branco.gif" width=248 /></div>
82 89 <div id='guia4obj' style='display:none;text-align:left'><div id='legenda' style='text-align:left'></div></div>
83 90 <div id='guia5obj' style='display:none;text-align:left'><div id='banners' style='overflow:auto;text-align:left'>Aguarde...</div></div>
... ... @@ -86,8 +93,10 @@
86 93 <table width="100%" style="vertical-align:top;border-width:0px">
87 94 <!--
88 95 Corpo do mapa. Pode ser reposicionado, mas não mude os IDs. Se vc quiser que o mapa tenha um tamanho específico, inclua o estilo, exemplo, style=width:300px;height:300px
  96 + Vc pode usar o estilo para definir o tamanho do mapa. Se não tiver estilo definido, o tamanho será automático
89 97 -->
90 98 <tr><td class=verdeclaro id=contemImg >
  99 +
91 100 <div id=corpoMapa style="background-image:url('../imagens/i3geo1bw.jpg');"></div>
92 101 </td></tr>
93 102 </table>
... ... @@ -100,118 +109,182 @@ Mostra as coordenadas conforme o mouse é movimentado
100 109 <!--
101 110 Escala gráfica. Pode ser excluída.
102 111 -->
103   -<!-- <div id="escalaGrafica" style="text-align:left"></div>-->
  112 +<!-- <div id="escalaGrafica" style="text-align:left"></div> -->
104 113 <!--
105 114 vc pode optar por colocar mensagens de ajuda em algum lugar
106 115 -->
107   -<!--<tr><td colspan=2 ><div id=ajuda class=verdeescuro style="text-align:left;" >I3Geo</div></td></tr>-->
  116 +<!--
  117 +<tr><td colspan=2 ><div id=i3geo_ajuda class=verdeescuro style="text-align:left;" >I3Geo</div></td></tr>
  118 +-->
108 119 <tr>
  120 +
109 121 <td class=tdbranca >
110   - <div id=visual ></div>
  122 + <!--
  123 + Nesse div são incluídos os ícones que permitem ao usuário modificar o visual de cores dos ícones
  124 + <div id=visual ></div>
  125 + -->
  126 + <!-- aqui serão incluídas as bandeiras que permitem a troca de idioma -->
  127 + <div id="seletorIdiomas" ></div>
  128 + <!-- aqui será incluído o contador de tempo quando o temporizador de redesenho do mapa estiver ativo -->
111 129 <div id=tempoRedesenho style=color:green;background-color:black;width:50px;display:none ></div>
112 130 </td>
113 131 <td class=tdbranca >
114 132 <table width=100% ><tr>
115 133 <td class=tdbranca ><div id=lugarquadros ></div></td>
116   - <td class=tdbranca style=text-align:center ><div id=localizarxy >Aguarde...</div></td>
117   - <td class=tdbranca ><div id=escala ></div></td>
  134 + <td class=tdbranca style=text-align:center >
  135 + <!-- aqui será incluído o gadget que mostra a coordenada geográfica da posição do mouse -->
  136 + <div id=localizarxy style="text-align:left;font-size:10px;">Aguarde...</div>
  137 + </td>
  138 + <td class=tdbranca >
  139 + <!-- aqui será incluída a escala numérica -->
  140 + <div id=escala ></div>
  141 + </td>
118 142 <!--
119 143 A opção de localização 'onde estou?' baseia-se na identificação do IP do usuário. Para
120 144 que esta opção funcione corretamente, deve estar instalado no I3Geo o pacote geoIP. Veja no
121 145 SVN do portal do software público o diretório arquivos_versões/pacotes para maiores informações
122 146 -->
123 147 <td class=tdbranca ><div id=ondeestou ></div></td>
124   - </tr></table>
  148 + </tr>
  149 + <!-- esta div recebe o cálculo do posicionamento do mouse em coordenadas UTM
  150 + As coordenadas UTM apenas serão mostradas nessa div se o parâmetro
  151 + i3GEO.gadgets.mostraCoordenadasUTM.idhtml for diferente de i3GEO.gadgets.mostraCoordenadasGEO.idhtml
  152 + se os IDs forem iguais, o tipo de coordenada mostrada será intercalada, ora UTM ora GEO.
  153 + <tr><td></td><td class="tdbranca"><div style="text-align:left;font-size:8px;background-color:white;display:none;" id=mostraUTM ></div></td><td></td></tr>
  154 + -->
  155 + </table>
125 156 </td>
126 157 </tr>
127   -<tr style="border:0px"><td colspan=3 style="background-image:url('../imagens/visual/default/rodape.png');height:10px"></td></tr>
  158 +<tr style="border:0px"><td colspan=3 id="barraInferior" style="background-image:url('../imagens/visual/default/rodape.png');height:10px"></td></tr>
  159 +<!-- aqui são mostradas imagens obtidas do metadata mensagem que pode existir em cada layer -->
  160 +<tr style="border:0px"><td colspan=3 style=background-color:black ><input style="border:0px none; background-color:black;color:white;font-size:12pt;" type="text" size="1" id="i3geo_letreiro" ></td></tr>
  161 +<tr style="border:0px"><td colspan=3 style=background-color:black;color:white >geoprocessamento@mma.gov.br</td></tr>
128 162 </table>
129   -</center>
  163 +
  164 +<center>
  165 +<br><br>
  166 +<table><tr>
  167 +<td colspan=3 ><center><img src='../imagens/i3geo1.jpg'></td></tr>
  168 +<tr><td style="padding:10px;"><center><img src='../imagens/pspb.png'></td>
  169 +<td style="padding:10px;"><center><img src='../imagens/mapserv.png'></td>
  170 +<td style="padding:10px;"><center><a href='http://mapas.mma.gov.br/download' target=blank ><img src='../imagens/somerights20_pt.gif' ></a></td>
  171 +</tr></table>
  172 +
  173 +
130 174 <!--
131 175 Barra de botoes que serão incluídos na janela móvel de navegação
132 176 Para excluir um botão é só apagar a linha.
133 177 Para adicionar um botão, é só criar uma linha e especificar a função que será executada quando o usuário clicar no botão
134 178 -->
135 179 <div id=barraDeBotoes1 style='display:none'>
136   - <table title="zoom" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="zoom" alt="" src="../imagens/branco.gif" id='zoomli'/></td></tr></table>
137   - <table title="desloca" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="desloca" alt="" src="../imagens/branco.gif" ID='pan'/></td></tr></table>
138   - <table title="info" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="info" alt="" src="../imagens/branco.gif" id='identifica'/></td></tr></table>
139   - <table title="geral" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="geral" alt="" src="../imagens/branco.gif" ID='zoomtot'/></td></tr></table>
140   - <table title="mede" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="mede" alt="" src="../imagens/branco.gif" id='mede'/></td></tr></table>
141   - <table title="area" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="area" alt="" src="../imagens/branco.gif" id='area'/></td></tr></table>
142   - <table title="imprimir" style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><img title="imprimir" alt="" src="../imagens/branco.gif" id='imprimir'/></td></tr></table>
  180 + <table style="width:100%"><caption style="text-align:center">&nbsp;</caption><tr><td style='background-color:rgb(250,250,250);'><div ID='historicozoom' ></div></td></tr><tr><td style=height:5px ></td></tr></table>
  181 + <div style='display:inline;background-color:rgb(250,250,250);'>
  182 + <p style='font-size:2px;'>&nbsp;</p>
  183 + <img title="zoom" alt="" src="../imagens/branco.gif" id='zoomli'/>
  184 + </div>
  185 + <div style='display:inline;background-color:rgb(250,250,250);'>
  186 + <p style='font-size:2px;'>&nbsp;</p>
  187 + <img title="desloca" alt="" src="../imagens/branco.gif" id='pan'/>
  188 + </div>
  189 + <div style='display:inline;background-color:rgb(250,250,250);'>
  190 + <p style='font-size:2px;'>&nbsp;</p>
  191 + <img title="info" alt="" src="../imagens/branco.gif" id='identifica'/>
  192 + </div>
  193 + <div style='display:inline;background-color:rgb(250,250,250);'>
  194 + <p style='font-size:2px;'>&nbsp;</p>
  195 + <img title="geral" alt="" src="../imagens/branco.gif" id='zoomtot'/>
  196 + </div>
  197 + <div style='display:inline;background-color:rgb(250,250,250);'>
  198 + <p style='font-size:6px;'>&nbsp;</p>
  199 + <img title="minhaferramenta" alt="" src="../imagens/altopen.gif" id='minhaferramenta' onclick='minhafuncao()'/>
  200 + </div>
143 201 </div>
144 202 <div id=barraDeBotoes2 style='display:none'>
145 203 <table style="width:100%"><caption style="text-align:center">&nbsp;</caption>
146 204 <tr><td style='background-color:rgb(250,250,250);'><img title="" alt="" src="../imagens/branco.gif" id='sobeferramentas'/></td></tr>
147 205 </table>
  206 +
  207 + <div style='display:inline;background-color:rgb(250,250,250);'>
  208 + <p style='font-size:2px;'>&nbsp;</p>
  209 + <img title="mede" alt="" src="../imagens/branco.gif" id='mede'/>
  210 + </div>
  211 +
148 212 <div style='display:inline;background-color:rgb(250,250,250);'>
149   - <p style='font-size:6px;'>&nbsp;</p>
  213 + <p style='font-size:2px;'>&nbsp;</p>
  214 + <img title="area" alt="" src="../imagens/branco.gif" id='area'/>
  215 + </div>
  216 +
  217 + <div style='display:inline;background-color:rgb(250,250,250);'>
  218 + <p style='font-size:2px;'>&nbsp;</p>
  219 + <img title="imprimir" alt="" src="../imagens/branco.gif" id='imprimir'/>
  220 + </div>
  221 +
  222 + <div style='display:inline;background-color:rgb(250,250,250);'>
  223 + <p style='font-size:2px;'>&nbsp;</p>
150 224 <img title="reinicia" alt="" src="../imagens/branco.gif" id='reinicia'/>
151 225 </div>
152 226  
153   - <div style='display:inline;background-color:rgb(250,250,250);'>
154   - <p style='font-size:6px;'>&nbsp;</p>
155   - <img title="minhaferramenta" onclick='minhafuncao()' alt="" src="../imagens/element-icons.gif" id='minhaferramenta'/>
156   - </div>
157 227  
158 228 <div style='display:inline;background-color:rgb(250,250,250);'>
159   - <p style='font-size:6px;'>&nbsp;</p>
  229 + <p style='font-size:2px;'>&nbsp;</p>
160 230 <img title="extensao" alt="" src="../imagens/branco.gif" id='exten'/>
161 231 </div>
162 232  
163 233 <div style='display:inline;background-color:rgb(250,250,250);'>
164   - <p style='font-size:6px;'>&nbsp;</p>
  234 + <p style='font-size:2px;'>&nbsp;</p>
165 235 <img title="referencia" alt="" src="../imagens/branco.gif" id='referencia'/>
166 236 </div>
167 237 <div style='display:inline;background-color:rgb(250,250,250);'>
168   - <p style='font-size:6px;'>&nbsp;</p>
  238 + <p style='font-size:2px;'>&nbsp;</p>
169 239 <img title="insere xy" alt="" src="../imagens/branco.gif" id='inserexy'/>
170 240 </div>
171 241 <div style='display:inline;background-color:rgb(250,250,250);'>
172   - <p style='font-size:6px;'>&nbsp;</p>
173   - <img title="insere grafico" alt="" src="../imagens/branco.gif" id='inseregrafico'/>
174   - </div>
175   - <div style='display:inline;background-color:rgb(250,250,250);'>
176   - <p style='font-size:6px;'>&nbsp;</p>
  242 + <p style='font-size:2px;'>&nbsp;</p>
177 243 <img title="texto" alt="" src="../imagens/branco.gif" id='textofid'/>
178 244 </div>
179 245 <div style='display:inline;background-color:rgb(250,250,250);'>
180   - <p style='font-size:6px;'>&nbsp;</p>
  246 + <p style='font-size:2px;'>&nbsp;</p>
181 247 <img title="selecao" alt="" src="../imagens/branco.gif" id='selecao'/>
  248 +
182 249 </div>
183 250 <div style='display:inline;background-color:rgb(250,250,250);'>
184   - <p style='font-size:6px;'>&nbsp;</p>
  251 + <p style='font-size:2px;'>&nbsp;</p>
185 252 <img title="google" alt="" src="../imagens/branco.gif" id='google'/>
186 253 </div>
187   -
  254 + <div style='display:inline;background-color:rgb(250,250,250);'>
  255 + <p style='font-size:2px;'>&nbsp;</p>
  256 + <img title="insere grafico" alt="" src="../imagens/branco.gif" id='inseregrafico'/>
  257 + </div>
188 258 <div style='display:none;background-color:rgb(250,250,250);'>
189   - <p style='font-size:6px;'>&nbsp;</p>
  259 +
  260 + <p style='font-size:2px;'>&nbsp;</p>
190 261 <img title="lente" alt="" src="../imagens/branco.gif" id='lentei'/>
191 262 </div>
192 263 <div style='display:none;background-color:rgb(250,250,250);'>
193   - <p style='font-size:6px;'>&nbsp;</p>
  264 + <p style='font-size:2px;'>&nbsp;</p>
194 265 <img title="scielo" alt="" src="../imagens/branco.gif" id='scielo'/>
195 266 </div>
196 267 <div style='display:none;background-color:rgb(250,250,250);'>
197   - <p style='font-size:6px;'>&nbsp;</p>
  268 + <p style='font-size:2px;'>&nbsp;</p>
  269 +
198 270 <img title="confluencias" alt="" src="../imagens/branco.gif" id='confluence'/>
199 271 </div>
200 272 <div style='display:none;background-color:rgb(250,250,250);'>
201   - <p style='font-size:6px;'>&nbsp;</p>
  273 + <p style='font-size:2px;'>&nbsp;</p>
202 274 <img title="busca na wikipedia" alt="" src="../imagens/branco.gif" id='wiki'/>
203 275 </div>
204 276 <div style='display:none;background-color:rgb(250,250,250);'>
205   - <p style='font-size:6px;'>&nbsp;</p>
  277 + <p style='font-size:2px;'>&nbsp;</p>
206 278 <img title="3d" alt="" src="../imagens/branco.gif" id='v3d'/>
  279 +
207 280 </div>
208 281 <div style='display:none;background-color:rgb(250,250,250);'>
209   - <p style='font-size:6px;'>&nbsp;</p>
  282 + <p style='font-size:2px;'>&nbsp;</p>
210 283 <img title="fotos" alt="" src="../imagens/branco.gif" id='buscafotos'/>
211 284 </div>
212   -
213 285 <table style="width:100%;"><tr><td style='background-color:rgb(250,250,250);'><p style='font-size:6px;'>&nbsp;</p><img title="" alt="" src="../imagens/branco.gif" id='desceferramentas'/></td></tr></table>
214 286 </div>
  287 +
215 288 <!-- Variáveis globais e inicialização do mapa-->
216 289 <script type="text/javascript">
217 290 /*
... ... @@ -227,395 +300,62 @@ http://&lt;host&gt;/i3geo/ms_criamapa.php
227 300  
228 301 */
229 302 /*
230   - Variable: g_locaplic
231   -
232 303 Indica a localização correta do i3geo.
233 304  
234 305 É utilizada para identificar o local correto onde estão os programas em php que são utilizados.
235   -
236   -*/
237   -g_locaplic = protocolo()+"://"+window.location.host+"/i3geo";
238   -/*
239   - Variable: g_localimg
240   -
241   - Indica a localização correta das imagens.
242   -
243   - É utilizada para identificar o local correto onde estão as imagens que são utilizados.
244   -
245   -*/
246   -g_localimg = protocolo()+"://"+window.location.host+"/i3geo/imagens";
247   -/*
248   -Variable: g_templateLegenda
249   -
250   -Template HTML que será utilizado na geração da legenda HTML
251   -
252   -A sintaxe do template é definido pelo Mapserver.
253   -
254   -O HTML pode ser armazenado em i3geo/aplicmap ou em um outro endereço no servidor.
255   -
256   -Exemplo:
257   -g_templateLegenda = "legendaseminput.htm";
258   -*/
259   -g_templateLegenda = "";
260   -/*
261   - Variable: g_funcaoTip
262   -
263   - Função ajax que será executada para mostrar informações do tipo TIP.
264   -
265   - A função é executada pelo CPAINT e avaliada com "eval".
266   -
267   - Default:
268   -
269   - g_funcaoTip = "verificaTipDefault()";
270   -*/
271   -/*
272   - Variable: g_tempotip (opcional)
273   -
274   - Tempo utilizado para verificar se o mouse está parado.
275   -
276   - Se o mouse estiver parado, a função de mostrar tip é ativada.
277   -
278   - Default:
279   -
280   - g_tempotip = 1000;
281   -*/
282   -
283   -/*
284   - Variable: g_tipotip
285   -
286   - Define como o tip será mostrado.
287   -
288   - Pode ser definida como "simples" ou "completo"
289   -
290   - Default:
291   -
292   - g_tipotip = "completo";
293   -*/
294   -
295   -/*
296   - Variable: g_tipoimagem
297   -
298   - Indica o tipo de filtro de imagem que está ativo. O filtro ativo é aplicado sobre a imagem toda a vez que o mapa é refeito.
299   -
300   - Default:
301   -
302   - g_tipoimagem = "nenhum";
303   -*/
304   -
305   -/*
306   - Variable: destacaTamanho
307   -
308   - Valor em pixel do retângulo de destaque de temas.
309   -
310   - Default:
311   -
312   - destacaTamanho = 75;
313   -*/
314   -
315   -/*
316   - Variable: g_entorno
317   -
318   - Indica se o preenchimento do entorno do mapa está ou não ativo.
319   -
320   - Utilizado para criar o efeito de auto-preenchimento do mapa quando é executada a função pan.
321   -
322   - É alterada em uma opção específica no menu suspenso.
323   -
324   - Default:
325   -
326   - g_entorno = "nao";
327   -*/
328   -
329   -/*
330   - Variable: g_guiaativa
331   -
332   - Indica qual guia do mapa iniciará ativa.
333   -
334   - Default:
335   -
336   - g_guiaativa = "guia1";
337   -*/
338   -
339   -/*
340   - Variable: g_diminuixM
341   -
342   - Diminui a largura do mapa em pixels no caso do navegador ser o IE.
343   -
344   - Default:
345   -
346   - g_diminuixM = 20;
347   -*/
348   -
349   -/*
350   - Variable: g_diminuixN
351   -
352   - Diminui a largura do mapa em pixels no caso do navegador ser o FF.
353   -
354   - Default:
355   -
356   - g_diminuixN = 20;
357   -*/
358   -/*
359   - Variable: g_diminuiyM
360   -
361   - Diminui a altura do mapa em pixels no caso do navegador ser o IE.
362   -
363   - Default:
364   -
365   - g_diminuiyM = 150;
366 306 */
  307 +i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo";
  308 +var g_localimg = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo/imagens";
  309 +var g_3dmap = "3dmap.map";
367 310  
368   -/*
369   - Variable: g_diminuiyN
370   -
371   - Diminui a altura do mapa em pixels no caso do navegador ser o FF.
372   -
373   - Default:
374   -
375   - g_diminuiyN = 120;
376   -*/
  311 +//i3GEO.arvoreDeTemas.INCLUISISTEMAS = false;
  312 +//i3GEO.idioma.MOSTRASELETOR = false;
  313 +//function tempi(){alert("oi")}
  314 +//i3GEO.configura.funcaoIdentifica = "tempi()"
377 315  
  316 +i3GEO.cria()
  317 +//Log
378 318 /*
379   - Variable: g_janelazoom
380   -
381   - Define se a barra de zoom será aberta no mapa.
382   -
383   - Default:
384   -
385   - g_janelazoom = "sim"
  319 +var myContainer = document.body.appendChild(document.createElement("div"));
  320 +myContainer.style.textAlign="left";
  321 +i3geoLog = new YAHOO.widget.LogReader(myContainer);
  322 +i3geoLog.show();
386 323 */
387 324  
388 325 /*
389   - Variable: g_barraFerramentas1
390   -
391   - Define se a barra de ferramentas 1 será mostrada
392   -
393   - Defaul:
394   -
395   - g_barraFerramentas1 = "sim"
396   -*/
397   -
398   -/*
399   - Variable: g_barraFerramentas2
400   -
401   - Define se a barra de ferramentas 2 será mostrada
402   -
403   - Defaul:
404   -
405   - g_barraFerramentas2 = "sim"
406   -*/
407   -
408   -/*
409   - Variable: g_mapaRefDisplay
410   -
411   - Indica a visibilidade do mapa de referência na inicialização
412   -
413   - Pode ser "block" ou "none".
414   -*/
415   -g_mapaRefDisplay = "block"
416   -
417   -/*
418   - Variable: g_docaguias
419   -
420   - Variável que define se o mapa deve iniciar com as guias em janela ou não.
421   -
422   - Default:
423   -
424   - g_docaguias = "nao";
425   -*/
426   -
427   -/*
428   - Variable: g_downloadbase
429   -
430   - Variável que define se na guia 2 será mostrada a opção de download.
431   -
432   - Default:
433   -
434   - g_downloadbase = "sim";
435   -*/
436   -
437   -/*
438   - Variable: g_conectargeorss
439   -
440   - Variável que define se na guia 2 será mostrada a opção de conexão com GeoRSS.
441   -
442   - Default:
443   -
444   - g_conectargeorss = "sim";
445   -*/
446   -
447   -/*
448   - Variable: g_uploadlocal
449   -
450   - Variável que define se na guia 2 será mostrada a opção de upload.
451   -
452   - Default:
453   -
454   - g_uploadlocal = "sim";
455   -*/
456   -
457   -/*
458   - Variable: g_uploaddbf
459   -
460   - Variável que define se na guia 2 será mostrada a opção de upload de arquivo dbf.
461   -
462   - Default:
463   -
464   - g_uploaddbf = "sim";
465   -*/
466   -
467   -/*
468   - Variable: g_conectarwms
469   -
470   - Variável que define se na guia 2 será mostrada a opção de conexão com WMS.
471   -
472   - Default:
473   -
474   - g_conectarwms = "sim";
475   -*/
476   -
477   -/*
478   - Variable: g_janelaMen
479   -
480   - Variável que define se a janela de mensagens começará aberta.
481   -
482   - Default:
483   -
484   - g_janelaMen = "sim";
485   -*/
486   -/*
487   - Variable: g_mostraRosa
488   -
489   - Variável que define se a rosa dos ventos deve ser mostrada junto ao mouse
490   -
491   - Default:
492   -
493   - g_mostraRosa = "sim"
494   -*/
495   -
496   -/*
497   - Variable: g_opcoesTemas
498   -
499   - Variável que define se as opcoes adicionais de cada tema serao mostradas.
500   -
501   - Default:
502   -
503   - g_opcoesTemas = "sim";
504   -*/
505   -
506   -/*
507   - Variable: g_3dmap
508   -
509   - Variável que define o nome do map_file que possuí o layer para uso na função 3d.
510   -
511   - Pode ser caminho completo. Se não, busca no aplicmap.
512   -*/
513   -g_3dmap = "3dmap.map";
514   -
515   -/*
516   - Variable: g_embedLegenda
517   -
518   - Indica se a legenda deve ser incluida no corpo do mapa.
519   -
520   - Default:
521   -
522   - g_embedLegenda = "nao";
523   -*/
524   -
525   -/*
526   -Variable: g_mashuppar
527   -
528   -Parâmetros de inicialização que podem ser utilizados na interface mashup.
529   -
530   -Os parâmetros são os mesmos que podem ser utilizados quando o i3geo é inicializado pelo ms_criamapa.php.
531   -
532   -Exemplo: g_mashuppar = "&pontos=-54 -12&temasa=biomas&layers=biomas"
533   -
534   -g_mashuppar = "&mapext=-53 -26 -42 -18";
535   -*/
536   -
537   -/*
538   - Variable: g_mensagempadrao
539   -
540   - Mensagem padrão que será mostrada na janela de mensagens.
541   -
542   - g_mensagempadrao = "O I3Geo é software livre! Para download clique <a href='http://mapas.mma.gov.br/download' target=blanck >aqui</a>";
543   -*/
544   -
545   -objmapa = new Mapa();
546   -
547   -/*
548   -Variable: g_visual
549   -
550   -Indica qual o tipo de visual para abertura do mapa.
551   -
552   -Os visuais disponíveis são obtidos do diretório i3geo/imagens/visual na inicialização do i3geo.
  326 + Inicializa o mapa
553 327 */
554   -g_visual = "default";
555   -
556   -/*
557   -Variable: g_autoRedesenho
558   -
559   -Ativa o auto redesenho após um determinado tempo (milisegundos).
  328 +//i3GEO.guias.ATUAL = "legenda"
560 329  
561   -Após decorrido o tempo definido, o mapa é redesenhado. Se for 0 o temporizador não é ativado.
562   -*/
563   -g_autoRedesenho = 0;
  330 +i3GEO.barraDeBotoes.AUTOALTURA = true
  331 +i3GEO.barraDeBotoes.ATIVAMENUCONTEXTO = true
  332 +i3GEO.barraDeBotoes.PERMITEFECHAR = false
  333 +i3GEO.barraDeBotoes.PERMITEDESLOCAR = false
564 334  
565   -/*
566   - Variable: objmapa.guiaTemas
567   -
568   - Define qual div corresponde ao local de listagem das camadas disponíveis no mapa
569   -*/
570   -objmapa.guiaTemas = "guia1"
  335 +i3GEO.idioma.IDSELETOR = "seletorIdiomas"
  336 +i3GEO.interface.ATIVAMENUCONTEXTO = true
571 337  
572   -/*
573   - Variable: objmapa.guiaMenu
574   -
575   - Define qual div corresponde ao local de inclusão do menu de temas
576   -*/
577   -objmapa.guiaMenu = "guia2";
  338 +i3GEO.inicia();
578 339  
579 340 /*
580   - Variable: objmapa.guiaLegenda
581   -
582   - Define qual div corresponde ao local onde será incluida a legenda em HTML
  341 +var temp = function(){alert("oi");i3GEO.atualiza();}
  342 +i3GEO.php.ligatemas(temp,"","biomashp","sim");
583 343 */
584   -objmapa.guiaLegenda = "guia4";
585 344  
586   -/*
587   - Variable: objmapa.guiaListaMapas
588   -
589   - Define qual div corresponde ao local onde será colocada a lista de links para outros mapas
590   -*/
591   -objmapa.guiaListaMapas = "guia5";
  345 +//esconde a opção de inclusão da escala quando a resolução da tela for muito pequena
  346 +if($i("escala") && i3GEO.parametros.w < 500)
  347 +{$i("escala").style.display="none";}
592 348  
593   -/*
594   - Este é um exemplo de como incluir opções que são executadas
595   - quando o usuário clica no mapa.
596   - Vc pode criar um botao novo, e quando ele for clicado,
597   - definir a variavel 'clicouBotaoTeste'.
598   - O objeto 'funcoesClickMapa' é um array que pode armazenar strigs.
599   -
600   - function teste()
601   - {
602   - g_tipoacao = "";
603   - clicouBotaoTeste = "sim";
604   - if (clicouBotaoTeste == "sim")
605   - {wdocaf("300px","280px",g_locaplic+'/ferramentas/exemplo/index.htm?x='+objposicaocursor.ddx+'&y='+objposicaocursor.ddy,"","","");}
606   - }
607   - objmapa.funcoesClickMapa.push("teste()")
608   -*/
609 349  
610   -/*
611   - Inicializa o mapa
612   -*/
613   -objmapa.inicializa();
614 350  
615 351 function minhafuncao()
616 352 {
617   - wdocaf("300px","300px",g_locaplic+"/ferramentas/minhaferramenta/index.htm","","","Minha Ferramenta");
618   -}
  353 + var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=mudaext&ext=-75 -13 -65 -5&g_sid="+g_sid;
  354 + cpObj.call(p,"",i3GEO.atualiza());
  355 +}
  356 +
  357 +
619 358 </script>
  359 +
620 360 </body>
621 361 </html>
622 362 \ No newline at end of file
... ...
exemplos/mashup7.htm 0 → 100644
... ... @@ -0,0 +1,84 @@
  1 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2 +<html>
  3 +<head>
  4 +<meta http-equiv="Category" content="I3Geo Mapa interativo MMA">
  5 +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
  6 +<title>MMA - Mapa interativo</title>
  7 +<script type="text/javascript" src="../classesjs/i3geonaocompacto.js"></script>
  8 +</head>
  9 +<body style="background-color:rgb(200,200,200);z-index:0;" class=yui-skin-sam >
  10 +
  11 +<div style=position:absolute;left:10px;top:50px;width:200px; >
  12 +<p style=text-align:left;font-size:12pt >Você pode chamar o I3Geo de dentro de uma outra página criando o DIV com id=i3geo<br><br>
  13 +<p style=text-align:left;font-size:12pt >Para chamar a página não é necessário rodar o i3geo/ms_criamapa.php.<br><br>
  14 +<p style=text-align:left;font-size:12pt >Nem todos os elementos precisam estar no mapa.<br><br>
  15 +<p style=text-align:left;font-size:12pt >Você pode esconder ou mudar as ferramentas de lugar.<br><br>
  16 +<div id=legendaDoMapa style='background:white;width:300px;'></div>
  17 +</div>
  18 +
  19 +<div id=i3geo style="left:300px;top:100px;position:absolute" >
  20 +
  21 +<p style=text-align:center;font-size:12pt >Este é um exemplo de inclusão do I3Geo dentro de uma página qualquer.<br><br>
  22 +
  23 +
  24 +<table id='mst' style=display:none width=100% cellspacing='0'>
  25 +<tr style="border:0px"><td style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td></tr>
  26 +<tr>
  27 +<td>
  28 + <img title="insere xy" alt="" src="../imagens/visuaL/default/branco.gif" id='inserexy'/>
  29 + <img title="insere grafico" alt="" src="../imagens/branco.gif" id='inseregrafico'/>
  30 + <img title="texto" alt="" src="../imagens/branco.gif" id='textofid'/>
  31 + <img title="selecao" alt="" src="../imagens/branco.gif" id='selecao'/>
  32 + <img title="confluencias" alt="" src="../imagens/branco.gif" id='confluence'/>
  33 + <img title="busca na wikipedia" alt="" src="../imagens/branco.gif" id='wiki'/>
  34 + <img title="mede" alt="" src="../imagens/branco.gif" id='mede'/>
  35 + <img title="desloca" alt="" src="../imagens/branco.gif" ID='pan'/>
  36 + <img title="zoom" alt="" src="../imagens/branco.gif" id='zoomli'/>
  37 + <img title="aproxima" alt="" src="../imagens/branco.gif" id='zoomiauto'/>
  38 + <img title="afasta" alt="" src="../imagens/branco.gif" id='zoomoauto'/>
  39 + <img title="geral" alt="" src="../imagens/branco.gif" ID='zoomtot'/>
  40 + <img title="google" alt="" src="../imagens/branco.gif" id='google'/>
  41 + <img title="info" alt="" src="../imagens/branco.gif" id='identifica'/>
  42 +</td>
  43 +</tr>
  44 +<tr>
  45 + <td style="vertical-align:top;border-width:0px;">
  46 + <table width="100%" style="vertical-align:top;border-width:0px">
  47 + <tr><td class=verdeclaro id=contemImg >
  48 + <!-- define o tamanho do mapa -->
  49 + <div id=corpoMapa style="background-image:url('../imagens/i3geo1bw.jpg');width:520px;height:300px"></div>
  50 + </td></tr>
  51 + </table>
  52 + </td>
  53 + </tr>
  54 +<tr>
  55 + <td class=tdbranca >
  56 + <table width=100% ><tr>
  57 + <td class=tdbranca ><div id=escala ></div></td>
  58 + <td class=tdbranca ><div id=localizarxy >Aguarde...</div></td>
  59 + <td class=tdbranca ></td>
  60 + </tr></table>
  61 + </td>
  62 +</tr>
  63 +<tr style="border:0px"><td style="background-image:url('../imagens/visual/default/rodape.png');height:10px"></td></tr>
  64 +</table>
  65 +<a style=text-align:center;color:white href="mailto:edmar.moretti@mma.gov.br">Cr&iacute;ticas e sugest&otilde;es</a>
  66 +</center>
  67 +</div>
  68 +
  69 +<script type="text/javascript">
  70 +i3GEO.configura.locaplic = "http://"+window.location.host+"/i3geo";
  71 +i3GEO.configura.mapaRefDisplay = "none"
  72 +i3GEO.configura.iniciaJanelaMensagens = false
  73 +i3GEO.idioma.MOSTRASELETOR = false
  74 +i3GEO.configura.mashuppar = "&mapext=-53 -26 -42 -18";
  75 +i3GEO.configura.visual = "laranja";
  76 +i3GEO.cria()
  77 +i3GEO.inicia();
  78 +i3GEO.mapa.legendaHTML.incluiBotaoLibera = false
  79 +i3GEO.mapa.legendaHTML.cria("legendaDoMapa");
  80 +
  81 +</script>
  82 +
  83 +</body>
  84 +</html>
0 85 \ No newline at end of file
... ...
imagens/visual/default/sprite.png

26.7 KB | W: | H:

26 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
kml.php
... ... @@ -78,32 +78,14 @@ if ($menutemas != &quot;&quot; || is_array($menutemas))
78 78 $nome = mb_convert_encoding($grupo->GTIPO,"auto","auto");
79 79 $desc = mb_convert_encoding($grupo->DTIPO,"auto","auto");
80 80 kml_cabecalho($nome,$desc);
  81 + foreach($grupo->TEMA as $tema)
  82 + {kml_tema($tema);}
81 83 foreach($grupo->SGRUPO as $sgrupo)
82 84 {
83 85 $nome = mb_convert_encoding($sgrupo->SDTIPO,"auto","auto");
84 86 kml_folder($nome);
85 87 foreach($sgrupo->TEMA as $tema)
86   - {
87   - $nome = mb_convert_encoding($tema->TNOME,"auto","auto");
88   - $desc = mb_convert_encoding($tema->TDESC,"auto","auto");
89   - $id = mb_convert_encoding($tema->TID,"auto","auto");
90   - $fonte = mb_convert_encoding($tema->TLINK,"auto","auto");
91   - $tipoa = "";
92   - if($tema->TIPOA)
93   - $tipoa = mb_convert_encoding($tema->TIPOA,"auto","auto");
94   - $ogc = sim;
95   - if($tema->TID)
96   - {
97   - $kml = mb_convert_encoding($tema->KML,"auto","auto");
98   - }
99   - if(strtolower($kml) != "nao" && strtolower($tipoa) != "wms")
100   - {
101   - $fonte = "<a href='$fonte' >Fonte </a>";
102   - $legenda = "<a href='$urli3geo/ogc.php?tema=$id&layer=$id&request=getlegendgraphic&service=wms&format=image/jpeg' >Legenda </a>";
103   - $href = "$urli3geo/ogc.php?tema=$id&amp;width=800&amp;height=800&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;SRS=EPSG:4326&amp;STYLES=&amp;BGCOLOR=0xFFFFFF&amp;FORMAT=image/png&amp;TRANSPARENT=TRUE&amp;layers=$id";
104   - kml_servico($nome,$fonte,$legenda,$desc,$href);
105   - }
106   - }
  88 + {kml_tema($tema);}
107 89 echo "</Folder>\n";
108 90 }
109 91 echo "</Folder>\n";
... ... @@ -178,6 +160,27 @@ function kml_folder($nome)
178 160 echo " <description></description>\n";
179 161 echo " <open>0</open><visibility>0</visibility>\n";
180 162 }
  163 +function kml_tema($tema)
  164 +{
  165 + global $urli3geo;
  166 + $nome = mb_convert_encoding($tema->TNOME,"auto","auto");
  167 + $desc = mb_convert_encoding($tema->TDESC,"auto","auto");
  168 + $id = mb_convert_encoding($tema->TID,"auto","auto");
  169 + $fonte = mb_convert_encoding($tema->TLINK,"auto","auto");
  170 + $tipoa = "";
  171 + if($tema->TIPOA)
  172 + $tipoa = mb_convert_encoding($tema->TIPOA,"auto","auto");
  173 + $ogc = sim;
  174 + if($tema->TID)
  175 + {$kml = mb_convert_encoding($tema->KML,"auto","auto");}
  176 + if(strtolower($kml) != "nao" && strtolower($tipoa) != "wms")
  177 + {
  178 + $fonte = "<a href='$fonte' >Fonte </a>";
  179 + $legenda = "<a href='$urli3geo/ogc.php?tema=$id&layer=$id&request=getlegendgraphic&service=wms&format=image/jpeg' >Legenda </a>";
  180 + $href = "$urli3geo/ogc.php?tema=$id&amp;width=800&amp;height=800&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;SRS=EPSG:4326&amp;STYLES=&amp;BGCOLOR=0xFFFFFF&amp;FORMAT=image/png&amp;TRANSPARENT=TRUE&amp;layers=$id";
  181 + kml_servico($nome,$fonte,$legenda,$desc,$href);
  182 + }
  183 +}
181 184 function kml_servico($nome,$fonte,$legenda,$desc,$href)
182 185 {
183 186 echo " <GroundOverlay>\n";
... ...
menutemas/admin.db
No preview for this file type
ms_criamapa.php
... ... @@ -185,6 +185,7 @@ if (!isset($debug))
185 185 {error_reporting(0);$debug="nao";}
186 186 else
187 187 {error_reporting(E_ALL);$debug="sim";}
  188 +
188 189 /*
189 190 Define o cookie para o idioma da interface
190 191 */
... ...
temas/testeutf8postgis.map 0 → 100644
... ... @@ -0,0 +1,81 @@
  1 +MAP
  2 +SYMBOLSET ../symbols/simbolos.sym
  3 +FONTSET "../symbols/fontes.txt"
  4 + LAYER
  5 + CONNECTION "user=postgres password=postgres dbname=pgutf8 host=localhost port=5432 options='-c client_encoding=LATIN1'"
  6 + CONNECTIONTYPE POSTGIS
  7 + DATA "the_geom FROM (select * FROM biomas) as foo USING UNIQUE gid USING SRID=4291"
  8 + METADATA
  9 + "CLASSE" "SIM"
  10 + "download" "SIM"
  11 + "TEMA" "Teste UTF8 Postgis"
  12 + END
  13 + NAME "testeutf8postgis"
  14 + STATUS OFF
  15 + TEMPLATE "none.htm"
  16 + TYPE POLYGON
  17 + UNITS METERS
  18 + CLASS
  19 + NAME "Pantanal"
  20 + EXPRESSION ('[id]'eq'6')
  21 + STYLE
  22 + ANGLE 360
  23 + COLOR 196 185 103
  24 + OPACITY 100
  25 + SYMBOL 0
  26 + END
  27 + END
  28 + CLASS
  29 + NAME "Pampa"
  30 + EXPRESSION ('[id]'eq'5')
  31 + STYLE
  32 + ANGLE 360
  33 + COLOR 88 104 151
  34 + OPACITY 100
  35 + SYMBOL 0
  36 + END
  37 + END
  38 + CLASS
  39 + NAME "Mata atlântica"
  40 + EXPRESSION ('[id]'eq'4')
  41 + STYLE
  42 + ANGLE 360
  43 + COLOR 26 106 246
  44 + OPACITY 100
  45 + SYMBOL 0
  46 + END
  47 + END
  48 + CLASS
  49 + NAME "Cerrado"
  50 + EXPRESSION ('[id]'eq'3')
  51 + STYLE
  52 + ANGLE 360
  53 + COLOR 192 99 154
  54 + OPACITY 100
  55 + SYMBOL 0
  56 + END
  57 + END
  58 + CLASS
  59 + NAME "Caatinga"
  60 + EXPRESSION ('[id]'eq'2')
  61 + STYLE
  62 + ANGLE 360
  63 + COLOR 150 18 194
  64 + OPACITY 100
  65 + SYMBOL 0
  66 + END
  67 + END
  68 + CLASS
  69 + NAME "Amazônia"
  70 + EXPRESSION ('[id]'eq'1')
  71 + STYLE
  72 + ANGLE 360
  73 + COLOR 155 8 136
  74 + OPACITY 100
  75 + SYMBOL 0
  76 + END
  77 + END
  78 + END
  79 +
  80 +END
  81 +
... ...