Thanks to Jukka for this first input.<br><div class="gmail_quote">The given example is similar to what I want to get.<br>Rendering the image in separate tiles could be an alternative but for some reasons I would prefer get the whole image within a single call to the server.<br>

Anybody has got an idea ?<br><font color="#888888">Fred</font><div><div></div><div class="h5"><br><br><br><div class="gmail_quote">2011/9/23 Rahkonen Jukka <span dir="ltr">&lt;<a href="mailto:Jukka.Rahkonen@mmmtike.fi" target="_blank">Jukka.Rahkonen@mmmtike.fi</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<u></u>





<div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>Hi,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>You perhaps want to achieve a map presenting the whole world once and then some extra from the second round in the margins like
<a href="http://www.openstreetmap.org/?lat=59&amp;lon=-39&amp;zoom=1&amp;layers=M" target="_blank">http://www.openstreetmap.org/?lat=59&amp;lon=-39&amp;zoom=1&amp;layers=M</a><span style="padding-right: 16px; width: 16px; min-height: 16px;"></span>?  It might well be that the transformation functions consider that for EPSG:3395 the maximum values really are the bounds
 reported at <a href="http://spatialreference.org/ref/epsg/3395/" target="_blank">http://spatialreference.org/ref/epsg/3395/</a><span style="padding-right: 16px; width: 16px; min-height: 16px;"></span> and values outside the value range are invalid. I have no idea about how you could get your map out from WMS.  Could you consider composing it from
 pieces somehow?</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font><font color="#0000ff" face="Arial" size="2"><span>-Jukka Rahkonen-</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div dir="ltr" align="left">
<hr>
</div>
<div dir="ltr" align="left"><font face="Tahoma" size="2"><b>Lähettäjä:</b> <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>]
<b>Puolesta </b>fred p<br>
<b>Lähetetty:</b> 23. syyskuuta 2011 11:10<br>
<b>Vastaanottaja:</b> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<b>Aihe:</b> [mapserver-users] Re: problem with mercator projection<br>
</font><br>
</div><div><div></div><div>
<blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div></div>
Hello<br>
Nobody has got an idea whether I am wrong somewhere or there is a problem in the image or ... ?<br>
I add the result is OK in EPSG:4326 whatever the bbox is and it is OK too in EPSG:3395 provided the extent longitude is smaller than 360°. However when it is higher...<br>
Thanks in advance<br>
<br>
<div class="gmail_quote">2011/9/21 fred p <span dir="ltr">&lt;<a href="mailto:mapoubelle22@gmail.com" target="_blank">mapoubelle22@gmail.com</a>&gt;</span><br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">
Hello !<br>
<div class="gmail_quote">
<div>
<div>
<div class="gmail_quote">
<div>
<div>
<div class="gmail_quote">
<div>
<div>
<div class="gmail_quote">
<div>
<div>
<div class="gmail_quote">
<div>
<div>
<div class="gmail_quote">
<div><br>
I am trying to serve an image in Mercator projection (EPSG:3395) with an extent larger than &quot;360° in longitude&quot; but I get a truncated and reversed in longitude image.<br>
Do I make a mistake somewhere?<br>
Thanks for your help<br>
<br>
</div>
The mapfile content and the gdalinfo output on the original image are given below.
<div>
<div></div>
<div><br>
<br>
Mapserver version: 6.0.1<br>
<br>
Call to mapserver:<br>
/path/to/mapserv -nh &quot;QUERY_STRING=map=/tmp/world.</div>
</div>
<div>
<div>
<div></div>
<div>map&amp;service=wms&amp;LAYERS=countries&amp;FORMAT=image/png&amp;SERVICE=WMS&amp;VERSION=1.3.0&amp;REQUEST=GetMap&amp;STYLES=&amp;SRS=epsg:3395&amp;BBOX=-26080550.098232,-15000000,26080550.098232,15000000&amp;WIDTH=885&amp;HEIGHT=509&quot; &gt; foo.png<br>


<br>
Content of the mapfile:<br>
MAP<br>
  EXTENT -180 -90 180 90<br>
  IMAGECOLOR 255 255 255<br>
  IMAGETYPE agg<br>
  STATUS ON<br>
<br>
  OUTPUTFORMAT<br>
    NAME &quot;agg&quot;<br>
    MIMETYPE &quot;image/png&quot;<br>
    DRIVER &quot;AGG/PNG&quot;<br>
    EXTENSION &quot;png&quot;<br>
    IMAGEMODE &quot;RGBA&quot;<br>
    TRANSPARENT TRUE<br>
    FORMATOPTION &quot;INTERLACE=false&quot;<br>
  END<br>
<br>
  PROJECTION<br>
    &quot;init=epsg:4326&quot;<br>
  END<br>
<br>
  WEB<br>
    METADATA<br>
      &quot;wms_srs&quot;    &quot;epsg:4326 epsg:3395 epsg:900913 epsg:3995&quot;<br>
      &quot;OWS_ENABLE_REQUEST&quot;    &quot;*&quot;<br>
    END<br>
  END<br>
<br>
  LAYER<br>
    DATA &quot;/tmp/world.tif&quot;<br>
    NAME &quot;countries&quot;<br>
    PROJECTION<br>
      &quot;init=epsg:4326&quot;<br>
    END<br>
    STATUS ON<br>
    TYPE RASTER<br>
  END<br>
<br>
END<br>
<br>
</div>
</div>
Output of gdalinfo command:<br>
$ gdalinfo /tmp/world.tif <br>
Driver: GTiff/GeoTIFF<br>
Files: /tmp/world.tif<br>
Size is 1000, 500<br>
Coordinate System is:<br>
GEOGCS[&quot;WGS 84&quot;,<br>
    DATUM[&quot;WGS_1984&quot;,<br>
        SPHEROID[&quot;WGS 84&quot;,6378137,298.257223563,<br>
            AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],<br>
        AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],<br>
    PRIMEM[&quot;Greenwich&quot;,0],<br>
    UNIT[&quot;degree&quot;,0.0174532925199433],<br>
    AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]<br>
Origin = (-180.000000000000000,90.000000000000000)<br>
Pixel Size = (0.360000000000000,-0.360000000000000)<br>
Metadata:<br>
  TIFFTAG_DOCUMENTNAME=/tmp/world.tif<br>
  TIFFTAG_XRESOLUTION=72<br>
  TIFFTAG_YRESOLUTION=72<br>
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)<br>
  AREA_OR_POINT=Area<br>
Image Structure Metadata:<br>
  INTERLEAVE=BAND<br>
Corner Coordinates:<br>
Upper Left  (-180.0000000,  90.0000000) (180d 0&#39;0.00&quot;W, 90d 0&#39;0.00&quot;N)<br>
Lower Left  (-180.0000000, -90.0000000) (180d 0&#39;0.00&quot;W, 90d 0&#39;0.00&quot;S)<br>
Upper Right ( 180.0000000,  90.0000000) (180d 0&#39;0.00&quot;E, 90d 0&#39;0.00&quot;N)<br>
Lower Right ( 180.0000000, -90.0000000) (180d 0&#39;0.00&quot;E, 90d 0&#39;0.00&quot;S)<br>
Center      (   0.0000000,   0.0000000) (  0d 0&#39;0.01&quot;E,  0d 0&#39;0.01&quot;N)<br>
Band 1 Block=1000x8 Type=Byte, ColorInterp=Gray<br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</blockquote>
</div>
<br>
</blockquote>
</div></div></div>

</blockquote></div><br>
</div></div></div><br>