<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1476" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff><FONT face=Arial size=2>
<DIV>Nasir,</DIV>
<DIV>&nbsp;</DIV>
<DIV>You haven't actually specified an output format in your mapfile. Look 
at:</DIV>
<DIV><A 
href="http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#outputformat">http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#outputformat</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>You must have an output format in there with a name that matches your 
imagetype. Your outputformat contain the instructions on what kind of image to 
create for that imagetype. Once your put the outputformat object in there (can 
be more than 1), your imagetype should work.</DIV>
<DIV>&nbsp;</DIV>
<DIV>It probably works when you commented it out because mapserver uses a 
default imagetype if it cannot find any output format object in the 
mapfile.</DIV>
<DIV>&nbsp;</DIV>
<DIV>regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Jacob</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>-----Original Message-----<BR>From: UMN MapServer Users List 
[mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of nasir mahmood<BR>Sent: 3 
December 2004 06:42<BR>To: <A 
href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</A><BR>Subject: 
[UMN_MAPSERVER-USERS] IMAGETYPE</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am trying to understand mapserver's tutorial examples. I am facing a 
problem with IMAGETYPE tag. when I set IMAGETYPE PNG, map isn't displayed but 
when I comment it out then it 's ok. Why it is so? Here is map files:</DIV>
<DIV>&nbsp;</DIV>
<DIV>MAP<BR>#IMAGETYPE PNG<BR>EXTENT 201621.496941 -294488.285333 1425518.020722 
498254.511514<BR>SIZE 400 300<BR>SHAPEPATH "C:\Program Files\Apache 
Group\Apache2\htdocs\tutorial\data\"<BR>IMAGECOLOR 255 255 
255<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
PROJECTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"proj=laea"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
ellps=clrk66"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"lat_0=45"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"lon_0=-100"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Alternatively, you can specify 
an EPSG code.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 
"init=epsg:2163"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>LAYER # States polygon 
layer begins here</DIV>
<DIV>&nbsp;</DIV>
<DIV>NAME states</DIV>
<DIV>&nbsp;</DIV>
<DIV>DATA states_ugl</DIV>
<DIV>&nbsp;</DIV>
<DIV>STATUS DEFAULT</DIV>
<DIV>&nbsp;</DIV>
<DIV>TYPE POLYGON</DIV>
<DIV>&nbsp;</DIV>
<DIV>PROJECTION</DIV>
<DIV>&nbsp;</DIV>
<DIV>"init=epsg:4326"</DIV>
<DIV>&nbsp;</DIV>
<DIV>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>CLASS</DIV>
<DIV>&nbsp;</DIV>
<DIV>COLOR 232 232 232</DIV>
<DIV>&nbsp;</DIV>
<DIV>OUTLINECOLOR 32 32 32</DIV>
<DIV>&nbsp;</DIV>
<DIV>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>END </DIV>
<DIV>&nbsp;</DIV>
<DIV>END # end of map file/object</DIV>
<DIV>&nbsp;</DIV>
<DIV>Nasir</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>--------------------------------------------------------------------------------<BR>Do 
you Yahoo!?<BR>Yahoo! Mail - Easier than ever with enhanced search. Learn 
more.</FONT></DIV></BODY></HTML>