<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px">
<DIV>Hi Greg</DIV>
<DIV>&nbsp;</DIV>
<DIV>Mapserver is correctly passing&nbsp;where conditions containing in-line variables to an external .ovf for me. I am using Mapserver 5.2 as in ms4w. My .ovf uses an ODBC datasource.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Here is part of a layer definition from my mapfile:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;LAYER<BR>&nbsp; NAME "main_gates"<BR>&nbsp; GROUP "FMS"<BR>&nbsp; CONNECTION "./main_gates.ovf"<BR>&nbsp; CONNECTIONTYPE OGR<BR>&nbsp; DATA "main_gates"<BR>&nbsp; FILTER "WHERE farm_id = 'úrmid%'"</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert Sanson<BR><BR>&gt;&gt;&gt; Greg Luker &lt;gluker@scu.edu.au&gt; 12/02/2009 1:15 p.m. &gt;&gt;&gt;<BR>Hi mapservers-users,<BR><BR>Thanks Steve W, Pietro, and Andreas for your help!<BR><BR>I have got around some of the problem (MapServer error messages and <BR>MySQL passwords visible in browser View/Source) by moving the OGRVRT <BR>MySQL info from inline in the .map file into an external .ovf file <BR>(Pietro's &gt;1024 characters problem seems right), but two problems remain.<BR><BR>1) I originally abandoned external .ovf file because I can't pass <BR>variables into it like I can when inline (eg can't do <BR>(s.site_num_previous_surveys &gt;= %myvarn%) in external .ovf). Is there <BR>a way to use variables in .ovf file?<BR><BR>2) I am still getting an error in View/Source:<BR>&lt;br&gt;&lt;!--getString(): Symbol definition error. Parsing error near <BR>(DD):(line 677)--&gt;<BR>I've tried finding this problem in SYMBOL-related commands in the <BR>.map file, but no luck. Any ideas?<BR><BR>(I can send .map file if that helps)<BR><BR>Thanks,<BR>Greg Luker.<BR>Australia.<BR><BR><BR><BR><BR>_______________________________________________<BR>mapserver-users mailing list<BR>mapserver-users@lists.osgeo.org<BR><A href="http://lists.osgeo.org/mailman/listinfo/mapserver">http://lists.osgeo.org/mailman/listinfo/mapserver</A>-users<BR><BR></DIV><br><br><table bgcolor=white style="color:black"><tr><td><br>------------------------------------------------------------------<br>
The&nbsp;contents&nbsp;of&nbsp;this&nbsp;email&nbsp;are&nbsp;confidential&nbsp;to&nbsp;AsureQuality.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;the&nbsp;message&nbsp;and&nbsp;any&nbsp;attachments.&nbsp;The&nbsp;opinions&nbsp;expressed&nbsp;in&nbsp;this&nbsp;email&nbsp;are&nbsp;not&nbsp;necessarily&nbsp;those&nbsp;of&nbsp;AsureQuality.&nbsp;This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;known&nbsp;viruses&nbsp;before&nbsp;delivery.&nbsp;AsureQuality&nbsp;supports&nbsp;the&nbsp;Unsolicited&nbsp;Electronic&nbsp;Messages&nbsp;Act&nbsp;2007.&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;wish&nbsp;to&nbsp;receive&nbsp;similar&nbsp;communications&nbsp;in&nbsp;future,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;of&nbsp;this&nbsp;message.<br>
------------------------------------------------------------------</td></tr></table></BODY></HTML>