[mapserver-users] Wrong number of query results (php mapscript) between a static and dynamic setup

Nicol Hermann mapserver at geoworld.de
Sat Apr 26 11:54:29 PDT 2008


Hi List,

i am fighting with a real strange behaviour of mapserver/php mapscript.
This concerns the result of an attribut query.
I get different results using a completely dynamic setup and static
mapfile.

I prepared a couple of scripts to reproduce the issue ('ms.zip').
k.map  = a mapfile
k1.php = php mapscript with a completely dynamic setup (include of
kq.php)
k2.php = php mapscript which reads the setup from 'k.map' (include of
kq.php)
kq.php = attribut.query
tmp_klima.shp|dbf|shx= Sample Shape File with some records

As both scripts (k1.php and k2.php) uses the same data source and the
same querys/expressions i expect the same results.
In fact the query result of both scripts differs although they use the
same attribut query (kq.php).

k1.php = returns the correct results
k2.php = returns a wrong number of query results (2, STATION=Wilkes is
missing)

I run both scripts with mapserver 5.0.2 on a debian lenny system.

I have no idea what happens here.
Can the behaviour have something to do with the minus values in the
queried attribut field (TJ)?

Any help would be greatly appreciated.
Many thanks
Nicol

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ms.zip
Type: application/zip
Size: 3495 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080426/f57124d7/attachment.zip>


More information about the MapServer-users mailing list