Frank,<br>
<br>
I follow all ur suggestions but seems not working. I access
<a href="http://localhost/cgi-bin/mapserv?map=jpg.map&amp;layer=lakespy&amp;mode=map">http://localhost/cgi-bin/mapserv?map=jpg.map&amp;layer=lakespy&amp;mode=map</a><br>
My intention is to get map.jpg displayed, but what I get is a purple rectangular shape.<br>
<br>
Below is output gdalinfo map.jpg. I simplified the map file too.<br>
Hope you able to spot the mistake?<br>
<br>
#gdalinfo map.jpg<br>
Driver: JPEG/JPEG JFIF<br>
Size is 2524, 1738<br>
Coordinate System is `'<br>
Corner Coordinates:<br>
Upper Left&nbsp; (&nbsp;&nbsp;&nbsp; 0.0,&nbsp;&nbsp;&nbsp; 0.0)<br>
Lower Left&nbsp; (&nbsp;&nbsp;&nbsp; 0.0, 1738.0)<br>
Upper Right ( 2524.0,&nbsp;&nbsp;&nbsp; 0.0)<br>
Lower Right ( 2524.0, 1738.0)<br>
Center&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ( 1262.0,&nbsp; 869.0)<br>
Band 1 Block=2524x1 Type=Byte, ColorInterp=Red<br>
Band 2 Block=2524x1 Type=Byte, ColorInterp=Green<br>
Band 3 Block=2524x1 Type=Byte, ColorInterp=Blue<br>
<br>
&quot;jpg.map&quot;<br>
MAP<br>
&nbsp; NAME ITASCA<br>
&nbsp; STATUS ON<br>
&nbsp; SIZE 2524 1738<br>
&nbsp; EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897<br>
&nbsp; #SHAPEPATH &quot;/var/www/cgi-bin/data&quot;<br>
&nbsp; IMAGECOLOR 255 0 255<br>
&nbsp; TRANSPARENT TRUE<br>
&nbsp; IMAGETYPE JPEG<br>
 <br>
LAYER<br>
&nbsp;&nbsp;&nbsp; NAME lakespy<br>
&nbsp;&nbsp;&nbsp; TYPE RASTER<br>
&nbsp;&nbsp;&nbsp; STATUS ON<br>
&nbsp;&nbsp;&nbsp; DATA &quot;/var/www/cgi-bin/data/map.jpg&quot;<br>
END <br>
<br><br><div><span class="gmail_quote">On 6/28/06, <b class="gmail_sendername">Frank Warmerdam</b> &lt;<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hooi wrote:<br>&gt; Hi, all. I am new here.<br>&gt; I access to<br>&gt; <a href="http://localhost/cgi-bin/mapserv?map=test.map&amp;layer=lakespy2&amp;mode=map">http://localhost/cgi-bin/mapserv?map=test.map&amp;layer=lakespy2&amp;mode=map
</a><br>&gt; &lt;<a href="http://localhost/cgi-bin/mapserv?map=test.map&amp;layer=lakespy2&amp;mode=map">http://localhost/cgi-bin/mapserv?map=test.map&amp;layer=lakespy2&amp;mode=map</a>&gt;<br>&gt; but JPEG was displayed. FYI, I able to see vector image. Need help on
<br>&gt; this, thanks.<br>&gt;<br>&gt; Below is my mapserver version output:-<br>&gt; MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP<br>&gt; OUTPUT=SVG SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=OGR INPUT=GDAL
<br>&gt; INPUT=SHAPEFILE<br><br>Hooi,<br><br>I skimmed through your whole email message but was unable to determine<br>what sort of problem you are having.&nbsp;&nbsp;You mention a jpeg was<br>displayed.&nbsp;&nbsp;What something wrong with it?
<br><br>I am guessing that your raster layer didn't display properly, is that<br>right?<br><br>It is a bit odd to have a single class for a raster layer.&nbsp;&nbsp;As far as I<br>know the current arrangement would just cause the whole raster to
<br>be render in color 49 117 185.&nbsp;&nbsp;Is that your intention?<br><br>If the problem is with your raster layer it might also be helpful<br>to see a gdalinfo report on the raster file (map.tif) as opposed<br>to map.jpg.&nbsp;&nbsp;Was 
map.jpg the output file?<br><br>PS. I often try with full absolute paths when I suspect problems with<br>how the data is being found.&nbsp;&nbsp;You might want to try that.<br><br>Best regards,<br>--<br>---------------------------------------+--------------------------------------
<br>I set the clouds in motion - turn up&nbsp;&nbsp; | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>light and sound - activate the windows | <a href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam
</a><br>and watch the world go round - Rush&nbsp;&nbsp;&nbsp;&nbsp;| President OSGF, <a href="http://osgeo.org">http://osgeo.org</a><br><br></blockquote></div><br>