<!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> </div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="317151208-23092011">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&lon=-39&zoom=1&layers=M">http://www.openstreetmap.org/?lat=59&lon=-39&zoom=1&layers=M</a>?  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> 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" size="2" face="Arial"><span class="317151208-23092011"></span></font> </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> </div>
<div dir="ltr" align="left"><font color="#0000ff" size="2" face="Arial"><span class="317151208-23092011"></span></font> </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"><<a href="mailto:mapoubelle22@gmail.com">mapoubelle22@gmail.com</a>></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 "360° in longitude" 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 "QUERY_STRING=map=/tmp/world.</div>
</div>
<div>
<div>
<div></div>
<div>map&service=wms&LAYERS=countries&FORMAT=image/png&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&STYLES=&SRS=epsg:3395&BBOX=-26080550.098232,-15000000,26080550.098232,15000000&WIDTH=885&HEIGHT=509" > 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 "agg"<br>
    MIMETYPE "image/png"<br>
    DRIVER "AGG/PNG"<br>
    EXTENSION "png"<br>
    IMAGEMODE "RGBA"<br>
    TRANSPARENT TRUE<br>
    FORMATOPTION "INTERLACE=false"<br>
  END<br>
<br>
  PROJECTION<br>
    "init=epsg:4326"<br>
  END<br>
<br>
  WEB<br>
    METADATA<br>
      "wms_srs"    "epsg:4326 epsg:3395 epsg:900913 epsg:3995"<br>
      "OWS_ENABLE_REQUEST"    "*"<br>
    END<br>
  END<br>
<br>
  LAYER<br>
    DATA "/tmp/world.tif"<br>
    NAME "countries"<br>
    PROJECTION<br>
      "init=epsg:4326"<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["WGS 84",<br>
    DATUM["WGS_1984",<br>
        SPHEROID["WGS 84",6378137,298.257223563,<br>
            AUTHORITY["EPSG","7030"]],<br>
        AUTHORITY["EPSG","6326"]],<br>
    PRIMEM["Greenwich",0],<br>
    UNIT["degree",0.0174532925199433],<br>
    AUTHORITY["EPSG","4326"]]<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'0.00"W, 90d 0'0.00"N)<br>
Lower Left  (-180.0000000, -90.0000000) (180d 0'0.00"W, 90d 0'0.00"S)<br>
Upper Right ( 180.0000000,  90.0000000) (180d 0'0.00"E, 90d 0'0.00"N)<br>
Lower Right ( 180.0000000, -90.0000000) (180d 0'0.00"E, 90d 0'0.00"S)<br>
Center      (   0.0000000,   0.0000000) (  0d 0'0.01"E,  0d 0'0.01"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>