<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV>Hi all,</DIV>
<DIV> </DIV>
<DIV>I just used MS4W 2.2.5 for the first time. I created annotation layer by code as:</DIV>
<DIV> </DIV>
<DIV> $map=ms_newMapObj(...map file name...);</DIV>
<DIV> $layer=ms_newLayerObj($map);<BR> $layer->set("name", "amp");<BR> $layer->set("data", "ampdata");<BR> $layer->set("type", MS_LAYER_ANNOTAION);<BR> $layer->set("status", MS_ON);<BR> $layer->set("labelitem", "amp_name");<BR> $class=ms_newClassObj($layer);<BR> <BR> $class->label->color->setRGB(0,0,0);<BR> $class->label->set("type", MS_TRUETYPE); <BR> $class->label->set("font", "cordia"); // this is set in fontlist file<BR> $class->label->set("size", 14);<BR> $class->label->set("position", MS_CC);<BR></DIV>
<DIV>but when it came to $image=$map->draw(); it showed warnings 9 or 10 sentences like below:</DIV>
<DIV> </DIV>
<DIV><STRONG>Warning</STRONG>: [MapServer Error]: msQueryByRect(): No matching record(s) found. in <B>D:\Work\test\area50.php</B> on line <B>42</B></DIV>
<DIV><STRONG>...</STRONG></DIV>
<DIV><STRONG>...</STRONG></DIV>
<P><STRONG></STRONG> </P>
<P>so $image->saveImage(..image file..); was error. But if I created polygon layer with this data it showed as it should. So, I tried to use the above code with previous phpmapscript (not in ms4w suit), php_mapscript_48.dll, it worked. What's wrong with my code for using with ms4w?</P>
<P> </P>
<P>TIA</P>
<P>Krung</P>
<DIV><BR><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>