<!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=984204717-27062011><FONT color=#0000ff
size=2 face=Arial>hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=984204717-27062011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=984204717-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=984204717-27062011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=984204717-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=984204717-27062011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=984204717-27062011><FONT color=#0000ff
size=2 face=Arial>Arnd</FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=de class=OutlookMessageHeader 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></DIV>
<DIV
style="BACKGROUND-COLOR: #fff; FONT-FAMILY: arial, helvetica, sans-serif; COLOR: #000; 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. </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. </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! :) </DIV></DIV></BODY></HTML>