<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19088"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=025142417-28062011>use some image viewer to get information of your 
images.</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=025142417-28062011></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=025142417-28062011></SPAN><FONT 
face=Arial><FONT color=#0000ff><FONT size=2>tile_topleft_remote.png<SPAN 
class=025142417-28062011> is a 8bit image (256 color image), where only 45 
colors used.</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=025142417-28062011></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=025142417-28062011>tile_topleft_local.png is a 24bit image (16,7 Mill. 
colors), where 13274 colors used.</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=025142417-28062011></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=025142417-28062011>The requests ask for map_imagetype=png. So it seems, 
that your mapfiles are different, because the response of the servers delivers a 
different&nbsp;image for the same imagetype. Or do you use&nbsp;different 
MapServer versions?</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=025142417-28062011></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=025142417-28062011></SPAN></FONT></FONT></FONT><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=025142417-28062011>The problem has to be 
an issue with MapServer and not with 
OpenLayers.</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=025142417-28062011></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=025142417-28062011>Arnd</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=025142417-28062011></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT size=2 face=Tahoma><B>Von:</B> kensei3000 
[mailto:kensei3000@yahoo.com] <BR><B>Gesendet:</B> Dienstag, 28. Juni 2011 
04:32<BR><B>An:</B> Arnd Wippermann<BR><B>Cc:</B> 
users@openlayers.org<BR><B>Betreff:</B> Re: AW: [mapserver-users] 
"Low-resolution" raster image problem when usingOpenlayers<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV 
style="BACKGROUND-COLOR: #fff; FONT-FAMILY: arial, helvetica, sans-serif; COLOR: #000; FONT-SIZE: 10pt">
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt"><SPAN>Hi 
Arnd,</SPAN></DIV>
<DIV 
style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt"><SPAN><BR></SPAN></DIV>
<DIV 
style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt"><SPAN>Thanks 
a lot for the tip. I copied the image url of the top-left most tile for both 
local pc and remote server tests.</SPAN></DIV>
<DIV 
style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt"><SPAN>Here is 
what I got:</SPAN></DIV>
<DIV 
style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt"><SPAN><BR></SPAN></DIV>
<DIV><SPAN>
<DIV><FONT class=Apple-style-span size=2>Local:</FONT></DIV>
<DIV><FONT class=Apple-style-span 
size=2>http://localhost/cgi-bin/mapserv?map=%2Fopt%2Fmaps%2Fsandbox%2Fmapserver_openlayers_if%2Fsample.map&amp;layers=sample_raster&amp;mode=map&amp;map_imagetype=png&amp;mapext=-90+0+0+90&amp;imgext=-90+0+0+90&amp;map_size=256+256&amp;imgx=128&amp;imgy=128&amp;imgxy=256+256</FONT></DIV>
<DIV><FONT class=Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=Apple-style-span size=2>Remote:</FONT></DIV>
<DIV><FONT class=Apple-style-span 
size=2>http://remotehost/cgi-bin/mapserv?map=%2Fopt%2Fmaps%2Fsandbox%2Fmapserver_openlayers_if%2Fsample.map&amp;layers=sample_raster&amp;mode=map&amp;map_imagetype=png&amp;mapext=-180+-90+0+90&amp;imgext=-180+-90+0+90&amp;map_size=256+256&amp;imgx=128&amp;imgy=128&amp;imgxy=256+256</FONT></DIV>
<DIV><FONT class=Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=Apple-style-span size=2>The only significant difference of the 
two urls appear to be the 'mapext' and 'imgext' parameters. When I checked the 
resulting images after inputting the urls in the browser, I noticed that the 
tile images had different sizes and positions. I believe this was due to the 
said parameters. I tried changing the 'mapext' and 'imagext' parameters of the 
server test url to match that of the local test url, and indeed the size and 
position of the remote server tile image changed. However, I am still unable to 
figure out what causes the color distortion or "downsampling" of the image in 
the remote server.</FONT></DIV>
<DIV><FONT class=Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=Apple-style-span size=2>For further reference, I've attached 
the tile images I got using the above urls.</FONT></DIV>
<DIV><FONT class=Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=Apple-style-span size=2>Here is the openlayers code I used. It 
is the same for both local and remote server tests except for the host in line 
18.&nbsp;</FONT></DIV>
<DIV><FONT class=Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=Apple-style-span size=2>//sample.html</FONT></DIV>
<DIV><FONT class=Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=Apple-style-span size=2>
<DIV>
<DIV>&nbsp; &nbsp; &nbsp;1<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;</DIV>
<DIV>&nbsp; &nbsp; &nbsp;2<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;&lt;head&gt;</DIV>
<DIV>&nbsp; &nbsp; &nbsp;3<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;&lt;style type="text/css"&gt;</DIV>
<DIV>&nbsp; &nbsp; &nbsp;4<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp; &nbsp;#map {</DIV>
<DIV>&nbsp; &nbsp; &nbsp;5<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;width: 1024px;</DIV>
<DIV>&nbsp; &nbsp; &nbsp;6<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;height: 768px;</DIV>
<DIV>&nbsp; &nbsp; &nbsp;7<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;border: 1px solid black;</DIV>
<DIV>&nbsp; &nbsp; &nbsp;8<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp; &nbsp;}</DIV>
<DIV>&nbsp; &nbsp; &nbsp;9<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;&lt;/style&gt;</DIV>
<DIV>&nbsp; &nbsp; 10<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;&lt;script 
src="http://openlayers.org/dev/lib/OpenLayers.js"&gt;&lt;/script&gt;</DIV>
<DIV>&nbsp; &nbsp; 11<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;&lt;script type="text/javascript"&gt;</DIV>
<DIV>&nbsp; &nbsp; 12<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp; &nbsp;&lt;!--</DIV>
<DIV>&nbsp; &nbsp; 13<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp; &nbsp;var map, layer;</DIV>
<DIV>&nbsp; &nbsp; 14<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN></DIV>
<DIV>&nbsp; &nbsp; 15<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp; &nbsp;function init(){</DIV>
<DIV>&nbsp; &nbsp; 16<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;map = new OpenLayers.Map( 'map' 
);</DIV>
<DIV>&nbsp; &nbsp; 17<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;layer = new 
OpenLayers.Layer.MapServer("World Map",&nbsp;</DIV>
<DIV>&nbsp; &nbsp; 18<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;"http://localhost/cgi-bin/mapserv",</DIV>
<DIV>&nbsp; &nbsp; 19<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;{map: '/opt/maps/sandbox/mapserver_openlayers_if/sample.map', layers: 
'sample_raster'});</DIV>
<DIV>&nbsp; &nbsp; 20<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;map.addLayer(layer);</DIV>
<DIV>&nbsp; &nbsp; 21<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;map.zoomToMaxExtent();</DIV>
<DIV>&nbsp; &nbsp; 22<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp; &nbsp;}</DIV>
<DIV>&nbsp; &nbsp; 23<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp; &nbsp;// --&gt;</DIV>
<DIV>&nbsp; &nbsp; 24<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;&lt;/script&gt;</DIV>
<DIV>&nbsp; &nbsp; 25<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;&lt;/head&gt;</DIV>
<DIV>&nbsp; &nbsp; 26<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;&lt;body onload="init()"&gt;</DIV>
<DIV>&nbsp; &nbsp; 27<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;&lt;div id="map"&gt;&lt;/div&gt;</DIV>
<DIV>&nbsp; &nbsp; 28<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;&lt;/body&gt;</DIV>
<DIV>&nbsp; &nbsp; 29<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&lt;/html&gt;</DIV>
<DIV><BR></DIV></DIV>
<DIV><BR></DIV></FONT></DIV>
<DIV><FONT class=Apple-style-span size=2>And below is the common .map file I 
created with the help of the Quantum GIS Mapserver Export tool.</FONT></DIV>
<DIV><FONT class=Apple-style-span size=2>The raster image has an associated 
World file (.wld) for georeferencing.</FONT></DIV>
<DIV><FONT class=Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=Apple-style-span size=2>
<DIV>&nbsp; &nbsp; &nbsp;1<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN># Map file created from QGIS project file 
/var/maps/sandbox/mapserver_openlayers_if/sample.qgs</DIV>
<DIV>&nbsp; &nbsp; &nbsp;2<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN># Edit this file to customize for your map interface</DIV>
<DIV>&nbsp; &nbsp; &nbsp;3<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN># (Created with PyQgis MapServer Export plugin)</DIV>
<DIV>&nbsp; &nbsp; &nbsp;4<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>MAP</DIV>
<DIV>&nbsp; &nbsp; &nbsp;5<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;NAME "QGIS-MAP"</DIV>
<DIV>&nbsp; &nbsp; &nbsp;6<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;# Map image size</DIV>
<DIV>&nbsp; &nbsp; &nbsp;7<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;SIZE 8180 4930</DIV>
<DIV>&nbsp; &nbsp; &nbsp;8<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;UNITS meters</DIV>
<DIV>&nbsp; &nbsp; &nbsp;9<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN></DIV>
<DIV>&nbsp; &nbsp; 10<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;EXTENT -86.515507 -50.290979 88.076495 48.225271</DIV>
<DIV>&nbsp; &nbsp; 11<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;PROJECTION</DIV>
<DIV>&nbsp; &nbsp; 12<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;'proj=longlat'</DIV>
<DIV>&nbsp; &nbsp; 13<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;'ellps=WGS84'</DIV>
<DIV>&nbsp; &nbsp; 14<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;'towgs84=0,0,0,0,0,0,0'</DIV>
<DIV>&nbsp; &nbsp; 15<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;'no_defs'</DIV>
<DIV>&nbsp; &nbsp; 16<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;END</DIV>
<DIV>&nbsp; &nbsp; 17<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN></DIV>
<DIV>&nbsp; &nbsp; 18<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;# Background color for the map canvas -- change as desired</DIV>
<DIV>&nbsp; &nbsp; 19<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;IMAGECOLOR 255 255 255</DIV>
<DIV>&nbsp; &nbsp; 20<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;IMAGEQUALITY 95</DIV>
<DIV>&nbsp; &nbsp; 21<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;IMAGETYPE jpeg</DIV>
<DIV>&nbsp; &nbsp; 22<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN></DIV>
<DIV>&nbsp; &nbsp; 23<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;# Legend</DIV>
<DIV>&nbsp; &nbsp; 24<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;LEGEND</DIV>
<DIV>&nbsp; &nbsp; 25<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp;IMAGECOLOR 255 255 255</DIV>
<DIV>&nbsp; &nbsp; 26<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;STATUS ON</DIV>
<DIV>&nbsp; &nbsp; 27<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;KEYSIZE 18 12</DIV>
<DIV>&nbsp; &nbsp; 28<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;LABEL</DIV>
<DIV>&nbsp; &nbsp; 29<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp;TYPE BITMAP</DIV>
<DIV>&nbsp; &nbsp; 30<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp;SIZE MEDIUM</DIV>
<DIV>&nbsp; &nbsp; 31<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp; &nbsp;COLOR 0 0 89</DIV>
<DIV>&nbsp; &nbsp; 32<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;END</DIV>
<DIV>&nbsp; &nbsp; 33<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;END</DIV>
<DIV>&nbsp; &nbsp; 34<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN></DIV>
<DIV>&nbsp; &nbsp; 35<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;# Web interface definition. Only the template parameter</DIV>
<DIV>&nbsp; &nbsp; 36<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;# is required to display a map. See MapServer documentation</DIV>
<DIV>&nbsp; &nbsp; 37<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;WEB</DIV>
<DIV>&nbsp; &nbsp; 38<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;# Set IMAGEPATH to the path where MapServer should</DIV>
<DIV>&nbsp; &nbsp; 39<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;# write its output.</DIV>
<DIV>&nbsp; &nbsp; 40<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;IMAGEPATH '/tmp/'</DIV>
<DIV>&nbsp; &nbsp; 41<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN></DIV>
<DIV>&nbsp; &nbsp; 42<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;# Set IMAGEURL to the url that points to IMAGEPATH</DIV>
<DIV>&nbsp; &nbsp; 43<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;# as defined in your web server configuration</DIV>
<DIV>&nbsp; &nbsp; 44<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;IMAGEURL '/tmp/'</DIV>
<DIV>&nbsp; &nbsp; 45<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN></DIV>
<DIV>&nbsp; &nbsp; 46<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;#Scale range at which web interface will operate</DIV>
<DIV>&nbsp; &nbsp; 47<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;# Template and header/footer settings</DIV>
<DIV>&nbsp; &nbsp; 48<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;# Only the template parameter is required to display a map. 
See MapServer documentation</DIV>
<DIV>&nbsp; &nbsp; 49<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;TEMPLATE 'fooOnlyForWMSGetFeatureInfo'</DIV>
<DIV>&nbsp; &nbsp; 50<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;END</DIV>
<DIV>&nbsp; &nbsp; 51<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN></DIV>
<DIV>&nbsp; &nbsp; 52<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;LAYER</DIV>
<DIV>&nbsp; &nbsp; 53<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;NAME 'sample_raster'</DIV>
<DIV>&nbsp; &nbsp; 54<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;TYPE RASTER</DIV>
<DIV>&nbsp; &nbsp; 55<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;DUMP true</DIV>
<DIV>&nbsp; &nbsp; 56<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;TEMPLATE fooOnlyForWMSGetFeatureInfo</DIV>
<DIV>&nbsp; &nbsp; 57<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;EXTENT -86.515507 -50.290979 88.076495 48.225271</DIV>
<DIV>&nbsp; &nbsp; 58<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;DATA 'sec_field.jpg'</DIV>
<DIV>&nbsp; &nbsp; 59<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;STATUS DEFAULT</DIV>
<DIV>&nbsp; &nbsp; 60<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;TRANSPARENCY 100</DIV>
<DIV>&nbsp; &nbsp; 61<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;PROJECTION</DIV>
<DIV>&nbsp; &nbsp; 62<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;'proj=longlat'</DIV>
<DIV>&nbsp; &nbsp; 63<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;'ellps=WGS84'</DIV>
<DIV>&nbsp; &nbsp; 64<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;'towgs84=0,0,0,0,0,0,0'</DIV>
<DIV>&nbsp; &nbsp; 65<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;'no_defs'</DIV>
<DIV>&nbsp; &nbsp; 66<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp; &nbsp;END</DIV>
<DIV>&nbsp; &nbsp; 67<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>&nbsp;END</DIV>
<DIV>&nbsp; &nbsp; 68<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN></DIV>
<DIV>&nbsp; &nbsp; 69<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span> 
</SPAN>END</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV></FONT></DIV>
<DIV><FONT class=Apple-style-span size=2>Hope you could provide further 
assistance.</FONT></DIV>
<DIV><FONT class=Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=Apple-style-span size=2>Ken</FONT></DIV>
<DIV><FONT class=Apple-style-span size=2><BR></FONT></DIV></SPAN></DIV>
<DIV 
style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt"><BR></DIV>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt">
<DIV 
style="FONT-FAMILY: 'times new roman', 'new york', times, serif; FONT-SIZE: 12pt"><FONT 
size=2 face=Arial>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Arnd Wippermann 
&lt;arnd.wippermann@web.de&gt;<BR><B><SPAN 
style="FONT-WEIGHT: bold">To:</SPAN></B> 'kensei3000' 
&lt;kensei3000@yahoo.com&gt;<BR><B><SPAN 
style="FONT-WEIGHT: bold">Cc:</SPAN></B> users@openlayers.org<BR><B><SPAN 
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, June 28, 2011 1:53 
AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> AW: 
[mapserver-users] "Low-resolution" raster image problem when 
usingOpenlayers<BR></FONT><BR>
<DIV id=yiv523246233>
<DIV dir=ltr align=left><SPAN class=yiv523246233984204717-27062011><FONT 
color=#0000ff size=2 face=Arial>hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=yiv523246233984204717-27062011><FONT 
color=#0000ff size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=yiv523246233984204717-27062011><FONT 
color=#0000ff size=2 face=Arial>if you do a right click on a tile to get the 
context menu, you should be able to copy the url (if the tiles of your server is 
the most top of the visible layers). Compare the different urls. If you load 
them in your browser you should get a response for a single tile from your 
server.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=yiv523246233984204717-27062011><FONT 
color=#0000ff size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=yiv523246233984204717-27062011><FONT 
color=#0000ff size=2 face=Arial>Perhaps that gives you an idea, what goes 
wrong.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=yiv523246233984204717-27062011><FONT 
color=#0000ff size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=yiv523246233984204717-27062011><FONT 
color=#0000ff size=2 face=Arial>Arnd</FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=de class=yiv523246233OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> mapserver-users-bounces@lists.osgeo.org 
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>Im Auftrag von 
</B>kensei3000<BR><B>Gesendet:</B> Montag, 27. Juni 2011 05:37<BR><B>An:</B> 
mapserver-users@lists.osgeo.org<BR><B>Betreff:</B> [mapserver-users] 
"Low-resolution" raster image problem when usingOpenlayers<BR></FONT><BR></DIV>
<DIV 
style="BACKGROUND-COLOR: rgb(255,255,255); FONT-FAMILY: arial, helvetica, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 10pt">
<DIV>Hi!</DIV>
<DIV><BR></DIV>
<DIV>I am trying to use MapServer as a WMS layer in Openlayers. I setup the 
MapServer in our server machine, using my own PC as the test client. I created a 
simple .map file in our server that contains one raster image. Using the 
mapserver tool 'mapserv' in a URL string, I was able to load the output map with 
full resolution correctly in a browser (Google Chrome). However, when I tried to 
load the map using a simple Openlayers script (HMTL) which I created on our 
server (accessible via browser), the map image appeared to have a much 
lower-resolution (i.e. 256-colors only) and was pixelized. Also, I could see 
white lines representing the tile edges of the map.&nbsp;</DIV>
<DIV><BR></DIV>
<DIV>I did another test. This time, I installed MapServer in my own PC. I 
created a .map file similar to the one I used in our server, with the same 
raster image. I created a similar Openlayers script (HTML) in my own PC, but 
this time it would call the MapServer from my own PC. I loaded the script using 
a browser and the image displayed correctly with full resolution.&nbsp;</DIV>
<DIV><BR></DIV>
<DIV>Does anyone have an idea what the problem could be?</DIV>
<DIV><BR></DIV>
<DIV>I would appreciate any help in this matter.</DIV>
<DIV><BR></DIV>
<DIV>Thanks in advance! :) 
&nbsp;</DIV></DIV></DIV><BR><BR></DIV></DIV></DIV></BODY></HTML>