Hi folks,<br><br>I started to play with php5-mapscript and could not understand how<br>layer-&gt;queryByFeatures() works.<br><br>Here is sample from my php script:<br>&lt;?php<br>$pagasti = $Map-&gt;getLayerByName(&quot;pagasti&quot;);
<br>$ciemi = $Map-&gt;getLayerByName(&quot;ciemi&quot;);<br>$pagasti-&gt;queryByPoint($point,MS_MULTIPLE,1000.0);<br>$ciemi-&gt;queryByFeatures($pagasti);<br>?&gt;<br><br>and output is: Warning: [MapServer Error]: msQueryByFeatures(): Selection
<br>layer has not been queried.<br><br>Any links to FM's or other hints?<br><br>Bottom line.<br>I added output of layer-&gt;resultcache-&gt;numresults at mapquery.c - here comes<br>most interesting part - if I call 2 times queryByPoint(), then at second time
<br>there is layer-&gt;resultcache variable, but when I call queryByPoint() and then<br>pass layer as slayer to queryByFeatures(), slayer has NO resultcache<br>variable.<br><br>My system:<br>Kubuntu 6<br>kernel 2.6.15<br>
Apache 2.0.55<br>PHP 5.1.2<br>PHP5-mapscript 4.6.1<br>-- <br>pb