<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" 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 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
pre
{margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Good morning, <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I’m having trouble getting a response from PHP
MapScript’s Layer::queryByShape()<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I’m trying to query an OGR point layer by a Polygon Shape
that I got from querying a different layer. queryByAttribute on the same OGR
Point layer is working properly. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>My code looks like:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'> if($bannerLayer->queryByShape($tradeAreaShape)==MS_SUCCESS){ <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'> ///
. . .<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>} else {<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'> Echo
“FOUND NOTHING!”;<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>}<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The WKT of tradeAreaShape is <o:p></o:p></span></font></p>
<pre><span class=comment><font size=2 face="Courier New"><span
style='font-size:10.0pt'>POLYGON ((-63.5931228499999290 44.6328285400000480, -63.5947725799999260 44.6335656500000940, -63.5951314899999720 44.6341621000000830, -63.5957245999999260 44.6340256500000690, -63.5965530599999620 44.6338150900000410, -63.5968179299999290 44.6337532300000820, -63.5977474799999530 44.6335363100000680, -63.5982376599999380 44.6333897900000810, -63.5988134899999410 44.6332354000000460, -63.5987020099999540 44.6332166200000420, -63.5971723199999700 44.6327559600000540, -63.5969579099999580 44.6327936700000690, -63.5964623699999270 44.6323998900000450, -63.5946525499999780 44.6317434200000780, -63.5938438599999360 44.6315586800000690, -63.5932997099999400 44.6312995200000840, -63.5928279799999250 44.6307981100000570, -63.5924848199999250 44.6305387700000440, -63.5919616199999500 44.6299659500000420, -63.5916053899999270 44.6296526400000740, -63.5909086899999350 44.6292868500000850, -63.5899865099999600 44.6291208900000810, -63.5892757299999400 44.6286565300000580, -63.5884524599999280 44.6282188300000940, -63.5874521599999410 44.6277828000000910, -63.5860267299999580 44.6277003300000390, -63.5850517499999340 44.6273278300000700, -63.5841646099999590 44.6268552600000700, -63.5839624399999370 44.6268111700000530, -63.5838486099999610 44.6267392600000790, -63.5831529099999670 44.6265364200000930, -63.5826986099999660 44.6264936700000590, -63.5820406399999460 44.6262448900000660, -63.5816217099999220 44.6259225200000740, -63.5814790499999280 44.6255455100000520, -63.5812254099999450 44.6253663000000530, -63.5807831799999690 44.6253010900000500, -63.5812146799999600 44.6263535200000660, -63.5815108999999550 44.6275863300000420, -63.5816280799999730 44.6279660300000390, -63.5816691499999250 44.6280994700000520, -63.5816917799999710 44.6291450300000750, -63.5818721599999320 44.6295401500000820, -63.5820067699999640 44.6298511200000690, -63.5822121299999590 44.6303349300000600, -63.5823497599999430 44.6306541100000800, -63.5833684999999490 44.6304058400000940, -63.5843872299999480 44.6301575700000510, -63.5853932299999660 44.6299183500000820, -63.5862579099999720 44.6318944600000690, -63.5867230999999720 44.6330173000000630, -63.5868909099999660 44.6334035400000740, -63.5909856299999770 44.6318880900000750, -63.5927758399999450 44.6326734800000510, -63.5931228499999290 44.6328285400000480))</span></font></span><o:p></o:p></pre>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>And a point that should be found is<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<pre><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>POINT (</span></font><span
class=comment>-63.573535919189 44.637145996094</span><font face=Arial><span
style='font-family:Arial'>)<o:p></o:p></span></font></pre><pre><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></pre><pre><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Thanks once again, </span></font><o:p></o:p></pre>
<p><st1:PersonName w:st="on"><font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'>Josh Hevenor</span></font></st1:PersonName><br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Application
Developer<br>
</span></font><font size=1 face=Arial><span style='font-size:7.5pt;font-family:
Arial'>____________________________________________<br>
5230 South Service Road<br>
<U1:CITY u2:insAuthor="Robert Murodch" u2:insDate="2005-12-19T11:22:00Z" u2:endInsAuthor="Robert Murodch" u2:endInsDate="2005-12-19T11:22:00Z" ns1:style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" ns1:tabIndex="0"><U1:PLACE u2:insAuthor="Robert Murodch" u2:insDate="2005-12-19T11:22:00Z" u2:endInsAuthor="Robert Murodch" u2:endInsDate="2005-12-19T11:22:00Z" ns1:style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" ns1:tabIndex="0">Burlington</U1:PLACE></U1:CITY>,
Ontario <br>
L7L 5K2 <U1:COUNTRY-REGION u2:insAuthor="Robert Murodch" u2:insDate="2005-12-19T11:22:00Z" u2:endInsAuthor="Robert Murodch" u2:endInsDate="2005-12-19T11:22:00Z"><U1:PLACE u2:insAuthor="Robert Murodch" u2:insDate="2005-12-19T11:22:00Z" u2:endInsAuthor="Robert Murodch" u2:endInsDate="2005-12-19T11:22:00Z" ns1:style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" ns1:tabIndex="0">Canada</U1:PLACE></U1:COUNTRY-REGION><br>
<strong><b><font face=Arial><span style='font-family:Arial;font-weight:normal'><U1:ADDRESS u2:insAuthor="Robert Murodch" u2:insDate="2005-12-19T11:22:00Z" u2:endInsAuthor="Robert Murodch" u2:endInsDate="2005-12-19T11:22:00Z" ns1:style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" ns1:tabIndex="0"><U1:COUNTRY-REGION u2:insAuthor="Robert Murodch" u2:insDate="2005-12-19T11:22:00Z" u2:endInsAuthor="Robert Murodch" u2:endInsDate="2005-12-19T11:22:00Z"><U1:PLACE u2:insAuthor="Robert Murodch" u2:insDate="2005-12-19T11:22:00Z" u2:endInsAuthor="Robert Murodch" u2:endInsDate="2005-12-19T11:22:00Z" ns1:style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ietag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" ns1:tabIndex="0">Email:
josh.hevenor@dpra.com</span></font></b></strong></span></font><b><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial;font-weight:bold'><br>
</span></font></b><font size=1 face=Arial><span style='font-size:7.5pt;
font-family:Arial'>Internet: http://www.dpra.com</span></font><b><span
style='font-weight:bold'><br>
<br>
</span></b><font size=2 face=Arial><span style='font-size:10.0pt;font-family:
Arial'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
</span></font><strong><b><font size=2 color=silver face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:silver'>Attention:</span></font></b></strong><b><font
size=2 color=silver><span style='font-size:10.0pt;color:silver;font-weight:
bold'><br>
</span></font></b><font size=2 color=silver><span style='font-size:10.0pt;
color:silver'>Privileged/Confidential Information may be contained in this
message. Disclosure to any person other than the named recipient is
unauthorized. If you are not the intended recipient, please delete all copies
of this information and kindly notify the sender by reply email. Opinions,
conclusions and other information in this message that do not relate to the
official business of DPRA shall be understood as neither given nor endorsed by
it. DPRA and any of its subsidiaries reserve the right to monitor all e-mail
communications through its networks. Thank you.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>