Hello !<br><div class="gmail_quote"><div><div class="h5"><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>