<!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.1479" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Keerati,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>A few things I spotted (which may not necessarily 
be all problems) :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>- Your mapfile should have an output 
format:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>OUTPUTFORMAT<BR>&nbsp; NAME png<BR>&nbsp; DRIVER 
"GD/PNG"<BR>&nbsp; MIMETYPE "image/png"<BR>&nbsp; IMAGEMODE PC256<BR>&nbsp; 
EXTENSION "png"<BR>END</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>If you don't have it, it may still work, but it 
will use the&nbsp;default format.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>- Your layer must have a class. This defines what 
it looks like. Without it, it will definitely not show anything:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>CLASS</FONT></DIV>
<DIV><FONT face=Arial size=2>NAME "countries" # this must be there to show it in 
the legend</FONT></DIV>
<DIV><FONT face=Arial size=2>COLOR 255 255 180 # the fill colour</FONT></DIV>
<DIV><FONT face=Arial size=2>OUTLINECOLOR 0 0 0 # the boundary 
colour</FONT></DIV>
<DIV><FONT face=Arial size=2>END</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>- last thing: better not put spaces in your 
filenames. It may work, but I could well imagine if it didn't.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Try these and see what happens.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: UMN MapServer 
Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of Keerati 
Inochanon<BR>Sent: 20 January 2005 11:06<BR>To: <A 
href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</A><BR>Subject: 
[UMN_MAPSERVER-USERS] First-time user needs help with mapfile</FONT></DIV>
<DIV>&nbsp;</DIV><FONT face=Arial size=2>
<DIV><BR>Hi,<BR>I'm new at GIS and mapserver, and just decided to try it out. I 
was<BR>wondering if someone could guide me into the right direction. 
I<BR>downloaded world base map shapefiles from esri website. I wrote 
a<BR>mapfile for it, and tried to have mapscript render it, but it does 
not<BR>work (image produced, but only background). Here is what my map 
file<BR>looks like:</DIV>
<DIV>&nbsp;</DIV>
<DIV>MAP<BR>&nbsp;&nbsp;&nbsp; NAME ASIA<BR>&nbsp;&nbsp;&nbsp; STATUS 
ON<BR>&nbsp;&nbsp;&nbsp; SIZE 800 500<BR>&nbsp;&nbsp;&nbsp; IMAGETYPE 
PNG<BR>&nbsp;&nbsp;&nbsp; IMAGECOLOR 240 240 240<BR>&nbsp;&nbsp;&nbsp; SHAPEPATH 
"C:\\Program 
Files\\Apache<BR>Group\\Apache2\\htdocs\\mapserver\\testshp"<BR>&nbsp;&nbsp;&nbsp; 
EXTENT 90.0168 0.6079 113.5783 24.1694<BR>&nbsp;&nbsp;&nbsp; UNITS 
DD<BR>&nb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<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
PROJECTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"proj=latlong"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"ellps=GRS80"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"datum=NAD83"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
END<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>I got the extent info from the download page of the dataset</DIV>
<DIV>&nbsp;</DIV>
<DIV>These are the files in the testshp directory:<BR>B_Major Cities 
1.dbf<BR>B_Major Cities 1.prj<BR>B_Major Cities 1.shp<BR>B_Major Cities 
1.shx<BR>Country Boundaries 3.dbf<BR>Country Boundaries 3.prj<BR>Country 
Boundaries 3.shp<BR>Country Boundaries 3.shx<BR>Rivers 2.dbf<BR>Rivers 
2.prj<BR>Rivers 2.shp<BR>Rivers 2.shx<BR>Streets and Railroads 1.dbf<BR>Streets 
and Railroads 1.prj<BR>Streets and Railroads 1.shp<BR>Streets and Railroads 
1.shx<BR>Water Bodies 2.dbf<BR>Water Bodies 2.prj<BR>Water Bodies 2.shp<BR>Water 
Bodies 2.shx</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any help or suggestions will be much appreciated. Thank you very 
much!</DIV>
<DIV>&nbsp;</DIV>
<DIV>Keerati<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV></FONT><FONT face=Arial size=2><A 
href="mailto:jacob.delfos@maunsell.com"></A></FONT>&nbsp;</DIV></BODY></HTML>