[Cartoweb-users] Re: Identify fails on second time

Alex Kuznetsov nexikan at gmail.com
Tue Jul 18 10:09:16 EDT 2006


After spending huge amount of time on this topic, I finally realized that I
encountered
the bug from Version 4.8.0 (2006-02-02) of MapServer:

- Known issue: MapScript queryByAttributes() creates wrong WHERE clause on
  postgis layers in some cases (patch available, see bug 1629)

By the way, what about plans to issue new Cartoweb  release with newer
version of MapServer?

Alex Kuznetsov
SSFC GIS-AS student





On 7/13/06, Alex Kuznetsov <nexikan at gmail.com> wrote:
>
> Hi list,
>
> I already asked this question but didn't get any suggestions, please HELP
> ME!!!
>
> In my school Cartoweb project, if my data come from the shapefile, it
> is possible to
> identify the objects as many times as I want - application returns
> attributes for each polygon according to METADATA object in the mapfile,
> no problem, but if I try to identify the same data coming from PostGIS
> database,
> application returns query successfully just first time and for the
> next try it fails:
>
>
>
> Class : SoapFaultWrapper
> Message : Attribute query returned no results. Layer: cons_auth,
> idAttribute: gid, query: gid in ('2')
> Backtrace:
>
> file: 254 -
> C:\wamp\www\cartoweb3\coreplugins\mapquery\server\ServerMapquery.php
> call: ServerMapquery->queryLayerByAttributes(Object(ServerContext),
> "cons_auth", "gid", "gid in ('2')", False)
>
>
>
>
> gid 2 here is gid for my first polygon, which returned attributes
> successfully, but why it looks for this
> strange attribute "gid in ('2')" when I try to identify somethig second
> time???
>
>
>
> Any idea will be greatly appreciated
>
> Thank you
>
> Alex Kuznetsov
> SSFC GIS student
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20060718/1fcf0c4e/attachment-0001.html


More information about the Cartoweb-users mailing list