Caro Oscar<br><br>O sistema EPSG:20791 utiliza a projecção de Gauss com o meridiano central na longitude aproximada de 8º W. Normalmente a projecção de Gauss não é usada a mais de 3º de longitude do meridiano central. Os Açores ficam muito para lá disso, o que explica essa deformação.<br>
Cumprimentos<br><br>José A. Gonçalves<br><br><br><br><div class="gmail_quote">Em 24 de junho de 2010 14:02, Òscar Vidal Calbet <span dir="ltr"><<a href="mailto:oscarblo@gmail.com">oscarblo@gmail.com</a>></span> escreveu:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<p style="margin-bottom: 0cm;">Boa tarde,<br></p><p style="margin-bottom: 0cm;"></p><p style="margin-bottom: 0cm;">Estou a utilizar mapas da área do
Arquipélago dos Açores com EPSG:20791. Publiquei estes mapas no Geoserver. O
problema chega quando intento visualizar estes serviços a traves de
OpenLayers, tanto no "Layer Preview" ou usando código
próprio, pois o mapa se mostra com uma rotação aprox. de 20º no
sentido dos ponteiros do relógio. Quando visualizo o mesmo serviço
desde outro cliente, uDig, o mapa é mostrado sem nenhum tipo de
rotação.
</p>
<p style="margin-bottom: 0cm;">
</p>
<p style="margin-bottom: 0cm;">Desde já agradeço qualquer dica que me ajude encontrar a origem do problema. </p><p style="margin-bottom: 0cm;"><br></p>Abraço,<br>Òscar<br><br><br>Código OpenLayers<br>==================================================================<br>
<p style="margin-bottom: 0cm;" align="LEFT"><font face="Courier New, monospace"><font size="2">        
<font color="#0000c0"><font style="font-size: 8pt;" size="1"><b>var</b></font></font><font style="font-size: 8pt;" size="1">
</font><font color="#000000"><font style="font-size: 8pt;" size="1">bounds</font></font><font style="font-size: 8pt;" size="1">
</font><font color="#5c5c5c"><font style="font-size: 8pt;" size="1">=</font></font><font style="font-size: 8pt;" size="1">
</font><font color="#0000c0"><font style="font-size: 8pt;" size="1"><b>new</b></font></font><font style="font-size: 8pt;" size="1">
</font><font color="#000000"><font style="font-size: 8pt;" size="1">OpenLayers</font></font><font color="#5c5c5c"><font style="font-size: 8pt;" size="1">.</font></font><font color="#000000"><font style="font-size: 8pt;" size="1">Bounds</font></font><font color="#5c5c5c"><font style="font-size: 8pt;" size="1">(</font></font><font style="font-size: 8pt;" size="1">
</font><font color="#004080"><font style="font-size: 8pt;" size="1">-1670000</font></font><font color="#5c5c5c"><font style="font-size: 8pt;" size="1">,</font></font><font style="font-size: 8pt;" size="1">
</font><font color="#004080"><font style="font-size: 8pt;" size="1">250000</font></font><font color="#5c5c5c"><font style="font-size: 8pt;" size="1">,</font></font><font style="font-size: 8pt;" size="1">
</font><font color="#004080"><font style="font-size: 8pt;" size="1">-1400000</font></font><font color="#5c5c5c"><font style="font-size: 8pt;" size="1">,</font></font><font style="font-size: 8pt;" size="1">
</font><font color="#004080"><font style="font-size: 8pt;" size="1">500000</font></font><font style="font-size: 8pt;" size="1">
</font><font color="#5c5c5c"><font style="font-size: 8pt;" size="1">);</font></font></font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT"><font face="Courier New, monospace"><font style="font-size: 8pt;" size="1">                
</font></font>
</p>
<p style="margin-bottom: 0cm;" align="LEFT"> <font face="Courier New, monospace"><font style="font-size: 8pt;" size="1"><font color="#0000c0"><b>var</b></font>
<font color="#000000">options</font> <font color="#5c5c5c">=</font> <font color="#5c5c5c">{</font></font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT">
<font face="Courier New, monospace"><font style="font-size: 8pt;" size="1"><font color="#000000">controls</font><font color="#5c5c5c">:</font>
<font color="#5c5c5c">[],</font></font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT">
<font face="Courier New, monospace"><font style="font-size: 8pt;" size="1"><font color="#000000">maxExtent</font><font color="#5c5c5c">:</font>
<font color="#000000">bounds</font><font color="#5c5c5c">,</font></font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT">
<font face="Courier New, monospace"><font style="font-size: 8pt;" size="1"><font color="#000000">maxResolution</font><font color="#5c5c5c">:</font>
<font color="#004080">450.0</font><font color="#5c5c5c">,</font></font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT">
<font face="Courier New, monospace"><font style="font-size: 8pt;" size="1"><font color="#000000">projection</font><font color="#5c5c5c">:</font>
<font color="#005c00">"EPSG:20791"</font><font color="#5c5c5c">,</font></font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT"> <font face="Courier New, monospace"><font style="font-size: 8pt;" size="1"><font color="#000000">units</font><font color="#5c5c5c">:</font>
<font color="#005c00">'m'</font></font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT"> <font face="Courier New, monospace"><font style="font-size: 8pt;" size="1"><font color="#5c5c5c">};</font></font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT"><font face="Courier New, monospace"><font style="font-size: 8pt;" size="1">                                </font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT"> <font face="Courier New, monospace"><font style="font-size: 8pt;" size="1"><font color="#000000">map</font>
<font color="#5c5c5c">=</font> <font color="#0000c0"><b>new</b></font>
<font color="#000000">OpenLayers</font><font color="#5c5c5c">.</font><font color="#000000">Map</font><font color="#5c5c5c">(</font><font color="#005c00">'map'</font><font color="#5c5c5c">,</font>
<font color="#000000">options</font><font color="#5c5c5c">);</font></font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT"><font face="Courier New, monospace"><font style="font-size: 8pt;" size="1">                                                </font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT">
</p>
<p style="margin-bottom: 0cm;" align="LEFT"><font face="Courier New, monospace"><font style="font-size: 8pt;" size="1">                        
                </font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT"><font color="#0000c0">
<font face="Courier New, monospace"><font style="font-size: 8pt;" size="1"><b>var</b></font>
<font color="#000000">azoresCentral</font> <font color="#5c5c5c">=</font>
<font color="#0000c0"><b>new</b></font> <font color="#000000">OpenLayers</font><font color="#5c5c5c">.</font><font color="#000000">Layer</font><font color="#5c5c5c">.</font><font color="#000000">WMS</font><font color="#5c5c5c">(</font></font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT"> <font face="Courier New, monospace"><font style="font-size: 8pt;" size="1"><font color="#005c00">"State"</font><font color="#5c5c5c">,</font>
</font></font>
</p>
<p style="margin-bottom: 0cm;" align="LEFT">
<font face="Courier New, monospace"><font style="font-size: 8pt;" size="1"><font color="#005c00">"/geoserver/wms"</font><font color="#5c5c5c">,</font></font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT"> <font face="Courier New, monospace"><font style="font-size: 8pt;" size="1"><font color="#5c5c5c">{</font><font color="#000000">layers</font><font color="#5c5c5c">:</font>
<font color="#005c00">'azores:AzoresCentral'</font><font color="#5c5c5c">,</font></font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT"><font face="Courier New, monospace"><font style="font-size: 8pt;" size="1">                                
<font color="#000000">projection</font><font color="#5c5c5c">:</font>
<font color="#0000c0"><b>new</b></font>
<font color="#000000">OpenLayers</font><font color="#5c5c5c">.</font><font color="#000000">Projection</font><font color="#5c5c5c">(</font><font color="#005c00">"EPSG:20791"</font><font color="#5c5c5c">),</font></font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT"><font face="Courier New, monospace"><font style="font-size: 8pt;" size="1">                                
<font color="#000000">displayProjection</font><font color="#5c5c5c">:</font>
<font color="#0000c0"><b>new</b></font>
<font color="#000000">OpenLayers</font><font color="#5c5c5c">.</font><font color="#000000">Projection</font><font color="#5c5c5c">(</font><font color="#005c00">"EPSG:20791"</font><font color="#5c5c5c">),</font></font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT"> <font face="Courier New, monospace"><font style="font-size: 8pt;" size="1"><font color="#000000">format</font><font color="#5c5c5c">:</font>
<font color="#005c00">'image/png'</font><font color="#5c5c5c">}</font></font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT"> <font face="Courier New, monospace"><font style="font-size: 8pt;" size="1"><font color="#5c5c5c">);</font></font></font></p>
<p style="margin-bottom: 0cm;" align="LEFT">
</p>
<p style="margin-bottom: 0cm;" align="LEFT">
<font style="font-size: 8pt;" size="1"><font color="#000000"><font face="Courier New, monospace">map</font></font><font color="#5c5c5c"><font face="Courier New, monospace">.</font></font><font color="#000000"><font face="Courier New, monospace">addLayer</font></font><font color="#5c5c5c"><font face="Courier New, monospace">(</font></font><font color="#000000"><font face="Courier New, monospace">azoresCentral</font></font><font color="#5c5c5c"><font face="Courier New, monospace">);</font></font>
</font>
</p>
<br>_______________________________________________<br>
Portugal mailing list<br>
<a href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/portugal" target="_blank">http://lists.osgeo.org/mailman/listinfo/portugal</a><br>
<br></blockquote></div><br>