<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.5346.5" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Norbert wrote:</FONT></DIV>
<DIV><FONT size=2>&gt; </FONT>if I remember correctly you have to:<BR>&gt; 1. 
get a layer<BR>&gt; 2. open the layer<BR>&gt; 3. get a feature from the layer 
with shape- and tileindex<BR>&gt; 4. get a value from the feature (loop through 
with the numvalues)<BR>&gt; 5. close the layer<BR></DIV>
<DIV>Thanks Norbert. By fishing around the documentation and email archives (for 
way too long!) and by trial-and-error I figure out this code:</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>$layer-&gt;open();</FONT></DIV>
<DIV><FONT size=2>for ($i=0; $i&lt;13; $i++) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $shp = $layer-&gt;getShape(-1, 
$i);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo 
$shp-&gt;getvalue($layer, "myfieldname");</FONT></DIV>
<DIV><FONT size=2>}<BR>$layer-&gt;close();</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>I don't know how to obtain the&nbsp;number 
of&nbsp;ShapeObj's&nbsp;in the layer, so I just hardwired 13 in there because I 
knew there were 13 points in the layer I was accessing. But there must be some 
attribute to the LayerObj or a function call that returns that 
number?</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>John</FONT></DIV></BODY></HTML>