<!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> </DIV>
<DIV><SPAN class=164080114-20072006></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT
size=2>the main point here is that a CONTEXT document is part of the OGC protocols, so it has to point to a Web Map Service (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> </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> </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> </DIV>
<DIV>MAP<BR> NAME "wallmap"<BR> SIZE 600
600<BR> STATUS ON<BR> EXTENT 610537 5291088
627571 5308122<BR> IMAGECOLOR 255 255
255<BR> IMAGETYPE JPEG<BR> UNITS
METERS</DIV>
<DIV> <BR>
WEB<BR> TEMPLATE
"C:\Inetpub\wwwroot\index.html"<BR>
IMAGEPATH
"c:\Inetpub\wwwroot\tmp\"<BR> IMAGEURL
"c:\Inetpub\wwwroot\tmp\"<BR> END</DIV>
<DIV> LAYER<BR> NAME
"raster1"<BR> TYPE
RASTER<BR>
PROJECTION<BR>
"init=epsg:26914"<BR>
END<BR> DATA
"pathtotestfile.sid"<BR> OFFSITE 0 0
0<BR> STATUS OFF<BR>
END</DIV>
<DIV>END</DIV>
<DIV> </DIV>
<DIV>The mapcontext document is as follows</DIV>
<DIV> </DIV><FONT size=2>
<DIV><?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?></DIV>
<DIV><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"></DIV>
<DIV><General></DIV>
<DIV><Window width="600" height="600"/></DIV>
<DIV><!-- Bounding box corners and spatial reference system --></DIV>
<DIV><BoundingBox SRS="EPSG:4269" minx="610537.000000" miny="5291088.000000"
maxx="627571.000000" maxy="5308122.000000"/></DIV>
<DIV><!-- Title of Context --></DIV>
<DIV><Title>WMS Demo Server</Title></DIV>
<DIV></General></DIV>
<DIV><LayerList></DIV>
<DIV><Layer queryable="" hidden="0"></DIV>
<DIV><Server service="WMS" version="1.1.1" title="raster1"></DIV>
<DIV><OnlineResource xlink:type="simple"
xlink:href="http://localhost/scripts/mapserv.exe?"/></DIV>
<DIV></Server></DIV>
<DIV><Name>raster1</Name></DIV>
<DIV><Title>raster1</Title></DIV>
<DIV><Abstract>Info</Abstract></DIV>
<DIV><SRS>EPSG:26914 </SRS></DIV>
<DIV><FormatList></DIV>
<DIV><Format>image/jpeg</Format></DIV>
<DIV></FormatList></DIV>
<DIV><StyleList></DIV>
<DIV><Style current="1"></DIV>
<DIV><Name>0xb8d8f6</Name></DIV>
<DIV><Title>0xb8d8f6</Title></DIV>
<DIV><LegendURL width="16" height="16" format="image/jpeg"></DIV>
<DIV></FONT><FONT face="Courier New" size=2><OnlineResource
xlink:type="simple" xlink:href="</FONT><FONT face="Courier New"
size=2>"/></DIV></FONT><FONT size=2>
<DIV></LegendURL></DIV>
<DIV></Style></DIV>
<DIV></StyleList></DIV>
<DIV></Layer></DIV>
<DIV></LayerList></DIV>
<DIV></ViewContext></DIV></FONT>
<DIV> </DIV>
<DIV>when i inlcude this context file in the browser, nothing gets displayed,
the url is as follows</DIV>
<DIV> </DIV>
<DIV><A
href="http://localhost/scripts/mapserv.exe?MODE=map&MAP=c:/Inetpub/wwwroot/testmap.map&CONTEXT=c:/Inetpub/wwwroot/contextdoc.xml&LAYERS=raster1">http://localhost/scripts/mapserv.exe?MODE=map&MAP=c:/Inetpub/wwwroot/testmap.map&CONTEXT=c:/Inetpub/wwwroot/contextdoc.xml&LAYERS=raster1</A></DIV>
<DIV> </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> </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>