<DIV>Thank you Frank.</DIV>
<DIV>I have tried the %variable% method to get the variable into the Map file but my OVF file is external to the MAP file.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I can not get the variables&nbsp;into the OVF file</DIV>
<DIV>&nbsp;</DIV>
<DIV>Now if I only could get the OVF inline with the MAP file I think I could get it to work.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any time I uncomment the inline method I get an error. but when I use the external method it works.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any suggestions?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks again.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>my map file is like this....</DIV>
<DIV>&nbsp;</DIV>
<DIV>###################################################<BR>#<BR># NodeID<BR>#NodeID<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; LAYER<BR>&nbsp; NAME nodeid<BR>&nbsp; TYPE POINT<BR>&nbsp; CONNECTIONTYPE OGR<BR>&nbsp; CONNECTION "c:\inetpub\wwwroot\maptest\office.ovf "<BR>&nbsp; #CONNECTION'&lt;OGRVRTDataSource&gt;<BR>&nbsp; #&nbsp;&nbsp;&nbsp; &lt;OGRVRTLayer name="MyPoints"&gt;<BR>&nbsp; #&nbsp;&nbsp;&nbsp; &lt;SrcDataSource&gt;ODBC:xxx/xxxr@xxx,xxx&lt;/SrcDataSource&gt;&nbsp;<BR>&nbsp; #&nbsp;&nbsp;&nbsp;<BR>&nbsp; #&nbsp;&nbsp;&lt;SrcSQL&gt;SELECT lat,lon from WANINFO where NodeID ='officeABC'&lt;/SrcSQL&gt;&nbsp;</DIV>
<DIV>&nbsp;&nbsp;# &lt;GeometryType&gt;wkbPoint&lt;/GeometryType&gt;&nbsp;<BR>&nbsp; # &lt;GeometryField encoding="PointFromColumns" x="lon" y="lat"/&gt;&nbsp;<BR>&nbsp; #&lt;/OGRVRTLayer&gt;<BR>&nbsp; #&lt;/OGRVRTDataSource&gt;'<BR>&nbsp;&nbsp; <BR>&nbsp; DUMP TRUE # for WFS only<BR>&nbsp; DATA "MyPoints"<BR>&nbsp; STATUS on<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; symbol "circle2"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; size 10<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; color 0 0 0</DIV>
<DIV>&nbsp; END<BR>END<BR>###################################################</DIV>
<DIV>SYMBOL<BR>&nbsp; NAME "circle2"<BR>&nbsp; TYPE ellipse<BR>&nbsp; FILLED false<BR>&nbsp; POINTS<BR>&nbsp;&nbsp;&nbsp; 1 1<BR>&nbsp; END<BR>END<BR></DIV>
<DIV>my office.ovf file is like this.....</DIV>
<DIV>&lt;OGRVRTDataSource&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;OGRVRTLayer name="MyPoints"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;SrcDataSource&gt;ODBC:xxx/xx@xx,xx&lt;/SrcDataSource&gt; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;SrcSQL&gt;SELECT lat,lon from WANINFO where NodeID ='officeABC'&lt;/SrcSQL&gt; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;GeometryType&gt;wkbPoint&lt;/GeometryType&gt; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;GeometryField encoding="PointFromColumns" x="lon" y="lat"/&gt; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/OGRVRTLayer&gt;<BR>&nbsp; &lt;/OGRVRTDataSource&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><B><I>Frank Warmerdam &lt;fwarmerdam@gmail.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">On Fri, 14 Jan 2005 13:03:01 -0800, Todd Birkenholtz<BR><TODDBIRKEY@YAHOO.COM>wrote:<BR>&gt; <BR>&gt; <BR>&gt; Is there any way to pass more information through the CGI URL ? <BR>&gt; <BR>&gt; I want to be able to use that variable and pass it to my OVF file and do a<BR>&gt; SQL "Where" to get that locations Longitude Latitude. Then I will place a<BR>&gt; symbol at that location. <BR>&gt; <BR>&gt; http://localhost/mapserver.exe?map=c:\inetpub\wwwroot\maptest\wanmap.map&amp;mode=map&amp;layer=states&amp;place=xmarksthespot<BR>&gt; <BR>&gt; <BR>&gt; I think the OVF will look something like this.... <BR>&gt; <OGRVRTDATASOURCE><BR>&gt; <OGRVRTLAYER name="MyPoints"><BR>&gt; <SRCDATASOURCE>ODBC:user/user@things,stuff</SRCDATASOURCE> <BR>&gt; <BR>&gt; <SRCSQL>SELECT lat,lon from secretplaces where<BR>&gt; thespot='???Information from CGI ???'</SRCSQL> <BR>&gt;
 <GEOMETRYTYPE>wkbPoint</GEOMETRYTYPE> <BR>&gt; <GEOMETRYFIELD y="lat" x="lon" encoding="PointFromColumns" /><BR>&gt; </OGRVRTLAYER><BR>&gt; </OGRVRTDATASOURCE><BR><BR>Todd,<BR><BR>I would suggest you read over:<BR>http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#variablesubstitution<BR><BR>I have never tried it myself, but I think it is what you want. Also, you will<BR>need to be quite careful about "escaping" stuff if you have odd values.<BR><BR>Best regards,<BR>-- <BR>---------------------------------------+--------------------------------------<BR>I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com<BR>light and sound - activate the windows | http://pobox.com/~warmerdam<BR>and watch the world go round - Rush | Geospatial Programmer for Rent<BR></BLOCKQUOTE><p>
                <hr size=1>Do you Yahoo!?<br>
All your favorites on one personal page – <a href="http://my.yahoo.com">Try My Yahoo!</a>