<!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> </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> </DIV>
<DIV><FONT face=Arial size=2>- Your mapfile should have an output
format:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>OUTPUTFORMAT<BR> NAME png<BR> DRIVER
"GD/PNG"<BR> MIMETYPE "image/png"<BR> IMAGEMODE PC256<BR>
EXTENSION "png"<BR>END</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If you don't have it, it may still work, but it
will use the default format.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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> </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> </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> </DIV>
<DIV><FONT face=Arial size=2>Try these and see what happens.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </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> </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> </DIV>
<DIV>MAP<BR> NAME ASIA<BR> STATUS
ON<BR> SIZE 800 500<BR> IMAGETYPE
PNG<BR> IMAGECOLOR 240 240 240<BR> SHAPEPATH
"C:\\Program
Files\\Apache<BR>Group\\Apache2\\htdocs\\mapserver\\testshp"<BR>
EXTENT 90.0168 0.6079 113.5783 24.1694<BR> UNITS
DD<BR>
PROJECTION<BR>
"proj=latlong"<BR>
"ellps=GRS80"<BR>
"datum=NAD83"<BR>
END<BR>
LAYER<BR>
NAME
"boundaries"<BR>
TYPE
POLYGON<BR>
STATUS
ON<BR>
DATA "Country Boundaries
3"<BR>
PROJECTION<BR>
"proj=latlong"<BR>
"ellps=GRS80"<BR>
"datum=NAD83"<BR>
END<BR> END<BR>END</DIV>
<DIV> </DIV>
<DIV>I got the extent info from the download page of the dataset</DIV>
<DIV> </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> </DIV>
<DIV>Any help or suggestions will be much appreciated. Thank you very
much!</DIV>
<DIV> </DIV>
<DIV>Keerati<BR></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV></FONT><FONT face=Arial size=2><A
href="mailto:jacob.delfos@maunsell.com"></A></FONT> </DIV></BODY></HTML>