<!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.2900.2523" name=GENERATOR></HEAD>
<BODY style="MARGIN-TOP: 2px; FONT: 8pt Tahoma; MARGIN-LEFT: 2px">
<DIV><FONT size=2>Hi </FONT></DIV>
<DIV><FONT size=2>We need an example of how to set up a basic mapserver viewer
that will display images using the tile index mentioned on page 3 of howto for
RASTERS.</FONT></DIV>
<DIV><FONT size=2>I have been successful creating a basic application which
shows one "test" image as in my map file below... please fine at the start of
the layers it is called 'Ptest":</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thank you for any help</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>John</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT size=2>...</FONT></DIV>
<DIV><FONT size=2>#<BR># Start of map file<BR>#<BR>NAME Pville<BR>STATUS
ON<BR>SIZE 600 600<BR>EXTENT 401500 5461000 410000 5466600<BR>UNITS
METERS<BR>FONTSET "C:\Inetpub\wwwroot\Parksville\fonts\fonts.list"<BR>SHAPEPATH
"data"<BR>IMAGECOLOR 255 255 255</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2># you may need to change this to match your MapServer
build<BR>#IMAGETYPE PNG</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>#<BR># Projection definition, consult the PROJ.4 documentation
for parameter discussion<BR>#<BR>#PROJECTION<BR># "proj=utm"<BR>#
"ellps=GRS80"<BR># "zone=15"<BR># "north"<BR>#
"no_defs"<BR>#<BR># OR: <BR>#<BR>#
"init=epsg:26915"<BR>#END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>#<BR># Start of web interface definition (including WMS
enabling metadata)<BR>#<BR>WEB<BR> HEADER Pville_header.html<BR>
TEMPLATE Pville.html<BR> FOOTER Pville_footer.html<BR> MINSCALE
1000<BR> #MAXSCALE 155000<BR> MAXSCALE 40000<BR> IMAGEPATH
"set in Pville_init.html"<BR> IMAGEURL "set in Pville_init.html"<BR>
METADATA<BR> WMS_TITLE "UMN MapServer Parksville
BC"<BR> WMS_ABSTRACT "This is the UMN MapServer application
for the City of Parksville located on Vancouver Island."<BR>
WMS_ACCESSCONSTRAINTS none</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2> # change this value to match your
setup<BR> WMS_ONLINERESOURCE "<A
href="http://localhost/Parksville/Pville_init.html">http://localhost/Parksville/Pville_init.html</A>"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2> WMS_SRS "EPSG:26915"<BR>
END<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>QUERYMAP<BR> SIZE 200 200<BR> STATUS ON<BR>
STYLE HILITE<BR> COLOR 255 0 0<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>#<BR># Start of reference map<BR>#<BR>REFERENCE<BR>
IMAGE graphics/reference.gif<BR> EXTENT 401500 5461000 410000
5466600<BR> SIZE 120 120<BR> STATUS ON<BR> COLOR -1 -1
-1<BR> OUTLINECOLOR 255 0 0<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>#<BR># Start of legend<BR>#<BR>LEGEND<BR> KEYSIZE 12
12<BR> LABEL<BR> TYPE BITMAP<BR> SIZE
MEDIUM<BR> COLOR 0 0 89<BR> END<BR> STATUS
ON<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>#<BR># Start of scalebar<BR>#<BR>SCALEBAR<BR> IMAGECOLOR
255 255 255<BR> LABEL<BR> COLOR 0 0
0<BR> SIZE tiny <BR> END<BR>
STYLE 1<BR> SIZE 80 2<BR> COLOR 0 0 0<BR> UNITS
METERS<BR> INTERVALS 1<BR> TRANSPARENT FALSE<BR> STATUS
EMBED<BR> POSITION LR<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>#<BR># Start of symbol definitions (we're only using a
few)<BR>#<BR>SYMBOL<BR> NAME 'circle'<BR> TYPE ELLIPSE<BR>
POINTS 1 1 END<BR> FILLED TRUE<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2># Rem March9,04<BR># Start of layer
definitions<BR>#<BR>LAYER<BR> NAME Ptest<BR> TYPE RASTER<BR>
STATUS OFF<BR> DATA test01NAD83.tif<BR> PROCESSING
"BANDS=1,2,3"<BR> OFFSITE 71 74 65<BR>END #LAYER <BR>
<BR>LAYER<BR> NAME Pparks<BR> TYPE
POLYGON<BR> STATUS OFF<BR> DATA P83parks<BR>
LABELITEM "NAME"<BR> LABELMAXSCALE 5000<BR>
CLASS<BR> NAME Parks<BR> COLOR
40 195 48<BR> TEMPLATE
"Parks.html"<BR>
LABEL<BR> MINFEATURESIZE
40<BR> MINDISTANCE
100<BR> BUFFER
10<BR> ANGLE
AUTO<BR> POSITION
AUTO<BR> SIZE
MEDIUM<BR> COLOR 0 0
0 <BR>
END #LABEL <BR> END #CLASS
<BR> HEADER "Parks_header.html"<BR> FOOTER
"Parks_footer.html" <BR>END #LAYER</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>LAYER<BR> NAME Pwatercourse<BR> TYPE
LINE<BR> STATUS OFF<BR> DATA P83watercourse<BR>
CLASS<BR> NAME Watercourse<BR> COLOR 49 117
185<BR> END #CLASS <BR>END #LAYER</FONT></DIV>
<DIV> </DIV><FONT size=2>
<DIV><BR>LAYER<BR> NAME Pwatflow<BR> TYPE POLYGON<BR> STATUS
DEFAULT<BR> DATA P83watflow<BR> CLASS<BR> NAME
Pwatflow<BR> COLOR 49 37 185<BR> END #CLASS
<BR>END #LAYER</DIV>
<DIV> </DIV>
<DIV><BR>LAYER<BR> NAME Ppoints<BR> TYPE POINT<BR> DATA
P83points<BR> STATUS DEFAULT<BR> LABELITEM "NAME"<BR>
LABELMAXSCALE 2000<BR> TOLERANCE 10<BR> TOLERANCEUNITS
PIXELS<BR> CLASS<BR> NAME 'Places'<BR>
TEMPLATE "Points.html"<BR>
STYLE<BR> COLOR 128 255
164<BR> SYMBOL
'circle'<BR> SIZE 7<BR> END
#STYLE<BR> LABEL<BR>
MINFEATURESIZE 10<BR> MINDISTANCE
20<BR> BUFFER 5<BR>
ANGLE AUTO<BR> POSITION
AUTO<BR> SIZE
SMALL<BR> COLOR 128 255 164<BR>
END #LABEL<BR> END #CLASS<BR> HEADER "Points_header.html"<BR>
FOOTER "Points_footer.html" <BR>END #LAYER</DIV>
<DIV> </DIV>
<DIV>LAYER<BR> NAME Proads<BR> TYPE LINE<BR> DATA
P83roads<BR> STATUS DEFAULT<BR> MINSCALE 15000<BR> LABELITEM
"ROADNAME"<BR> LABELMAXSCALE 80000<BR> CLASS<BR>
NAME Roads<BR> COLOR 0 0 0<BR> SIZE
20<BR> LABEL<BR> TYPE
TRUETYPE<BR> FONT
arial<BR> MINFEATURESIZE
20<BR> MINDISTANCE
100<BR> BUFFER
10<BR> ANGLE
AUTO<BR> POSITION
AUTO<BR> SIZE 6<BR>
COLOR 0 0 0<BR> ANTIALIAS
TRUE<BR> END #LABEL <BR> END #CLASS <BR>END
#LAYER</DIV>
<DIV> </DIV>
<DIV>LAYER<BR> NAME Proadshide<BR> TYPE LINE<BR> DATA
P83roads<BR> STATUS DEFAULT<BR> MAXSCALE 15000<BR> LABELITEM
"ROADNAME"<BR> CLASS<BR> NAME
Roads<BR> #COLOR 255 255 255<BR> SIZE
20<BR> LABEL<BR> TYPE
TRUETYPE<BR> FONT
arial<BR> MINFEATURESIZE
20<BR> MINDISTANCE
150<BR> BUFFER
10<BR> ANGLE
AUTO<BR> POSITION
AUTO<BR> SIZE 6<BR>
COLOR 0 0 0<BR> ANTIALIAS
TRUE<BR> END #LABEL <BR> END #CLASS <BR>END
#LAYER</DIV>
<DIV> </DIV>
<DIV><BR>LAYER<BR> NAME Pcad<BR> TYPE POLYGON<BR> STATUS
DEFAULT<BR> MAXSCALE 20000<BR> DATA P83cad_Intersect<BR>
LABELITEM "CHOUSE"<BR> LABELMAXSCALE 2000<BR>
CLASS<BR> NAME Lots<BR> TEMPLATE
"Cad.html"<BR> OUTLINECOLOR 200 200 200<BR>
LABEL<BR> MINFEATURESIZE
10<BR> MINDISTANCE
10<BR> BUFFER 5<BR>
ANGLE AUTO<BR> POSITION
AUTO<BR> SIZE
MEDIUM<BR> COLOR 0 0 0 <BR> END
#LABEL<BR> END #CLASS <BR> HEADER "Cad_header.html"<BR>
FOOTER "Cad_footer.html" <BR>END #LAYER</DIV>
<DIV> </DIV>
<DIV>LAYER<BR> NAME Pzoning<BR> TYPE POLYGON<BR> STATUS
OFF<BR> MAXSCALE 30000<BR> DATA P83zoning<BR> LABELITEM
"Z"<BR> LABELMAXSCALE 20000<BR> CLASS<BR> NAME
Zoning<BR> OUTLINECOLOR 255 0 0<BR>
LABEL<BR> MINFEATURESIZE
10<BR> MINDISTANCE
10<BR> BUFFER 5<BR>
ANGLE AUTO<BR> POSITION
AUTO<BR> SIZE
LARGE<BR> COLOR 255 0 0<BR> END
#LABEL<BR> END #CLASS <BR>END #LAYER</DIV>
<DIV> </DIV>
<DIV>LAYER<BR> NAME Pwater<BR> TYPE LINE<BR> STATUS
OFF<BR> MAXSCALE 15000<BR> TOLERANCE 10<BR> TOLERANCEUNITS
PIXELS<BR> DATA P83water<BR> CLASS<BR> NAME
Waterworks<BR> TEMPLATE
"Waterworks.html"<BR> COLOR 0 0 255<BR> END #CLASS
<BR> HEADER "Waterworks_header.html"<BR> FOOTER
"Waterworks_footer.html" <BR>END #LAYER</DIV>
<DIV> </DIV>
<DIV>LAYER<BR> NAME Psanitary<BR> TYPE LINE<BR> STATUS
OFF<BR> MAXSCALE 15000<BR> TOLERANCE 10<BR> TOLERANCEUNITS
PIXELS<BR> DATA P83sanitary<BR> CLASS<BR> NAME
Sanitary<BR> TEMPLATE 'Sanitary.html'<BR>
COLOR 204 102 0<BR> END #CLASS<BR> HEADER
'Sanitary_header.html'<BR> FOOTER 'Sanitary_footer.html' <BR>END
#LAYER</DIV>
<DIV> </DIV>
<DIV>LAYER<BR> NAME Pstorm<BR> TYPE LINE<BR> STATUS
OFF<BR> MAXSCALE 15000<BR> TOLERANCE 10<BR> TOLERANCEUNITS
PIXELS<BR> DATA P83storm<BR> CLASS<BR> NAME
Storm<BR> TEMPLATE "Storm.html"<BR> COLOR 0
255 0<BR> END #CLASS <BR> HEADER "Storm_header.html"<BR>
FOOTER "Storm_footer.html" <BR>END #LAYER</DIV>
<DIV> </DIV>
<DIV>LAYER<BR> NAME Ptrails<BR> TYPE LINE<BR> STATUS
OFF<BR> MAXSCALE 20000<BR> DATA P83trails<BR>
CLASS<BR> NAME Trails<BR> COLOR 180 100
40<BR> END #CLASS <BR>END #LAYER</DIV>
<DIV> </DIV>
<DIV><BR>LAYER<BR> NAME Pbuildings<BR> TYPE LINE<BR> STATUS
OFF<BR> MAXSCALE 20000<BR> DATA P83buildings<BR>
CLASS<BR> NAME Buildings<BR> COLOR 255 175
175<BR> END #CLASS <BR>END #LAYER</DIV>
<DIV> </DIV>
<DIV>LAYER<BR> NAME Pboundary<BR> TYPE LINE<BR> STATUS
DEFAULT<BR> DATA P83boundary<BR> CLASS<BR> NAME
Boundary<BR> COLOR 255 0 255<BR> END #CLASS <BR>END
#LAYER</DIV>
<DIV> </DIV>
<DIV><BR>END # Map File<BR></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>John Wiley, C.Tech.<BR>GIS Technologist<BR>City of Parksville, BC<BR>Direct
250 954 4696<BR>Fax 250 248
6140<BR></FONT></DIV></BODY></HTML>