Hi,<br>I&#39;am no sure I understand the question.<br><br>The WMS server renders just one layer for a very close scale. From 5000 and lower. Depending on the zone you want to be drawn you have to send the correct epsg. Otherwise no image is drawn.<br>
is that where you where asking?<br><br><div class="gmail_quote">2009/4/26 Roald de Wit <span dir="ltr">&lt;<a href="mailto:roald.dewit@lisasoft.com">roald.dewit@lisasoft.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Toni,<br>
<br>
Can you tell me how this WMS server works (the one that expects different projections based on the area of Spain that you&#39;re looking at)?<br>
Is it one layer for the whole country or 3 different layers that you would request (1 layer for every projection/region)? I&#39;d be surprised if it was 1 layer.<br>
<br>
Regards, Roald<br>
<br>
toni hernández wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Hi,<br>
<br>
thanks for the advise.<br>
Now at least I have two different possibilities.<br>
<br>
The other one I was thinking about is reloading the html page with a new parameter. This new parameter should be used to define the new projection when setting the map. The only problem is that I have to be comparing the coordinates with every new zoom or pan.<br>

<br>
<br>
<br>
<br></div>
2009/4/25 Roald de Wit &lt;<a href="mailto:roald.dewit@lisasoft.com" target="_blank">roald.dewit@lisasoft.com</a> &lt;mailto:<a href="mailto:roald.dewit@lisasoft.com" target="_blank">roald.dewit@lisasoft.com</a>&gt;&gt;<div class="im">
<br>
<br>
    Hi Toni,<br>
<br>
    OpenLayers cannot combine WMS layers with different projections<br>
    nor can it easily switch projections, certainly not on the fly<br>
    based on the region you are viewing!<br>
    What I advise you to do is the following if you have no control<br>
    over these WMS servers and cannot have them serve all images in<br>
    one projection: have MapServer act as a reprojecting proxy for<br>
    you. MapServer can act as a WMS client and reproject the imagery<br>
    into the projection you want. This page describes how to do this: [1].<br>
<br>
    If you need more assistance with setting up or configuring<br>
    MapServer I advise you to ask their mailing list.<br>
<br>
    I hope this helps.<br>
<br>
    Regards, Roald<br>
<br>
    [1] <a href="http://mapserver.org/ogc/wms_client.html" target="_blank">http://mapserver.org/ogc/wms_client.html</a><br>
<br>
<br>
    toni hernández wrote:<br>
<br>
        hi,<br>
<br>
        I have a map that gets some WMS layers from two different<br>
        servers all over spain.<br>
<br>
        There is one wms server that needs a concrete epsg parameter<br>
        (23029, 23030 or 23031) depending on the zone of spain. This<br>
        server does not accept epsg:4326.<br>
<br>
        So dependig on the zone of the map that is being displaid I<br>
        need to change the WMS layer projection.<br>
        is this possible?<br>
<br>
<br>
<br>
<br>
</div></blockquote>
<br>
</blockquote></div><br>