<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Arial","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Arial","sans-serif";
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Arial","sans-serif";
color:#1F497D;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>Should have done a bit more
thinking and reading. A dummy OGR Connection does the trick:<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
CONNECTIONTYPE OGR<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> CONNECTION
'<OGRVRTDataSource><o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> <OGRVRTLayer
name="Whatever"><o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> <SrcDataSource>ODBC:Whatever/whatever@whatever</SrcDataSource><o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> <SrcSQL>SELECT
%lng% as Longitude, %lat% as Latitude</SrcSQL><o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> <GeometryType>wkbPoint</GeometryType><o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> <LayerSRS>WGS84</LayerSRS><o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> <GeometryField
encoding="PointFromColumns" x="Longitude"
y="Latitude"/><o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> </OGRVRTLayer><o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> </OGRVRTDataSource>'<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal><span style='color:#1F497D'>David P. Shorthouse<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>------------------------------------------------------<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Department of Biological
Sciences<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>CW-403, Biological Sciences
Centre<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>University of Alberta<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Edmonton, AB T6G 2E9<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><a href="mailto:dps1@ualberta.ca"><span
style='color:blue'>mailto:dps1@ualberta.ca</span></a><o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><a
href="http://canadianarachnology.webhop.net"><span style='color:blue'>http://canadianarachnology.webhop.net</span></a><o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><a
href="http://arachnidforum.webhop.net"><span style='color:blue'>http://arachnidforum.webhop.net</span></a><o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><a
href="http://www.spiderwebwatch.org/"><span style='color:blue'>http://www.spiderwebwatch.org</span></a><br>
------------------------------------------------------<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Shorthouse, David
[mailto:dps1@ualberta.ca] <br>
<b>Sent:</b> Saturday, March 17, 2007 1:06 AM<br>
<b>To:</b> 'mapserver-users@lists.umn.edu'<br>
<b>Subject:</b> points variable substitution<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I am wanting to plot one point as provided by a cgi query
parameter for a very simple application, but substituting something like POINTS
-113 45 END with POINTS %lng% %lat% END doesn’t work like I thought it
would. Any suggestions for how to pass a point via URL parameters (e.g.
&lng=-113&lat=45) & have it appear on a resultant map?<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Thanks,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>David P. Shorthouse<o:p></o:p></p>
<p class=MsoNormal>------------------------------------------------------<o:p></o:p></p>
<p class=MsoNormal>Department of Biological Sciences<o:p></o:p></p>
<p class=MsoNormal>CW-403, Biological Sciences Centre<o:p></o:p></p>
<p class=MsoNormal>University of Alberta<o:p></o:p></p>
<p class=MsoNormal>Edmonton, AB T6G 2E9<o:p></o:p></p>
<p class=MsoNormal><a href="mailto:dps1@ualberta.ca">mailto:dps1@ualberta.ca</a><o:p></o:p></p>
<p class=MsoNormal><a href="http://canadianarachnology.webhop.net">http://canadianarachnology.webhop.net</a><o:p></o:p></p>
<p class=MsoNormal><a href="http://arachnidforum.webhop.net">http://arachnidforum.webhop.net</a><o:p></o:p></p>
<p class=MsoNormal><a href="http://www.spiderwebwatch.org/">http://www.spiderwebwatch.org</a><br>
------------------------------------------------------<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>