Thanks for answering, Patricio, but that doesn't seem to resolve the problem. <br>I adapted the minor differences and yet the point is not displayed...<br><br><br><br><div><span class="gmail_quote">2006/5/5, Patricio Cifuentes Ithal &lt;
<a href="mailto:pcifuentes@siigsa.cl">pcifuentes@siigsa.cl</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="direction: ltr;">







<div><font color="#000080" face="MS Sans Serif" size="2">Hi all....</font></div>
<div><font color="#000080" face="MS Sans Serif" size="2">here a 
example....</font></div>
<div><font color="#000080" face="MS Sans Serif" size="2"></font>&nbsp;</div>
<div><font color="#000080" face="MS Sans Serif" size="2">php-mapscript.... PHP 
code</font></div>
<div><font color="#000080" face="MS Sans Serif" size="2"></font>&nbsp;</div><font color="#000080" face="MS Sans Serif" size="2">
<div><br>&nbsp;/*ms_ResetErrorList();*/<br>&nbsp;/*LEYENDA DE 
CREDITOS**************************************************/<br>&nbsp;$lay=ms_newLayerObj($map);<br>&nbsp; 
$lay-&gt;set(&quot;name&quot;, 
&quot;CREDITOS&quot;);<br>&nbsp;$lay-&gt;set(&quot;status&quot;,MS_ON);<br>&nbsp;$lay-&gt;set(&quot;transparency&quot;,&quot;100&quot;);<br>&nbsp;$lay-&gt;set(&quot;transform&quot;,MS_TRUE);<br>&nbsp;$lay-&gt;set(&quot;type&quot;,MS_LAYER_ANNOTATION);
<br>&nbsp;<br>&nbsp;$clas=ms_newClassObj($lay);<br>&nbsp;$clas-&gt;label-&gt;set(&quot;type&quot;,MS_TRUETYPE);<br>&nbsp;$clas-&gt;label-&gt;set(&quot;font&quot;,&quot;fritqat-bold&quot;);<br>&nbsp;$clas-&gt;label-&gt;color-&gt;setRGB(0,130,150);
<br>&nbsp;$clas-&gt;label-&gt;outlinecolor-&gt;setRGB(255,255,255);<br>&nbsp;//$clas-&gt;label-&gt;backgroundcolor-&gt;setRGB(245,245,245);<br>&nbsp;//$clas-&gt;label-&gt;backgroundshadowcolor-&gt;setRGB(110,110,110);<br>&nbsp;$clas-&gt;label-&gt;set(&quot;size&quot;,7);
<br>&nbsp;$clas-&gt;label-&gt;set(&quot;position&quot;,MS_XY);<br>&nbsp;$clas-&gt;label-&gt;set(&quot;autoangle&quot;,MS_FALSE);<br>&nbsp;$clas-&gt;label-&gt;set(&quot;buffer&quot;,0);<br>&nbsp;$clas-&gt;label-&gt;set(&quot;antialias&quot;,MS_TRUE);
<br>&nbsp;$clas-&gt;label-&gt;set(&quot;partials&quot;,MS_TRUE);<br>&nbsp;$clas-&gt;label-&gt;set(&quot;force&quot;,MS_TRUE);<br>&nbsp;$clas-&gt;label-&gt;set(&quot;wrap&quot;,1);<br>&nbsp;</div>
<div>//transfor the pixel to geografics 
pont<br>&nbsp;$p=pixelToGeo($map,5,$map-&gt;height - 
5);<br>&nbsp;$pt=ms_newLineObj();<br>&nbsp;$pt-&gt;addXY($p-&gt;x,$p-&gt;y);</div>
<div>///or replace for coord... geografics 
($pt-&gt;addXY($p-&gt;x,$p-&gt;y);)</div><div style="direction: ltr;"><span class="q"><br>&nbsp;<br>&nbsp;$shp = 
ms_newShapeObj(MS_SHAPE_POINT);<br></span></div><div style="direction: ltr;">&nbsp; $shp-&gt;set(&quot;text&quot;, 
GV_COPY);<br>&nbsp; 
$shp-&gt;add($pt);<br>&nbsp;<br>&nbsp;$lay-&gt;addFeature($shp);</div></font>
<div><font color="#000080" face="MS Sans Serif" size="2"></font>&nbsp;</div>
<div><font color="#000080" face="MS Sans Serif" size="2"></font>&nbsp;</div>
<div>-- </div>
<div>&nbsp;</div>
<div>Patricio Cifuentes Ithal<br>Ingeniero en Informática</div>
<div>&nbsp;</div>
<div>Informática<br>SIIGSA<br>(56-2) 204 60 22</div></div><div style="direction: ltr;"><span class="e" id="q_10b05b8a73dc52f5_3">
<blockquote style="border-left: 2px solid rgb(0, 0, 128); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
  <div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b> 
  <a title="dark.peony@GMAIL.COM" href="mailto:dark.peony@GMAIL.COM" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">d c</a> 
</div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="MAPSERVER-USERS@lists.umn.edu" href="mailto:MAPSERVER-USERS@lists.umn.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
MAPSERVER-USERS@lists.umn.edu</a> 
  </div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> Friday, May 05, 2006 1:57 PM
</div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> [UMN_MAPSERVER-USERS] drawing a 
  point in MapScript</div>
  <div><br></div>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></blockquote>

</span></div></blockquote></div><br>