<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">王连波</b> <span dir="ltr"><<a href="mailto:happyforev1@gmail.com">happyforev1@gmail.com</a>></span><br>Date: 2009/12/25<br>
Subject: Re: [ka-Map-users] query in ka-map with mapserver<br>To: Hajime TANAKA <<a href="mailto:hajime.tanaka@tufts.edu">hajime.tanaka@tufts.edu</a>><br><br><br>Hi Hajime,<br>I did what you told me, to add "TEMPLATE" at a layer level, but still can not get the results. In my opinion, I think maybe there is something wrong when querying from Postgis, because I get the layers' name, but zero results with the following sentences in the script file map_query_float.php :<br>
if ($check_query == 1) {<br> echo "<p>Layer Name:</p> <h6>" . $oLayer->name . "</h6>";<br> //echo "<br>num records:".$oLayer->getNumResults();<br>
$totR = $oLayer->getNumResults();<br>May I get some more suggestion? Thank you .<br><br><div class="gmail_quote">2009/12/25 Hajime TANAKA <span dir="ltr"><<a href="mailto:hajime.tanaka@tufts.edu" target="_blank">hajime.tanaka@tufts.edu</a>></span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Sorry, in fact you need TEMPLATE for queries,<br>
<br>
<a href="http://old.nabble.com/Make-Querys-with-Ka-Map-td23699094.html" target="_blank">http://old.nabble.com/Make-Querys-with-Ka-Map-td23699094.html</a><br>
<br>
Did you search the old log files?<br>
<div><div></div><div><br>
2009/12/24 王连波 <<a href="mailto:happyforev1@gmail.com" target="_blank">happyforev1@gmail.com</a>>:<br>
> Thank you, Hajime.<br>
> I have just tried what you indicated me. But, nothing is changed and I<br>
> still can not get "no matching results". Some other suggestion, please?<br>
><br>
> On Thu, Dec 24, 2009 at 6:24 PM, Hajime TANAKA <<a href="mailto:hajime.tanaka@tufts.edu" target="_blank">hajime.tanaka@tufts.edu</a>><br>
> wrote:<br>
>><br>
>> Please give a try of setting<br>
>><br>
>> CLASSITEM<br>
>> and<br>
>> EXPRESSION in the CLASS<br>
>><br>
>> 2009/12/24 王连波 <<a href="mailto:happyforev1@gmail.com" target="_blank">happyforev1@gmail.com</a>>:<br>
>> > Hi all,<br>
>> > I am really anxious about ka-map query and search now. In my mapfile I<br>
>> > configured a layer as follows and it displayed a city's boundary<br>
>> > constituted<br>
>> > of 68 lines. Then I think it is valid to select some of the lines and<br>
>> > get<br>
>> > their id from the table where the_geo DATA is stored in my database.<br>
>> > However, when I finished the query just get "no matching results". I<br>
>> > have<br>
>> > read the script file "map_query_float.php" and found nothing special.<br>
>> > Should<br>
>> > I configure the mapfile to tell ka-map which table in postgis is going<br>
>> > to be<br>
>> > looked for? If so, how? If not, why I can not get what I want ? Thank<br>
>> > you<br>
>> > for any clues.<br>
>> ><br>
>> > a querable layer of my mapfile<br>
>> > LAYER<br>
>> > METADATA<br>
>> > 'queryable' 'true'<br>
>> > fields "bound_id:BID"<br>
>> > hyperlink "cat|myurl"<br>
>> > "searchfield" "gid"<br>
>> > END<br>
>> > NAME xzqj_x<br>
>> > group "xzqj"<br>
>> > STATUS ON<br>
>> > TYPE line #if POINT is used,every polygon is white<br>
>> > and<br>
>> > label is ineffective<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>
>> ><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Hajime Tanaka<br>
>> _______________________________________________<br>
>> ka-Map-users mailing list<br>
>> <a href="mailto:ka-Map-users@lists.maptools.org" target="_blank">ka-Map-users@lists.maptools.org</a><br>
>> <a href="http://lists.maptools.org/mailman/listinfo/ka-map-users" target="_blank">http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br>
><br>
><br>
><br>
> --<br>
> 天道酬勤<br>
><br>
<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div>Hajime Tanaka<br>
_______________________________________________<br>
ka-Map-users mailing list<br>
<a href="mailto:ka-Map-users@lists.maptools.org" target="_blank">ka-Map-users@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/ka-map-users" target="_blank">http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br>
</div></div></blockquote></div></div></div><font color="#888888"><br><br clear="all"><br>-- <br>天道酬勤<br>
</font></div><br><br clear="all"><br>-- <br>天道酬勤<br>