<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=164080114-20072006><FONT face=Arial 
color=#0000ff size=2>OK - I'll bite...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=164080114-20072006><FONT face=Arial 
color=#0000ff size=2>you have a lot of different problems here, so I think you 
should do some reading first on the Mapserver web site.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=164080114-20072006><FONT face=Arial 
color=#0000ff size=2><A 
href="http://mapserver.gis.umn.edu/">http://mapserver.gis.umn.edu/</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=164080114-20072006><FONT face=Arial 
color=#0000ff size=2>and</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=164080114-20072006><FONT face=Arial 
color=#0000ff size=2><A 
href="http://mapserver.gis.umn.edu/docs/reference/mapfile">http://mapserver.gis.umn.edu/docs/reference/mapfile</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=164080114-20072006><FONT face=Arial 
color=#0000ff size=2>double check your imagepath and 
imageurl.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=164080114-20072006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=164080114-20072006></SPAN><FONT face=Arial><FONT 
color=#0000ff><FONT 
size=2>the&nbsp;main&nbsp;point&nbsp;here&nbsp;is&nbsp;that&nbsp;a&nbsp;CONTEXT&nbsp;document&nbsp;is&nbsp;part&nbsp;of&nbsp;the&nbsp;OGC&nbsp;protocols,&nbsp;so&nbsp;it&nbsp;has&nbsp;to&nbsp;point&nbsp;to&nbsp;a&nbsp;Web&nbsp;Map&nbsp;Service&nbsp;(WMS).</FONT></FONT></FONT></DIV>
<DIV><FONT><FONT color=#0000ff><FONT size=2><SPAN 
class=164080114-20072006></SPAN></FONT></FONT></FONT><SPAN 
class=164080114-20072006></SPAN><FONT face=Arial><FONT color=#0000ff><FONT 
size=2>Y<SPAN class=164080114-20072006>our current mapfile is not producing a 
WMS. You have to add some additional things to your mapfile to produce a 
WMS.</SPAN></FONT></FONT></FONT><BR><FONT face=Arial color=#0000ff size=2><A 
href="http://mapserver.gis.umn.edu/docs/howto/wms_server/?searchterm=wms%20server">http://mapserver.gis.umn.edu/docs/howto/wms_server/?searchterm=wms%20server</A></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=164080114-20072006><FONT face=Arial color=#0000ff size=2>get 
those things working first, and then try your context document 
stuff.</FONT></SPAN></DIV>
<DIV><SPAN class=164080114-20072006><FONT face=Arial color=#0000ff 
size=2>another good source of information on OGC and mapserver is the OGC 
workshop:</FONT></SPAN></DIV>
<DIV><SPAN class=164080114-20072006><FONT face=Arial color=#0000ff size=2><A 
href="http://mapserver.gis.umn.edu/docs/tutorial/ms_ogc_workshop/ogc-workshop-link/?searchterm=ogc">http://mapserver.gis.umn.edu/docs/tutorial/ms_ogc_workshop/ogc-workshop-link/?searchterm=ogc</A></FONT></SPAN></DIV>
<DIV><SPAN class=164080114-20072006></SPAN>&nbsp;</DIV>
<DIV><SPAN class=164080114-20072006><FONT face=Arial color=#0000ff size=2>D. 
Pagurek</FONT></SPAN></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List 
[mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>rock 
well<BR><B>Sent:</B> Wednesday, July 19, 2006 6:10 PM<BR><B>To:</B> 
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> [UMN_MAPSERVER-USERS] 
Generating a map with mapfile context document<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Hi all, i am trying to generate a map from mapfile context document. I have 
a mapfile with a raster layer, </DIV>
<DIV>&nbsp;</DIV>
<DIV>MAP<BR>&nbsp;&nbsp;&nbsp; NAME "wallmap"<BR>&nbsp;&nbsp;&nbsp; SIZE 600 
600<BR>&nbsp;&nbsp;&nbsp; STATUS ON<BR>&nbsp;&nbsp;&nbsp; EXTENT 610537 5291088 
627571 5308122<BR>&nbsp;&nbsp;&nbsp;&nbsp;IMAGECOLOR 255 255 
255<BR>&nbsp;&nbsp;&nbsp; IMAGETYPE JPEG<BR>&nbsp;&nbsp;&nbsp; UNITS 
METERS</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; 
WEB<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEMPLATE 
"C:\Inetpub\wwwroot\index.html"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
IMAGEPATH 
"c:\Inetpub\wwwroot\tmp\"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEURL 
"c:\Inetpub\wwwroot\tmp\"<BR>&nbsp;&nbsp;&nbsp; END</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;LAYER<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 
"raster1"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE 
RASTER<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
PROJECTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"init=epsg:26914"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
END<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATA 
"pathtotestfile.sid"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OFFSITE 0 0 
0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATUS OFF<BR>&nbsp;&nbsp;&nbsp; 
END</DIV>
<DIV>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>The mapcontext document is as follows</DIV>
<DIV>&nbsp;</DIV><FONT size=2>
<DIV>&lt;?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?&gt;</DIV>
<DIV>&lt;ViewContext version="1.0.0" id="wallmap" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xmlns="http://www.opengis.net/context" 
xsi:schemaLocation="http://www.opengis.net/context 
http://schemas.opengis.net/context/1.0.0/context.xsd"&gt;</DIV>
<DIV>&lt;General&gt;</DIV>
<DIV>&lt;Window width="600" height="600"/&gt;</DIV>
<DIV>&lt;!-- Bounding box corners and spatial reference system --&gt;</DIV>
<DIV>&lt;BoundingBox SRS="EPSG:4269" minx="610537.000000" miny="5291088.000000" 
maxx="627571.000000" maxy="5308122.000000"/&gt;</DIV>
<DIV>&lt;!-- Title of Context --&gt;</DIV>
<DIV>&lt;Title&gt;WMS Demo Server&lt;/Title&gt;</DIV>
<DIV>&lt;/General&gt;</DIV>
<DIV>&lt;LayerList&gt;</DIV>
<DIV>&lt;Layer queryable="" hidden="0"&gt;</DIV>
<DIV>&lt;Server service="WMS" version="1.1.1" title="raster1"&gt;</DIV>
<DIV>&lt;OnlineResource xlink:type="simple" 
xlink:href="http://localhost/scripts/mapserv.exe?"/&gt;</DIV>
<DIV>&lt;/Server&gt;</DIV>
<DIV>&lt;Name&gt;raster1&lt;/Name&gt;</DIV>
<DIV>&lt;Title&gt;raster1&lt;/Title&gt;</DIV>
<DIV>&lt;Abstract&gt;Info&lt;/Abstract&gt;</DIV>
<DIV>&lt;SRS&gt;EPSG:26914 &lt;/SRS&gt;</DIV>
<DIV>&lt;FormatList&gt;</DIV>
<DIV>&lt;Format&gt;image/jpeg&lt;/Format&gt;</DIV>
<DIV>&lt;/FormatList&gt;</DIV>
<DIV>&lt;StyleList&gt;</DIV>
<DIV>&lt;Style current="1"&gt;</DIV>
<DIV>&lt;Name&gt;0xb8d8f6&lt;/Name&gt;</DIV>
<DIV>&lt;Title&gt;0xb8d8f6&lt;/Title&gt;</DIV>
<DIV>&lt;LegendURL width="16" height="16" format="image/jpeg"&gt;</DIV>
<DIV></FONT><FONT face="Courier New" size=2>&lt;OnlineResource 
xlink:type="simple" xlink:href="</FONT><FONT face="Courier New" 
size=2>"/&gt;</DIV></FONT><FONT size=2>
<DIV>&lt;/LegendURL&gt;</DIV>
<DIV>&lt;/Style&gt;</DIV>
<DIV>&lt;/StyleList&gt;</DIV>
<DIV>&lt;/Layer&gt;</DIV>
<DIV>&lt;/LayerList&gt;</DIV>
<DIV>&lt;/ViewContext&gt;</DIV></FONT>
<DIV>&nbsp;</DIV>
<DIV>when i inlcude this context file in the browser, nothing gets displayed, 
the url is as follows</DIV>
<DIV>&nbsp;</DIV>
<DIV><A 
href="http://localhost/scripts/mapserv.exe?MODE=map&amp;MAP=c:/Inetpub/wwwroot/testmap.map&amp;CONTEXT=c:/Inetpub/wwwroot/contextdoc.xml&amp;LAYERS=raster1">http://localhost/scripts/mapserv.exe?MODE=map&amp;MAP=c:/Inetpub/wwwroot/testmap.map&amp;CONTEXT=c:/Inetpub/wwwroot/contextdoc.xml&amp;LAYERS=raster1</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>What more do i need to add, do i need to add anything else in the url, if 
anyone has generated a map with context file can you suggest whats missing 
...</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks for your time ...</DIV>
<DIV>kris</DIV>
<P>
<HR SIZE=1>
See the all-new, redesigned Yahoo.com. <A 
href="http://us.rd.yahoo.com/evt=40762/*http://www.yahoo.com/preview">Check it 
out.</A> </BODY></HTML>