Hi,<br><br>I'm having a problem with rendering a point with PHP&nbsp; Mapscript.<br>I'm wondering what I'm&nbsp; doing wrong.&nbsp;&nbsp; I'm&nbsp; trying to&nbsp; simulate the <br>following Mapfile code (which works well in Mapfile mode):<br><br>LAYER&nbsp;
<br>&nbsp;&nbsp;&nbsp; TYPE POINT
<br>&nbsp;&nbsp;&nbsp; STATUS DEFAULT
<br>&nbsp;&nbsp;&nbsp; &nbsp; FEATURE
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; POINTS&nbsp;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; -64.4333333 -64.7833333&nbsp;&nbsp;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TEXT &quot;HELLO WORLD&quot;
<br>&nbsp;&nbsp;&nbsp; END
<br>&nbsp;&nbsp;&nbsp; CLASS
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 255 0 0&nbsp;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SYMBOL 'cross'
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; LABEL
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TYPE bitmap
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END
<br>&nbsp;&nbsp;&nbsp; END
<br>&nbsp;&nbsp;&nbsp; TOLERANCE 5
<br>&nbsp;&nbsp;&nbsp; PROJECTION
<br>&nbsp;&nbsp; &quot;proj=latlong&quot;
<br>&nbsp;&nbsp; &quot;datum=WGS84&quot;
<br>&nbsp;&nbsp;&nbsp; END
<br>END
<br><br><br>/********* PHP CODE ***********/<br> <br>$map = ms_newMapObj(&quot;Ant.map&quot;);<br>&nbsp; <br>&nbsp; $layer = ms_newLayerObj($map);<br>&nbsp; $layer-&gt;name = 'point';<br>&nbsp; $layer-&gt;type = MS_LAYER_POINT;<br>&nbsp; $layer-&gt;status = MS_DEFAULT;
<br>&nbsp; $layer-&gt;setProjection(&quot;proj=latlong,datum=WGS84&quot;);<br><br>&nbsp; $pt = ms_newPointObj();<br>&nbsp; $pt-&gt;setXY(-64.4333333,-64.7833333);<br>&nbsp; $ln = ms_newLineObj();<br>&nbsp; $ln-&gt;add($pt);<br>&nbsp; <br>&nbsp; $shp = ms_newShapeObj(MS_SHAPE_POINT);
<br>&nbsp; $shp-&gt;text = 'HELLO WORLD';<br>&nbsp; $shp-&gt;add($ln);<br>&nbsp; <br>&nbsp; $layer-&gt;addFeature($shp);<br><br><br>&nbsp; $class1 = ms_newClassObj($layer); &nbsp;<br>&nbsp; $class1-&gt;name = 'pointclass';<br>&nbsp; $class1-&gt;label-&gt;type = MS_BITMAP;
<br>&nbsp; $class1-&gt;label-&gt;color-&gt;setRGB(255,0,0);<br>&nbsp; $class1-&gt;label-&gt;set('position',MS_AUTO);<br>&nbsp; $class1-&gt;status = MS_ON;<br>&nbsp; $class1-&gt;settext = 'HELLO WORLD';<br>&nbsp; <br>&nbsp; <br>&nbsp; $style = ms_newStyleObj($class1);
<br>&nbsp; $style-&gt;symbolname = 'cross';<br>&nbsp; $style-&gt;color-&gt;setRGB(255,0,0); <br>&nbsp; $style-&gt;size = 10;<br>&nbsp; $style-&gt;outlinecolor-&gt;setRGB(255,255,255);<br>&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp; $image=$map-&gt;draw();<br>&nbsp; <br>&nbsp; $image-&gt;saveImage('C:/ms4w/Apache/htdocs/tmp/'.$image_name);
<br><br>I'm followig (except for the projection bit) the code proposed in<br>Beginning Mapserver and a tutorial I found on the Net. The code<br>seems identical.<br><br>What am I doing wrong? <br><br>Dan<br>