<!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> </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> </DIV>
<DIV><FONT face=Arial size=2>I think it's pretty elaborate.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Tyler Mitchell is writing a book with parts on
mapserver, which should also help (Tyler, what's keeping you?!).</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> </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> </DIV><FONT face=Arial size=2>
<DIV><BR>Hi Jacob,</DIV>
<DIV> </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> </DIV>
<DIV>Thank you!<BR>Keerati</DIV>
<DIV> </DIV>
<DIV><BR>On Thu, 20 Jan 2005 11:24:37 +0800, Jacob Delfos<BR><<A
href="mailto:jacob.delfos@maunsell.com">jacob.delfos@maunsell.com</A>>
wrote:<BR>><BR>> Keerati,<BR>><BR>> A few things I spotted (which
may not necessarily be all problems) :<BR>><BR>> - Your mapfile should
have an output format:<BR>><BR>> OUTPUTFORMAT<BR>> NAME
png<BR>> DRIVER "GD/PNG"<BR>> MIMETYPE
"image/png"<BR>> IMAGEMODE PC256<BR>> EXTENSION
"png"<BR>> END<BR>><BR>> If you don't have it, it may still work, but
it will use the default format.<BR>><BR>> - Your layer must have a class.
This defines what it looks like. Without it,<BR>> it will definitely not show
anything:<BR>><BR>> CLASS<BR>> NAME "countries" # this must be there to
show it in the legend<BR>> COLOR 255 255 180 # the fill colour<BR>>
OUTLINECOLOR 0 0 0 # the boundary colour<BR>> END<BR>><BR>> - last
thing: better not put spaces in your filenames. It may work, but I<BR>> could
well imagine if it didn't.<BR>><BR>> Try these and see what
happens.<BR>><BR>> regards,<BR>><BR>>
Jacob<BR>><BR>><BR>><BR>> -----Original Message-----<BR>> From:
UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On<BR>>
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<BR>><BR>><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:<BR>><BR>>
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<BR>><BR>> I got the extent info from the download page of
the dataset<BR>><BR>> 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<BR>><BR>> Any
help or suggestions will be much appreciated. Thank you very
much!<BR>><BR>>
Keerati<BR>><BR>><BR>><BR>><BR></FONT></DIV></BODY></HTML>