<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello,</div><div><br></div><div>I have a number of geotiffs which are currently using epsg:4326 and I would like to output a region using epsg:3857.</div><div><br></div><div>I am new to mapserver but from what I have read the way achieve this is by setting the projection of the map to epsg:3857 and the layer to epsg:4326.</div><div><br></div><div>When I set the projections to the same value I get the output I expect without a problem, if I set the projections to different values I do not get an error but the output is blank.</div><div><br></div><div>To make life more complicated I am using mapscript via the Java swig interface, the version of mapserver I am using is mapserver 6.1.2.1 which I built from source.</div><div><br></div><div>If anybody has any advice I would be most grateful.</div><div><br></div><div>David</div><div><br></div><div>- </div><div><br></div><div><div>gdalinfo gives the following information about one of the files:</div><div><br></div><div><div>Driver: GTiff/GeoTIFF</div><div>Files: globcover_n10e005.tif</div><div>Size is 7200, 7200</div><div>Coordinate System is:</div><div>GEOGCS["WGS 84",</div><div> DATUM["WGS_1984",</div><div> SPHEROID["WGS 84",6378137,298.257223563,</div><div> AUTHORITY["EPSG","7030"]],</div><div> AUTHORITY["EPSG","6326"]],</div><div> PRIMEM["Greenwich",0],</div><div> UNIT["degree",0.0174532925199433],</div><div> AUTHORITY["EPSG","4326"]]</div><div>Origin = (5.000000000000000,9.999999999999615)</div><div>Pixel Size = (0.000138888888889,-0.000138888888889)</div><div>Metadata:</div><div> DataType=Generic</div><div> AREA_OR_POINT=Area</div><div>Image Structure Metadata:</div><div> INTERLEAVE=BAND</div><div>Corner Coordinates:</div><div>Upper Left ( 5.0000000, 10.0000000) ( 5d 0'0.00"E, 10d 0'0.00"N)</div><div>Lower Left ( 5.0000000, 9.0000000) ( 5d 0'0.00"E, 9d 0'0.00"N)</div><div>Upper Right ( 6.0000000, 10.0000000) ( 6d 0'0.00"E, 10d 0'0.00"N)</div><div>Lower Right ( 6.0000000, 9.0000000) ( 6d 0'0.00"E, 9d 0'0.00"N)</div><div>Center ( 5.5000000, 9.5000000) ( 5d30'0.00"E, 9d30'0.00"N)</div><div>Band 1 Block=7200x128 Type=Byte, ColorInterp=Gray</div><div> NoData Value=0</div></div></div><div><br></div><div>-</div><div><br></div><div>The map file is built programmatically, the following is the result of saving the map object to file:</div><div><br></div><div><div>MAP</div><div> EXTENT 5 9.9 5.1 10</div><div> IMAGETYPE "png"</div><div> NAME "blank"</div><div> SIZE 800 800</div><div> STATUS ON</div><div> UNITS DD</div><div><br></div><div> OUTPUTFORMAT</div><div> NAME "png"</div><div> MIMETYPE "image/png"</div><div> DRIVER "AGG/PNG"</div><div> EXTENSION "png"</div><div> IMAGEMODE RGB</div><div> TRANSPARENT FALSE</div><div> END # OUTPUTFORMAT</div><div><br></div><div> PROJECTION</div><div> "init=epsg:3857"</div><div> END # PROJECTION</div><div> LEGEND</div><div> KEYSIZE 20 10</div><div> KEYSPACING 5 5</div><div> LABEL</div><div> SIZE MEDIUM</div><div> OFFSET 0 0</div><div> SHADOWSIZE 1 1</div><div> TYPE BITMAP</div><div> END # LABEL</div><div> STATUS OFF</div><div> END # LEGEND</div><div><br></div><div> QUERYMAP</div><div> SIZE -1 -1</div><div> STATUS OFF</div><div> STYLE HILITE</div><div> END # QUERYMAP</div><div><br></div><div> SCALEBAR</div><div> INTERVALS 4</div><div> LABEL</div><div> SIZE MEDIUM</div><div> OFFSET 0 0</div><div> SHADOWSIZE 1 1</div><div> TYPE BITMAP</div><div> END # LABEL</div><div> SIZE 200 3</div><div> STATUS OFF</div><div> UNITS MILES</div><div> END # SCALEBAR</div><div><br></div><div> WEB</div><div> END # WEB</div><div><br></div><div> LAYER</div><div> DATA "/home/leftworker/data/landcover/lefttiles/n10/globcover_n10e005.tif"</div><div> NAME "n10e005"</div><div> PROJECTION</div><div> "init=epsg:4326"</div><div> END # PROJECTION</div><div> STATUS ON</div><div> TILEITEM "location"</div><div> TYPE RASTER</div><div> UNITS DD</div><div> END # LAYER</div><div><br></div><div>END # MAP</div></div><div><br></div><div><br></div><div><br></div><div><br></div><br><div>
<div><div style="font-size: 12px; ">======================================</div><div style="font-size: 12px; ">Dr David J Power</div><div style="font-size: 12px; ">Research Officer</div><div style="font-size: 12px; "><div>Department of Computer Science</div><div>University of Oxford</div></div><div style="font-size: 12px; ">tel: 01865 283670</div><div style="font-size: 12px; ">email: <a href="mailto:David.Power@cs.ox.ac.uk">David.Power@cs.ox.ac.uk</a></div><div style="font-size: 12px; ">======================================</div></div><div><br></div><br class="Apple-interchange-newline">
</div>
<br></body></html>