<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="MSHTML 8.00.6001.19120">
</head>
<body>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="317151208-23092011">Hi,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="317151208-23092011"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="317151208-23092011">You perhaps&nbsp;want to achieve a map presenting&nbsp;the&nbsp;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">http://www.openstreetmap.org/?lat=59&amp;lon=-39&amp;zoom=1&amp;layers=M</a>?&nbsp; 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/">http://spatialreference.org/ref/epsg/3395/</a>&nbsp;and values outside the value range are invalid. I have no idea about how you could get your map out from WMS.&nbsp; Could you consider composing&nbsp;it from
 pieces somehow?</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="317151208-23092011"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="317151208-23092011"></span></font><font color="#0000ff" size="2" face="Arial"><span class="317151208-23092011">-Jukka Rahkonen-</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="317151208-23092011"></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="317151208-23092011"></span></font>&nbsp;</div>
<div dir="ltr" align="left">
<hr tabindex="-1">
</div>
<div dir="ltr" align="left"><font size="2" face="Tahoma"><b>Lähettäjä:</b> mapserver-users-bounces@lists.osgeo.org [mailto:mapserver-users-bounces@lists.osgeo.org]
<b>Puolesta </b>fred p<br>
<b>Lähetetty:</b> 23. syyskuuta 2011 11:10<br>
<b>Vastaanottaja:</b> mapserver-users@lists.osgeo.org<br>
<b>Aihe:</b> [mapserver-users] Re: problem with mercator projection<br>
</font><br>
</div>
<blockquote style="BORDER-LEFT: #0000ff 2px solid; 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">mapoubelle22@gmail.com</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; 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>
&nbsp; EXTENT -180 -90 180 90<br>
&nbsp; IMAGECOLOR 255 255 255<br>
&nbsp; IMAGETYPE agg<br>
&nbsp; STATUS ON<br>
<br>
&nbsp; OUTPUTFORMAT<br>
&nbsp;&nbsp;&nbsp; NAME &quot;agg&quot;<br>
&nbsp;&nbsp;&nbsp; MIMETYPE &quot;image/png&quot;<br>
&nbsp;&nbsp;&nbsp; DRIVER &quot;AGG/PNG&quot;<br>
&nbsp;&nbsp;&nbsp; EXTENSION &quot;png&quot;<br>
&nbsp;&nbsp;&nbsp; IMAGEMODE &quot;RGBA&quot;<br>
&nbsp;&nbsp;&nbsp; TRANSPARENT TRUE<br>
&nbsp;&nbsp;&nbsp; FORMATOPTION &quot;INTERLACE=false&quot;<br>
&nbsp; END<br>
<br>
&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp; &quot;init=epsg:4326&quot;<br>
&nbsp; END<br>
<br>
&nbsp; WEB<br>
&nbsp;&nbsp;&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;wms_srs&quot;&nbsp;&nbsp;&nbsp; &quot;epsg:4326 epsg:3395 epsg:900913 epsg:3995&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;OWS_ENABLE_REQUEST&quot;&nbsp;&nbsp;&nbsp; &quot;*&quot;<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp; END<br>
<br>
&nbsp; LAYER<br>
&nbsp;&nbsp;&nbsp; DATA &quot;/tmp/world.tif&quot;<br>
&nbsp;&nbsp;&nbsp; NAME &quot;countries&quot;<br>
&nbsp;&nbsp;&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;init=epsg:4326&quot;<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; STATUS ON<br>
&nbsp;&nbsp;&nbsp; TYPE RASTER<br>
&nbsp; 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>
&nbsp;&nbsp;&nbsp; DATUM[&quot;WGS_1984&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPHEROID[&quot;WGS 84&quot;,6378137,298.257223563,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],<br>
&nbsp;&nbsp;&nbsp; PRIMEM[&quot;Greenwich&quot;,0],<br>
&nbsp;&nbsp;&nbsp; UNIT[&quot;degree&quot;,0.0174532925199433],<br>
&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]<br>
Origin = (-180.000000000000000,90.000000000000000)<br>
Pixel Size = (0.360000000000000,-0.360000000000000)<br>
Metadata:<br>
&nbsp; TIFFTAG_DOCUMENTNAME=/tmp/world.tif<br>
&nbsp; TIFFTAG_XRESOLUTION=72<br>
&nbsp; TIFFTAG_YRESOLUTION=72<br>
&nbsp; TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)<br>
&nbsp; AREA_OR_POINT=Area<br>
Image Structure Metadata:<br>
&nbsp; INTERLEAVE=BAND<br>
Corner Coordinates:<br>
Upper Left&nbsp; (-180.0000000,&nbsp; 90.0000000) (180d 0'0.00&quot;W, 90d 0'0.00&quot;N)<br>
Lower Left&nbsp; (-180.0000000, -90.0000000) (180d 0'0.00&quot;W, 90d 0'0.00&quot;S)<br>
Upper Right ( 180.0000000,&nbsp; 90.0000000) (180d 0'0.00&quot;E, 90d 0'0.00&quot;N)<br>
Lower Right ( 180.0000000, -90.0000000) (180d 0'0.00&quot;E, 90d 0'0.00&quot;S)<br>
Center&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (&nbsp;&nbsp; 0.0000000,&nbsp;&nbsp; 0.0000000) (&nbsp; 0d 0'0.01&quot;E,&nbsp; 0d 0'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>
</body>
</html>