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> postgis layers in some cases (patch available, see bug 1629)<br><br>By the way, what about plans to issue new Cartoweb 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> <<a href="mailto:nexikan@gmail.com">nexikan@gmail.com</a>> 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->queryLayerByAttributes(Object(ServerContext),<br>"cons_auth", "gid", "gid in ('2')", 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 "gid in ('2')" 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>