Hi all,<br><br>I know that this question is more about ka-map rather than MapServer, however I have not got what I want from that mailing-list yet. So I want to get some suggestion here.<br>I am really anxious about ka-map query and search now. In my
mapfile I configured a layer as follows and it displayed a city&#39;s
boundary constituted of 68 lines. Then I think it is valid to select
some of the lines and get their id from the table where the_geo DATA is
stored in my database. However, when I finished the query just get &quot;no
matching results&quot;. I have read the script file &quot;map_query_float.php&quot;
and found nothing special. Maybe it is because of the ka-map scripts? Thank you for any clues.  <br>
<br>1、a querable layer of my mapfile <br> LAYER<br>METADATA<br>&#39;queryable&#39; &#39;true&#39;<br>“fields” &quot;bound_id:BID&quot;<br>&quot;searchfield&quot; &quot;gid&quot;<br>END<br>TEMPLATE    noexit.html <br>   NAME      xzqj_x<br>

   group   &quot;xzqj&quot;<br>   STATUS ON<br>   TYPE line                   <br>   CONNECTIONTYPE POSTGIS<br>   CONNECTION &quot;dbname=*** host=*** user=*** password=*** port=***&quot;<br>
   DATA &quot;the_geom from xzqj_x&quot;       <br>#    labelitem cname   <br>     CLASS<br>        NAME    xzqj_x<br>       STYLE<br>        symbol  dashed1<br>        size    3<br>        color   100 100 100<br>        END<br>

    END<br>END<br><br>2、part of the script file map_query_float.php in ka-map:<br>       if ($q_type == 0)   $check_query = $oLayer-&gt;queryByPoint($point, MS_MULTIPLE, -1);<br>                else       $check_query = $oLayer-&gt;queryByRect($rect);<br>
//              if ($check_query == MS_SUCCESS) {<br>                if ($check_query == 1) {<br>                        echo &quot;&lt;p&gt;Layer Name:&lt;/p&gt; &lt;h6&gt;&quot; . $oLayer-&gt;name . &quot;&lt;/h6&gt;&quot;;<br>
                        $totR = $oLayer-&gt;getNumResults();<br>                        if($max_results_per_layer &lt; $totR) echo &quot;&lt;p&gt;results: $max_results_per_layer of $totR (limited output)&lt;/<br>                        else echo &quot;&lt;p&gt;results: $totR&lt;/p&gt;&quot;; //output is &quot;results:0&quot;<br>
                       <br><br clear="all"><br>-- <br>天道酬勤<br>