<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Daniel,</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I used MS4W 2.2.5 on Windows Vista. I didn't query anything in the code. I only&nbsp;created annotation layer by&nbsp;code. But if I used previous version that was not MS4W suit, it had no error. Is this a bug of this suit?</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Krung</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Daniel Morissette &lt;dmorissette@MAPGEARS.COM&gt;<BR>To: MAPSERVER-USERS@LISTS.UMN.EDU<BR>Sent: Wednesday, October 24, 2007 2:32:19 AM<BR>Subject: Re: [UMN_MAPSERVER-USERS] Error when create annotation layer in PHPMapscript<BR><BR>Krung Saengpole wrote:<BR>&gt; Hi all,<BR>&gt;&nbsp; <BR>&gt; I have a question about creating annotation layer using phpmapscript. I <BR>&gt; created layer as follow:<BR>&gt;&nbsp; <BR>&gt;&nbsp; $layer=ms_newLayerObj($map);<BR>&gt;&nbsp; $layer-&gt;set("name", $name);<BR>&gt;&nbsp; $layer-&gt;set("data", $data);<BR>&gt;&nbsp; $layer-&gt;set("type", MS_LAYER_ANNOTAION);<BR><BR>I'm not convinced that this alone would explain the errors you got, but <BR>there is a typo here... should be MS_LAYER_ANNOTATION... perhaps try <BR>fixing that and see.<BR><BR>[...]<BR>&gt; when it came to<BR>&gt;&nbsp; <BR>&gt;
 $img=$map-&gt;draw();<BR>&gt;&nbsp; <BR>&gt; it showed 9 or 10 sentences of:<BR>&gt; ** <BR>&gt; *Warning*: [MapServer Error]: msQueryByRect(): No matching record(s) <BR>&gt; found. in *D:\Work\testing\area50.php* on line *40*<BR>&gt; *.....*<BR>&gt; *.....*<BR>&gt; *.....*<BR>&gt; <BR><BR>Could it be that you made a queryByRect() between the time the layer was <BR>created and the time at which you call $map-&gt;draw()?<BR><BR>Perhaps try calling ms_ResetErrorList() after the queryByRect() or <BR>before the call to $map-&gt;draw(). I suspect that the query leaves <BR>warnings in the error stack and this may confuse the $map-&gt;draw() method.<BR><BR>Daniel<BR>-- <BR>Daniel Morissette<BR><A href="http://www.mapgears.com/" target=_blank>http://www.mapgears.com/</A><BR></DIV><BR></DIV></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com
 </body></html>