<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"> </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 created annotation layer by 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"> </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"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Daniel Morissette <dmorissette@MAPGEARS.COM><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>> Hi all,<BR>> <BR>> I have a question about creating annotation layer using phpmapscript. I <BR>> created layer as follow:<BR>> <BR>> $layer=ms_newLayerObj($map);<BR>> $layer->set("name", $name);<BR>> $layer->set("data", $data);<BR>> $layer->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>> when it came to<BR>> <BR>>
$img=$map->draw();<BR>> <BR>> it showed 9 or 10 sentences of:<BR>> ** <BR>> *Warning*: [MapServer Error]: msQueryByRect(): No matching record(s) <BR>> found. in *D:\Work\testing\area50.php* on line *40*<BR>> *.....*<BR>> *.....*<BR>> *.....*<BR>> <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->draw()?<BR><BR>Perhaps try calling ms_ResetErrorList() after the queryByRect() or <BR>before the call to $map->draw(). I suspect that the query leaves <BR>warnings in the error stack and this may confuse the $map->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>