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"><<a href="mailto:Jukka.Rahkonen@mmmtike.fi" target="_blank">Jukka.Rahkonen@mmmtike.fi</a>></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&lon=-39&zoom=1&layers=M" target="_blank">http://www.openstreetmap.org/?lat=59&lon=-39&zoom=1&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"><<a href="mailto:mapoubelle22@gmail.com" target="_blank">mapoubelle22@gmail.com</a>></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 "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>
</div></div></div>
</blockquote></div><br>
</div></div></div><br>