<!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> </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> </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> </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 image for the same imagetype. Or do you use 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> </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> </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> </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&layers=sample_raster&mode=map&map_imagetype=png&mapext=-90+0+0+90&imgext=-90+0+0+90&map_size=256+256&imgx=128&imgy=128&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&layers=sample_raster&mode=map&map_imagetype=png&mapext=-180+-90+0+90&imgext=-180+-90+0+90&map_size=256+256&imgx=128&imgy=128&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. </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> 1<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN><html xmlns="http://www.w3.org/1999/xhtml"></DIV>
<DIV> 2<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> <head></DIV>
<DIV> 3<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> <style type="text/css"></DIV>
<DIV> 4<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> #map {</DIV>
<DIV> 5<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> width: 1024px;</DIV>
<DIV> 6<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> height: 768px;</DIV>
<DIV> 7<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> border: 1px solid black;</DIV>
<DIV> 8<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> }</DIV>
<DIV> 9<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> </style></DIV>
<DIV> 10<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> <script
src="http://openlayers.org/dev/lib/OpenLayers.js"></script></DIV>
<DIV> 11<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> <script type="text/javascript"></DIV>
<DIV> 12<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> <!--</DIV>
<DIV> 13<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> var map, layer;</DIV>
<DIV> 14<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN></DIV>
<DIV> 15<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> function init(){</DIV>
<DIV> 16<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> map = new OpenLayers.Map( 'map'
);</DIV>
<DIV> 17<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> layer = new
OpenLayers.Layer.MapServer("World Map", </DIV>
<DIV> 18<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN>
"http://localhost/cgi-bin/mapserv",</DIV>
<DIV> 19<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN>
{map: '/opt/maps/sandbox/mapserver_openlayers_if/sample.map', layers:
'sample_raster'});</DIV>
<DIV> 20<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> map.addLayer(layer);</DIV>
<DIV> 21<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> map.zoomToMaxExtent();</DIV>
<DIV> 22<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> }</DIV>
<DIV> 23<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> // --></DIV>
<DIV> 24<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> </script></DIV>
<DIV> 25<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> </head></DIV>
<DIV> 26<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> <body onload="init()"></DIV>
<DIV> 27<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> <div id="map"></div></DIV>
<DIV> 28<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> </body></DIV>
<DIV> 29<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN></html></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> 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> 2<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN># Edit this file to customize for your map interface</DIV>
<DIV> 3<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN># (Created with PyQgis MapServer Export plugin)</DIV>
<DIV> 4<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN>MAP</DIV>
<DIV> 5<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> NAME "QGIS-MAP"</DIV>
<DIV> 6<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> # Map image size</DIV>
<DIV> 7<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> SIZE 8180 4930</DIV>
<DIV> 8<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> UNITS meters</DIV>
<DIV> 9<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN></DIV>
<DIV> 10<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> EXTENT -86.515507 -50.290979 88.076495 48.225271</DIV>
<DIV> 11<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> PROJECTION</DIV>
<DIV> 12<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> 'proj=longlat'</DIV>
<DIV> 13<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> 'ellps=WGS84'</DIV>
<DIV> 14<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> 'towgs84=0,0,0,0,0,0,0'</DIV>
<DIV> 15<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> 'no_defs'</DIV>
<DIV> 16<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> END</DIV>
<DIV> 17<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN></DIV>
<DIV> 18<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> # Background color for the map canvas -- change as desired</DIV>
<DIV> 19<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> IMAGECOLOR 255 255 255</DIV>
<DIV> 20<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> IMAGEQUALITY 95</DIV>
<DIV> 21<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> IMAGETYPE jpeg</DIV>
<DIV> 22<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN></DIV>
<DIV> 23<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> # Legend</DIV>
<DIV> 24<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> LEGEND</DIV>
<DIV> 25<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> IMAGECOLOR 255 255 255</DIV>
<DIV> 26<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> STATUS ON</DIV>
<DIV> 27<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> KEYSIZE 18 12</DIV>
<DIV> 28<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> LABEL</DIV>
<DIV> 29<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> TYPE BITMAP</DIV>
<DIV> 30<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> SIZE MEDIUM</DIV>
<DIV> 31<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> COLOR 0 0 89</DIV>
<DIV> 32<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> END</DIV>
<DIV> 33<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> END</DIV>
<DIV> 34<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN></DIV>
<DIV> 35<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> # Web interface definition. Only the template parameter</DIV>
<DIV> 36<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> # is required to display a map. See MapServer documentation</DIV>
<DIV> 37<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> WEB</DIV>
<DIV> 38<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> # Set IMAGEPATH to the path where MapServer should</DIV>
<DIV> 39<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> # write its output.</DIV>
<DIV> 40<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> IMAGEPATH '/tmp/'</DIV>
<DIV> 41<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN></DIV>
<DIV> 42<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> # Set IMAGEURL to the url that points to IMAGEPATH</DIV>
<DIV> 43<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> # as defined in your web server configuration</DIV>
<DIV> 44<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> IMAGEURL '/tmp/'</DIV>
<DIV> 45<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN></DIV>
<DIV> 46<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> #Scale range at which web interface will operate</DIV>
<DIV> 47<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> # Template and header/footer settings</DIV>
<DIV> 48<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> # Only the template parameter is required to display a map.
See MapServer documentation</DIV>
<DIV> 49<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> TEMPLATE 'fooOnlyForWMSGetFeatureInfo'</DIV>
<DIV> 50<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> END</DIV>
<DIV> 51<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN></DIV>
<DIV> 52<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> LAYER</DIV>
<DIV> 53<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> NAME 'sample_raster'</DIV>
<DIV> 54<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> TYPE RASTER</DIV>
<DIV> 55<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> DUMP true</DIV>
<DIV> 56<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> TEMPLATE fooOnlyForWMSGetFeatureInfo</DIV>
<DIV> 57<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> EXTENT -86.515507 -50.290979 88.076495 48.225271</DIV>
<DIV> 58<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> DATA 'sec_field.jpg'</DIV>
<DIV> 59<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> STATUS DEFAULT</DIV>
<DIV> 60<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> TRANSPARENCY 100</DIV>
<DIV> 61<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> PROJECTION</DIV>
<DIV> 62<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> 'proj=longlat'</DIV>
<DIV> 63<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> 'ellps=WGS84'</DIV>
<DIV> 64<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> 'towgs84=0,0,0,0,0,0,0'</DIV>
<DIV> 65<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> 'no_defs'</DIV>
<DIV> 66<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> END</DIV>
<DIV> 67<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN> END</DIV>
<DIV> 68<SPAN style="WHITE-SPACE: pre" class=Apple-tab-span>
</SPAN></DIV>
<DIV> 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
<arnd.wippermann@web.de><BR><B><SPAN
style="FONT-WEIGHT: bold">To:</SPAN></B> 'kensei3000'
<kensei3000@yahoo.com><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> </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> </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> </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. </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></DIV><BR><BR></DIV></DIV></DIV></BODY></HTML>