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'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 "no
matching results". I have read the script file "map_query_float.php"
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>'queryable' 'true'<br>“fields” "bound_id:BID"<br>"searchfield" "gid"<br>END<br>TEMPLATE noexit.html <br> NAME xzqj_x<br>
group "xzqj"<br> STATUS ON<br> TYPE line <br> CONNECTIONTYPE POSTGIS<br> CONNECTION "dbname=*** host=*** user=*** password=*** port=***"<br>
DATA "the_geom from xzqj_x" <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->queryByPoint($point, MS_MULTIPLE, -1);<br> else $check_query = $oLayer->queryByRect($rect);<br>
// if ($check_query == MS_SUCCESS) {<br> if ($check_query == 1) {<br> echo "<p>Layer Name:</p> <h6>" . $oLayer->name . "</h6>";<br>
$totR = $oLayer->getNumResults();<br> if($max_results_per_layer < $totR) echo "<p>results: $max_results_per_layer of $totR (limited output)</<br> else echo "<p>results: $totR</p>"; //output is "results:0"<br>
<br><br clear="all"><br>-- <br>天道酬勤<br>