<div>Hi, all. I am new here.</div>
<div>I access to <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://localhost/cgi-bin/mapserv?map=test.map&amp;layer=lakespy2&amp;mode=map" target="_blank">http://localhost/cgi-bin/mapserv?map=test.map&amp;layer=lakespy2&amp;mode=map
</a><br>but&nbsp;JPEG was displayed. FYI, I able to see vector image. Need help on this, thanks.<br><br>Below is my mapserver version output:-<br>MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
<br><br>I'm using GDAL 1.3.0<br><br>Below is output of #gdalinfo /var/www/cgi-bin/data/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>Below is my mapfile :-<br>MAP<br>&nbsp; NAME ITASCA<br>&nbsp; STATUS ON<br>&nbsp; SIZE 600 600<br>&nbsp; EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897<br>
&nbsp; UNITS METERS<br>&nbsp; SHAPEPATH &quot;data&quot;<br>&nbsp; IMAGECOLOR 255 255 255<br>&nbsp; TEMPLATEPATTERN &quot;itasca&quot;<br><br>&nbsp; IMAGETYPE JPEG<br><br>&nbsp; # Layer objects are defined beneath the map object.&nbsp; You need at least one
<br>&nbsp; # layer defined in your map file before you can display a map...&nbsp; You can<br>&nbsp; # define as many layers as you'd like although a limit is typically hard-coded<br>&nbsp; # in map.h in the MapServer source.&nbsp; The default limit is set at 100.&nbsp; You'd
<br>&nbsp; # have to have a very specialized application to need more than 100 layers in<br>&nbsp; # your application.<br><br>&nbsp; # Start of LAYER DEFINITIONS ---------------------------------------------<br>&nbsp; <br>WEB<br>&nbsp;&nbsp;&nbsp; HEADER templates/header.html
<br>&nbsp;&nbsp;&nbsp; TEMPLATE &quot;set in index.html&quot;<br>&nbsp;&nbsp;&nbsp; FOOTER templates/footer.html&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; MINSCALE 1000<span></span> <br>&nbsp;&nbsp;&nbsp; MAXSCALE 1550000<br>&nbsp;&nbsp;&nbsp; IMAGEPATH &quot;set in index.html&quot;<br>&nbsp;&nbsp;&nbsp; IMAGEURL &quot;set in 
index.html&quot;<br>&nbsp;&nbsp;&nbsp; METADATA<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_TITLE &quot;UMN MapServer Itasca Demo&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_ABSTRACT &quot;This is a UMN MapServer application for Itasca County located in north central Minnesota.&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_ACCESSCONSTRAINTS &quot;none&quot;
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # change this value to match your setup<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_ONLINERESOURCE &quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://localhost/index.html" target="_blank">http://localhost/index.html
</a>&quot;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_SRS &quot;EPSG:26915&quot;<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp; END<br><br>LAYER<br>&nbsp;&nbsp;&nbsp; NAME lakespy2<br>&nbsp;&nbsp;&nbsp; TYPE RASTER<br>&nbsp;&nbsp;&nbsp; STATUS ON<br>&nbsp;&nbsp;&nbsp; DATA map.tif<br><br>&nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 'Lakes &amp; Rivers'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEMPLATE &quot;templates/lakespy2.html&quot;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 49 117 185<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; END<br><br>&nbsp;&nbsp;&nbsp; HEADER &quot;templates/lakespy2_header.html&quot;<br>&nbsp;&nbsp;&nbsp; FOOTER &quot;templates/lakespy2_footer.html&quot;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; TOLERANCE 3<br><br>&nbsp;&nbsp;&nbsp; DUMP TRUE # allow GML export
<br><br>&nbsp;&nbsp;&nbsp; METADATA<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_TITLE &quot;Lakes and Rivers&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_ABSTRACT &quot;DLG lake and river polygons for Itasca County. See <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://deli.dnr.state.mn.us/metadata/full/dlglkpy2.html" target="_blank">
http://deli.dnr.state.mn.us/metadata/full/dlglkpy2.html</a> for more information.&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_SRS &quot;EPSG:26915&quot;<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp; END # lakes<br><br>&nbsp; LAYER<br>&nbsp;&nbsp;&nbsp; NAME dlgstln2<br>&nbsp;&nbsp;&nbsp; TYPE LINE<br>&nbsp;&nbsp;&nbsp; STATUS OFF
<br>&nbsp;&nbsp;&nbsp; DATA dlgstln2<br><br>&nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME &quot;Streams&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEMPLATE &quot;templates/dlgstln2.html&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 49 117 185<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; END<br><br>&nbsp;&nbsp;&nbsp; HEADER &quot;templates/dlgstln2_header.html&quot;
<br>&nbsp;&nbsp;&nbsp; FOOTER &quot;templates/dlgstln2_footer.html&quot;<br><br>&nbsp;&nbsp;&nbsp; TOLERANCE 5&nbsp;&nbsp;&nbsp;<span></span> <br><br>&nbsp;&nbsp;&nbsp; DUMP TRUE # allow GML export<br><br>&nbsp;&nbsp;&nbsp; METADATA<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_TITLE &quot;Streams&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_ABSTRACT &quot;DLG streams for Itasca County. See 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://deli.dnr.state.mn.us/metadata/full/dlgstln2.html" target="_blank">http://deli.dnr.state.mn.us/metadata/full/dlgstln2.html</a> for more information.&quot;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_SRS &quot;EPSG:26915&quot;<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp; END # streams<br>END # All map files must come to an end just as all other things must come to...<br>&nbsp;</div>