After spending huge amount of time on this topic, I finally realized that I encountered<br>the bug from Version 4.8.0 (2006-02-02) of MapServer:<br><br>- Known issue: MapScript queryByAttributes() creates wrong WHERE clause on
<br>&nbsp; postgis layers in some cases (patch available, see bug 1629)<br><br>By the way, what about plans to issue new Cartoweb&nbsp; release with newer version of MapServer?<br><br>Alex Kuznetsov<br>SSFC GIS-AS student<br><br><br>
<br><br><br><div><span class="gmail_quote">On 7/13/06, <b class="gmail_sendername">Alex Kuznetsov</b> &lt;<a href="mailto:nexikan@gmail.com">nexikan@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi list,<br><br>I already asked this question but didn't get any suggestions, please HELP ME!!!<br><br>In my school Cartoweb project, if my data come from the shapefile, it<br>is possible to<br>identify the objects as many times as I want - application returns
<br>attributes for each polygon according to METADATA object in the mapfile,<br>no problem, but if I try to identify the same data coming from PostGIS database,<br>application returns query successfully just first time and for the
<br>next try it fails:<br><br><br><br>Class : SoapFaultWrapper<br>Message : Attribute query returned no results. Layer: cons_auth,<br>idAttribute: gid, query: gid in ('2')<br>Backtrace:<br><br>file: 254 - C:\wamp\www\cartoweb3\coreplugins\mapquery\server\ServerMapquery.php
<br>call: ServerMapquery-&gt;queryLayerByAttributes(Object(ServerContext),<br>&quot;cons_auth&quot;, &quot;gid&quot;, &quot;gid in ('2')&quot;, False)<br><br><br><br><br>gid 2 here is gid for my first polygon, which returned attributes
<br>successfully, but why it looks for this<br>strange attribute &quot;gid in ('2')&quot; when I try to identify somethig second time???<br><br><br><br>Any idea will be greatly appreciated<br><br>Thank you<br><br>Alex Kuznetsov
<br>SSFC GIS student<br></blockquote></div><br>