<!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><SPAN class=453092822-30062011><FONT color=#0000ff 
size=2 face=Arial>You can request tiles from MapServer by a MapServer 
cgi&nbsp;request or by&nbsp;a WMS request.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453092822-30062011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=453092822-30062011><FONT color=#0000ff 
size=2 face=Arial>OpenLayers uses this</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453092822-30062011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=453092822-30062011><FONT color=#0000ff 
size=2 face=Arial>&nbsp;&nbsp;&nbsp; DEFAULT_PARAMS: 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mode: 
"map",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map_imagetype: "png" // a 
8bit png if not otherwise declared in the mapfile<BR>&nbsp;&nbsp;&nbsp; 
},<BR></DIV></FONT></SPAN>
<DIV dir=ltr align=left><SPAN class=453092822-30062011><FONT color=#0000ff 
size=2 face=Arial>for OpenLayers.Layer.MapServer</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453092822-30062011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=453092822-30062011><FONT color=#0000ff 
size=2 face=Arial>&nbsp;&nbsp;&nbsp; DEFAULT_PARAMS: { service: 
"WMS",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
version: 
"1.1.1",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
request: 
"GetMap",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
styles: 
"",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
exceptions: 
"application/vnd.ogc.se_inimage",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
format: 
"image/jpeg"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
},<BR></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=453092822-30062011><FONT color=#0000ff 
size=2 face=Arial>for OpenLayers.Layer.WMS</FONT></SPAN></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><SPAN class=453092822-30062011><FONT color=#0000ff size=2 face=Arial>if you 
not specify a imageformat, then the OpenLayers.Layer.MapServer requests a png 
and the&nbsp;WMS requests a jpg (if not set 
transparent=true).</FONT></SPAN></DIV>
<DIV><SPAN class=453092822-30062011><FONT color=#0000ff size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=453092822-30062011><FONT color=#0000ff size=2 
face=Arial>Arnd</FONT></SPAN></DIV>
<DIV><BR></DIV>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> kensei3000 [mailto:kensei3000@yahoo.com] 
<BR><B>Gesendet:</B> Donnerstag, 30. Juni 2011 04:58<BR><B>An:</B> Arnd 
Wippermann<BR><B>Cc:</B> mapserver-users@lists.osgeo.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><SPAN>Hi Arnd,</SPAN></DIV>
<DIV><SPAN><BR></SPAN></DIV>
<DIV><SPAN>I see. I used the same 'mapserv' url in both OpenLayers.Layer.WMS and 
.MapServer code. The requests were sent to the same remote server. So the 
difference must be in the requests. Is it possible that OpenLayers.Layer.WMS 
generated a different output url string from the one generated by 
OpenLayers.Layer.MapServer?</SPAN></DIV>
<DIV><BR></DIV>
<DIV>Ken</DIV>
<DIV><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> 
mapserver-users@lists.osgeo.org<BR><B><SPAN 
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, June 30, 2011 1:15 
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=yiv1640254091>
<DIV dir=ltr align=left>
<DIV><SPAN style="FONT-SIZE: 13px" class=yiv1640254091Apple-style-span><SPAN 
class=yiv1640254091765290517-29062011><FONT face=Arial>Hi 
Ken,</FONT></SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 13px" class=yiv1640254091Apple-style-span><SPAN 
class=yiv1640254091765290517-29062011><FONT 
face=Arial></FONT></SPAN></SPAN>&nbsp;</DIV>
<DIV><SPAN style="FONT-SIZE: 13px" class=yiv1640254091Apple-style-span><FONT 
face=Arial><SPAN class=yiv1640254091765290517-29062011>Quote : 
"</SPAN>Interestingly, if I use the 'mapserv' executable directly in the browser 
instead of using OpenLayers API, the image also renders correctly.<SPAN 
class=yiv1640254091765290517-29062011>"</SPAN></FONT></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 13px" class=yiv1640254091Apple-style-span><FONT 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN style="FONT-SIZE: 13px" class=yiv1640254091Apple-style-span><SPAN 
class=yiv1640254091765290517-29062011><FONT face=Arial>There could be no 
difference (OpenLayers.Layer.WMS or .MapServer), because with OpenLayers you 
only create an url for an image tag (&lt;img src="url"&gt;). The response have 
to be the same as from the browser directly.</FONT></SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 13px" class=yiv1640254091Apple-style-span><SPAN 
class=yiv1640254091765290517-29062011><FONT 
face=Arial></FONT></SPAN></SPAN>&nbsp;</DIV>
<DIV><SPAN style="FONT-SIZE: 13px" class=yiv1640254091Apple-style-span><SPAN 
class=yiv1640254091765290517-29062011><FONT face=Arial>The difference could only 
be a result from different requests or the same request to different 
servers.</FONT></SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 13px" class=yiv1640254091Apple-style-span><SPAN 
class=yiv1640254091765290517-29062011><FONT 
face=Arial></FONT></SPAN></SPAN>&nbsp;</DIV>
<DIV><SPAN style="FONT-SIZE: 13px" class=yiv1640254091Apple-style-span><SPAN 
class=yiv1640254091765290517-29062011><FONT 
face=Arial>Arnd</FONT></SPAN></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 13px" class=yiv1640254091Apple-style-span><SPAN 
class=yiv1640254091765290517-29062011></SPAN></SPAN>&nbsp;</DIV>
<DIV>
<HR tabIndex=-1>
</DIV>
<DIV><FONT size=2 face=Tahoma><B>Von:</B> kensei3000 
[mailto:kensei3000@yahoo.com] <BR><B>Gesendet:</B> Mittwoch, 29. Juni 2011 
09:56<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 
style="BACKGROUND-COLOR: rgb(255,255,255); FONT-FAMILY: arial, helvetica, sans-serif; COLOR: rgb(0,0,0); 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">I 
checked the images properties of the tile images using ImageMagick.<BR></DIV>
<DIV 
style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt"><SPAN>tile_topleft_remote.png 
has image type "Palette" (8-bit)</SPAN></DIV>
<DIV 
style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt"><SPAN>tile_topleft_local.png 
has image type "TrueColor" (32-bit)</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">The 
results I got seem to correlate with your findings.</DIV>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt">Indeed, 
it appears that the image rendering between my local pc and the server are 
different.</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">The map 
files are exactly same since I sync them in both computers. &nbsp; 
&nbsp;&nbsp;<BR></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">The 
MapServer versions, however, are different. Here's what I got:</DIV>
<DIV 
style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt"><BR></DIV>
<DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>LOCAL:</FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>MapServer version 6.0.0 
OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO 
SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS 
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE</FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>REMOTE:</FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>MapServer version 5.6.1 
OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG 
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI 
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT 
SUPPORTS=WCS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE</FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>The MapServer executable 
in the remote server is an older version (5.6.1) than the one in my pc (6.0.0). 
I edited the map files and images in my local pc, then synced them to the 
server, so there may be an incompatibility. I checked the Mapserver Migration 
Guide (http://mapserver.org/de/MIGRATION_GUIDE.html) and my guess was that the 
default OUTPUTFORMAT specifications of both versions could be 
different.&nbsp;</FONT><SPAN style="FONT-SIZE: 13px" 
class=yiv1640254091Apple-style-span>I did not specify an explicit OUTPUTFORMAT 
in my map file.</SPAN></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>I created another test. 
This time I explicitly defined the OUTPUTFORMAT with the following lines added 
to the map file in the remote server:</FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2><BR></FONT></DIV>
<DIV><SPAN style="FONT-SIZE: 13px" 
class=yiv1640254091Apple-style-span>&nbsp;OUTPUTFORMAT</SPAN><BR></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>
<DIV>
<DIV>&nbsp; &nbsp; NAME jpeg</DIV>
<DIV>&nbsp; &nbsp; DRIVER "AGG/JPEG"</DIV>
<DIV>&nbsp; &nbsp; MIMETYPE "image/jpeg"</DIV>
<DIV>&nbsp; &nbsp; IMAGEMODE RGB</DIV>
<DIV>&nbsp; &nbsp; EXTENSION "jpg"</DIV>
<DIV>&nbsp; END</DIV></DIV>
<DIV><BR></DIV></FONT><SPAN style="FONT-SIZE: 13px" 
class=yiv1640254091Apple-style-span>The result was that the output image 
generated by the remote server rendered in TrueColor, similar to the output 
image in my local pc. Problem appears to be fixed.</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 13px" 
class=yiv1640254091Apple-style-span><BR></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 13px" class=yiv1640254091Apple-style-span>My guess 
right now is that the &nbsp;IMAGEMODE parameter above was somehow set to PC256 
(i.e. 8-bit color palette) by default.</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 13px" 
class=yiv1640254091Apple-style-span><BR></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 13px" 
class=yiv1640254091Apple-style-span>Interestingly, if I use the 'mapserv' 
executable directly in the browser instead of using OpenLayers API, the image 
also renders correctly.</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 13px" 
class=yiv1640254091Apple-style-span>EXAMPLE:&nbsp;</SPAN></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span 
size=2>http://remotehost/cgi-bin/mapserv?map=/opt/maps/sandbox/mapserver_openlayers_if/sample.map&amp;mode=map<BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>Above 'sample.map' did not 
have the OUTPUTFORMAT object explicitly defined.&nbsp;</FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>In another test I ran 
using the original 'sample.map' (i.e. no OUTPUTFORMAT object), I edited the 
OpenLayers code in the remote server:</FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>//sample.html</FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>FROM:</FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>&nbsp; &nbsp; 17<SPAN 
style="WHITE-SPACE: pre" class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;&nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;layer = new OpenLayers.Layer.MapServer("World 
Map",&nbsp;<BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>TO:</FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>
<DIV>&nbsp; &nbsp; 17<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;layer = new OpenLayers.Layer.WMS("World Map",&nbsp;</DIV>
<DIV><BR></DIV></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>I used the generic 'WMS' 
layer instead of the 'MapServer' layer. And the result was that the output image 
rendered correctly. I am not yet sure why.&nbsp;</FONT></DIV>
<DIV><SPAN style="FONT-SIZE: 13px" 
class=yiv1640254091Apple-style-span><BR></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 13px" class=yiv1640254091Apple-style-span>I might 
need to run additional tests to confirm my findings.</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 13px" 
class=yiv1640254091Apple-style-span><BR></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 13px" class=yiv1640254091Apple-style-span>Thanks 
for your help in pointing out the discrepancies in the images and in MapServer. 
:)</SPAN></DIV></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">Ken</DIV>
<DIV 
style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt">&nbsp;&nbsp;</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, 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> Wednesday, June 29, 2011 2:28 
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=yiv1640254091>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=yiv1640254091-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=yiv1640254091-28062011></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=yiv1640254091-28062011></SPAN><FONT 
face=Arial><FONT color=#0000ff><FONT size=2>tile_topleft_remote.png<SPAN 
class=yiv1640254091-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=yiv1640254091-28062011></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=yiv1640254091-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=yiv1640254091-28062011></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=yiv1640254091-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=yiv1640254091-28062011></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=yiv1640254091-28062011></SPAN></FONT></FONT></FONT><FONT face=Arial><FONT 
color=#0000ff><FONT size=2><SPAN class=yiv1640254091-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=yiv1640254091-28062011></SPAN></FONT></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=yiv1640254091-28062011>Arnd</SPAN></FONT></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=yiv1640254091-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 
style="BACKGROUND-COLOR: rgb(255,255,255); FONT-FAMILY: arial, helvetica, sans-serif; COLOR: rgb(0,0,0); 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=yiv1640254091Apple-style-span size=2>Local:</FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-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=yiv1640254091Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>Remote:</FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-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=yiv1640254091Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-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=yiv1640254091Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>For further reference, 
I've attached the tile images I got using the above urls.</FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-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=yiv1640254091Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>//sample.html</FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>
<DIV>
<DIV>&nbsp; &nbsp; &nbsp;1<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-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=yiv1640254091Apple-tab-span> </SPAN>&nbsp;&lt;head&gt;</DIV>
<DIV>&nbsp; &nbsp; &nbsp;3<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;&lt;style 
type="text/css"&gt;</DIV>
<DIV>&nbsp; &nbsp; &nbsp;4<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp; &nbsp; &nbsp;#map 
{</DIV>
<DIV>&nbsp; &nbsp; &nbsp;5<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;width: 1024px;</DIV>
<DIV>&nbsp; &nbsp; &nbsp;6<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;height: 768px;</DIV>
<DIV>&nbsp; &nbsp; &nbsp;7<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-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=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp; &nbsp; &nbsp;}</DIV>
<DIV>&nbsp; &nbsp; &nbsp;9<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;&lt;/style&gt;</DIV>
<DIV>&nbsp; &nbsp; 10<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-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=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;&lt;script 
type="text/javascript"&gt;</DIV>
<DIV>&nbsp; &nbsp; 12<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp; &nbsp; 
&nbsp;&lt;!--</DIV>
<DIV>&nbsp; &nbsp; 13<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp; &nbsp; &nbsp;var map, 
layer;</DIV>
<DIV>&nbsp; &nbsp; 14<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN></DIV>
<DIV>&nbsp; &nbsp; 15<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp; &nbsp; &nbsp;function 
init(){</DIV>
<DIV>&nbsp; &nbsp; 16<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-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=yiv1640254091Apple-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=yiv1640254091Apple-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=yiv1640254091Apple-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=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;map.addLayer(layer);</DIV>
<DIV>&nbsp; &nbsp; 21<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;map.zoomToMaxExtent();</DIV>
<DIV>&nbsp; &nbsp; 22<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp; &nbsp; &nbsp;}</DIV>
<DIV>&nbsp; &nbsp; 23<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp; &nbsp; &nbsp;// 
--&gt;</DIV>
<DIV>&nbsp; &nbsp; 24<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;&lt;/script&gt;</DIV>
<DIV>&nbsp; &nbsp; 25<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;&lt;/head&gt;</DIV>
<DIV>&nbsp; &nbsp; 26<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;&lt;body 
onload="init()"&gt;</DIV>
<DIV>&nbsp; &nbsp; 27<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;&lt;div 
id="map"&gt;&lt;/div&gt;</DIV>
<DIV>&nbsp; &nbsp; 28<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;&lt;/body&gt;</DIV>
<DIV>&nbsp; &nbsp; 29<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&lt;/html&gt;</DIV>
<DIV><BR></DIV></DIV>
<DIV><BR></DIV></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-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=yiv1640254091Apple-style-span size=2>The raster image has an 
associated World file (.wld) for georeferencing.</FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>
<DIV>&nbsp; &nbsp; &nbsp;1<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-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=yiv1640254091Apple-tab-span> </SPAN># Edit this file to customize for your 
map interface</DIV>
<DIV>&nbsp; &nbsp; &nbsp;3<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN># (Created with PyQgis MapServer 
Export plugin)</DIV>
<DIV>&nbsp; &nbsp; &nbsp;4<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>MAP</DIV>
<DIV>&nbsp; &nbsp; &nbsp;5<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;NAME "QGIS-MAP"</DIV>
<DIV>&nbsp; &nbsp; &nbsp;6<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;# Map image size</DIV>
<DIV>&nbsp; &nbsp; &nbsp;7<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;SIZE 8180 4930</DIV>
<DIV>&nbsp; &nbsp; &nbsp;8<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;UNITS meters</DIV>
<DIV>&nbsp; &nbsp; &nbsp;9<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN></DIV>
<DIV>&nbsp; &nbsp; 10<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;EXTENT -86.515507 -50.290979 
88.076495 48.225271</DIV>
<DIV>&nbsp; &nbsp; 11<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;PROJECTION</DIV>
<DIV>&nbsp; &nbsp; 12<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;'proj=longlat'</DIV>
<DIV>&nbsp; &nbsp; 13<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;'ellps=WGS84'</DIV>
<DIV>&nbsp; &nbsp; 14<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; 
&nbsp;'towgs84=0,0,0,0,0,0,0'</DIV>
<DIV>&nbsp; &nbsp; 15<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;'no_defs'</DIV>
<DIV>&nbsp; &nbsp; 16<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;END</DIV>
<DIV>&nbsp; &nbsp; 17<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN></DIV>
<DIV>&nbsp; &nbsp; 18<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;# Background color for the map 
canvas -- change as desired</DIV>
<DIV>&nbsp; &nbsp; 19<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;IMAGECOLOR 255 255 255</DIV>
<DIV>&nbsp; &nbsp; 20<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;IMAGEQUALITY 95</DIV>
<DIV>&nbsp; &nbsp; 21<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;IMAGETYPE jpeg</DIV>
<DIV>&nbsp; &nbsp; 22<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN></DIV>
<DIV>&nbsp; &nbsp; 23<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;# Legend</DIV>
<DIV>&nbsp; &nbsp; 24<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;LEGEND</DIV>
<DIV>&nbsp; &nbsp; 25<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp; &nbsp;IMAGECOLOR 255 255 
255</DIV>
<DIV>&nbsp; &nbsp; 26<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;STATUS ON</DIV>
<DIV>&nbsp; &nbsp; 27<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;KEYSIZE 18 12</DIV>
<DIV>&nbsp; &nbsp; 28<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;LABEL</DIV>
<DIV>&nbsp; &nbsp; 29<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp; &nbsp;TYPE BITMAP</DIV>
<DIV>&nbsp; &nbsp; 30<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp; &nbsp;SIZE MEDIUM</DIV>
<DIV>&nbsp; &nbsp; 31<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp; &nbsp;COLOR 0 0 89</DIV>
<DIV>&nbsp; &nbsp; 32<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;END</DIV>
<DIV>&nbsp; &nbsp; 33<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;END</DIV>
<DIV>&nbsp; &nbsp; 34<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN></DIV>
<DIV>&nbsp; &nbsp; 35<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;# Web interface definition. Only 
the template parameter</DIV>
<DIV>&nbsp; &nbsp; 36<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;# is required to display a map. 
See MapServer documentation</DIV>
<DIV>&nbsp; &nbsp; 37<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;WEB</DIV>
<DIV>&nbsp; &nbsp; 38<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;# Set IMAGEPATH to the 
path where MapServer should</DIV>
<DIV>&nbsp; &nbsp; 39<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;# write its output.</DIV>
<DIV>&nbsp; &nbsp; 40<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;IMAGEPATH '/tmp/'</DIV>
<DIV>&nbsp; &nbsp; 41<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN></DIV>
<DIV>&nbsp; &nbsp; 42<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-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=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;# as defined in your web 
server configuration</DIV>
<DIV>&nbsp; &nbsp; 44<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;IMAGEURL '/tmp/'</DIV>
<DIV>&nbsp; &nbsp; 45<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN></DIV>
<DIV>&nbsp; &nbsp; 46<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;#Scale range at which web 
interface will operate</DIV>
<DIV>&nbsp; &nbsp; 47<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;# Template and 
header/footer settings</DIV>
<DIV>&nbsp; &nbsp; 48<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-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=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;TEMPLATE 
'fooOnlyForWMSGetFeatureInfo'</DIV>
<DIV>&nbsp; &nbsp; 50<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;END</DIV>
<DIV>&nbsp; &nbsp; 51<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN></DIV>
<DIV>&nbsp; &nbsp; 52<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;LAYER</DIV>
<DIV>&nbsp; &nbsp; 53<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;NAME 
'sample_raster'</DIV>
<DIV>&nbsp; &nbsp; 54<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;TYPE RASTER</DIV>
<DIV>&nbsp; &nbsp; 55<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;DUMP true</DIV>
<DIV>&nbsp; &nbsp; 56<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;TEMPLATE 
fooOnlyForWMSGetFeatureInfo</DIV>
<DIV>&nbsp; &nbsp; 57<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;EXTENT -86.515507 -50.290979 
88.076495 48.225271</DIV>
<DIV>&nbsp; &nbsp; 58<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;DATA 
'sec_field.jpg'</DIV>
<DIV>&nbsp; &nbsp; 59<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;STATUS DEFAULT</DIV>
<DIV>&nbsp; &nbsp; 60<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;TRANSPARENCY 100</DIV>
<DIV>&nbsp; &nbsp; 61<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;PROJECTION</DIV>
<DIV>&nbsp; &nbsp; 62<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;'proj=longlat'</DIV>
<DIV>&nbsp; &nbsp; 63<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;'ellps=WGS84'</DIV>
<DIV>&nbsp; &nbsp; 64<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; 
&nbsp;'towgs84=0,0,0,0,0,0,0'</DIV>
<DIV>&nbsp; &nbsp; 65<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;'no_defs'</DIV>
<DIV>&nbsp; &nbsp; 66<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp; &nbsp;END</DIV>
<DIV>&nbsp; &nbsp; 67<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>&nbsp;END</DIV>
<DIV>&nbsp; &nbsp; 68<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN></DIV>
<DIV>&nbsp; &nbsp; 69<SPAN style="WHITE-SPACE: pre" 
class=yiv1640254091Apple-tab-span> </SPAN>END</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>Hope you could provide 
further assistance.</FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2><BR></FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-style-span size=2>Ken</FONT></DIV>
<DIV><FONT class=yiv1640254091Apple-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, 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=yiv1640254091>
<DIV dir=ltr align=left><SPAN class=yiv1640254091-27062011><FONT color=#0000ff 
size=2 face=Arial>hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=yiv1640254091-27062011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=yiv1640254091-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=yiv1640254091-27062011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=yiv1640254091-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=yiv1640254091-27062011><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=yiv1640254091-27062011><FONT color=#0000ff 
size=2 face=Arial>Arnd</FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=de class=yiv1640254091OutlookMessageHeader 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></DIV><BR><BR></DIV></DIV></DIV></DIV><BR><BR></DIV></DIV></DIV></BODY></HTML>