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