<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-2022-jp">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="MS UI Gothic" size=2>
<DIV><FONT face="MS UI Gothic" size=2>Hi, I'm trying to query a layer via 
mapscript but&nbsp;I can't get a count above 0 for numitems on the layer object 
or numvalues off the feature object.&nbsp; Is there a mapfile configuration or 
mapscript method i'm missing?</FONT></DIV>
<DIV><FONT face="MS UI Gothic" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="MS UI Gothic" size=2>Thank you,</FONT></DIV>
<DIV>Tom</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="MS UI Gothic" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="MS UI Gothic" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="MS UI Gothic" size=2>mapscript code : </FONT><FONT 
face="MS UI Gothic" size=2>-------------------------------------</FONT></DIV>
<DIV><FONT face="MS UI Gothic" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="MS UI Gothic" size=2>my $map = new 
mapscript::mapObj($mfpath);</FONT></DIV>
<DIV><FONT face="MS UI Gothic" size=2>my $lobj = 
$map-&gt;getLayerByName($lyr);</FONT></DIV>
<DIV><FONT face="MS UI Gothic" size=2>my $ret = 
$lobj-&gt;queryByRect($map,$robj);</FONT></DIV>
<DIV><FONT face="MS UI Gothic" size=2>my $numRec = 
$lobj-&gt;getNumResults();</FONT></DIV>
<DIV><FONT face="MS UI Gothic" size=2>my $results = 
$lobj-&gt;getResults();</FONT></DIV>
<DIV><FONT face="MS UI Gothic" size=2></FONT>&nbsp;</DIV><FONT 
face="MS UI Gothic" size=2>
<DIV><BR>for($i=0;$i&lt;$numRec;$i++){<BR>&nbsp;$result = 
$results-&gt;getResult($i);<BR>&nbsp;$feature = $lobj-&gt;getFeature( 
$result-&gt;{shapeindex} , $result-&gt;{tileindex} );<BR># #$att1 = 
$feature-&gt;getValue( 1 );<BR># #$att2 = $feature-&gt;getValue( 2 
);<BR>&nbsp;print $lobj-&gt;{numitems} . " " . $result-&gt;{shapeindex} . " " . 
$result-&gt;{tileindex} . " " .$feature-&gt;{numvalues} ." &lt;br&gt;";</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>output: ----------------------------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>0 4443 -1 0 <BR>0 4446 -1 0 <BR>0 4452 -1 0 <BR>0 4455 -1 0 <BR>0 4471 -1 0 
<BR>0 4472 -1 0 <BR>0 4477 -1 0 <BR>0 4479 -1 0 <BR>0 4483 -1 0 <BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>MAPFILE --------------------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>LAYER<BR>&nbsp;&nbsp; NAME m_stores<BR>&nbsp;&nbsp; TEMPLATE "<A 
href="">http://192.168.10.33/php/qtemp.html</A>"<BR>&nbsp;&nbsp; TYPE 
QUERY<BR>&nbsp;&nbsp; DATA 
bgshp/m_store_4612<BR>&nbsp;END</DIV></FONT></FONT></DIV></BODY></HTML>