Frank,<br>
<br>
I follow all ur suggestions but seems not working. I access
<a href="http://localhost/cgi-bin/mapserv?map=jpg.map&layer=lakespy&mode=map">http://localhost/cgi-bin/mapserv?map=jpg.map&layer=lakespy&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 ( 0.0, 0.0)<br>
Lower Left ( 0.0, 1738.0)<br>
Upper Right ( 2524.0, 0.0)<br>
Lower Right ( 2524.0, 1738.0)<br>
Center ( 1262.0, 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>
"jpg.map"<br>
MAP<br>
NAME ITASCA<br>
STATUS ON<br>
SIZE 2524 1738<br>
EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897<br>
#SHAPEPATH "/var/www/cgi-bin/data"<br>
IMAGECOLOR 255 0 255<br>
TRANSPARENT TRUE<br>
IMAGETYPE JPEG<br>
<br>
LAYER<br>
NAME lakespy<br>
TYPE RASTER<br>
STATUS ON<br>
DATA "/var/www/cgi-bin/data/map.jpg"<br>
END <br>
<br><br><div><span class="gmail_quote">On 6/28/06, <b class="gmail_sendername">Frank Warmerdam</b> <<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>> 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>> Hi, all. I am new here.<br>> I access to<br>> <a href="http://localhost/cgi-bin/mapserv?map=test.map&layer=lakespy2&mode=map">http://localhost/cgi-bin/mapserv?map=test.map&layer=lakespy2&mode=map
</a><br>> <<a href="http://localhost/cgi-bin/mapserv?map=test.map&layer=lakespy2&mode=map">http://localhost/cgi-bin/mapserv?map=test.map&layer=lakespy2&mode=map</a>><br>> but JPEG was displayed. FYI, I able to see vector image. Need help on
<br>> this, thanks.<br>><br>> Below is my mapserver version output:-<br>> MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP<br>> OUTPUT=SVG SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=OGR INPUT=GDAL
<br>> 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. You mention a jpeg was<br>displayed. 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. As far as I<br>know the current arrangement would just cause the whole raster to
<br>be render in color 49 117 185. 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. 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. You might want to try that.<br><br>Best regards,<br>--<br>---------------------------------------+--------------------------------------
<br>I set the clouds in motion - turn up | 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 | President OSGF, <a href="http://osgeo.org">http://osgeo.org</a><br><br></blockquote></div><br>