[mapserver-users] Wrong number of query results (php mapscript)
between a static and dynamic setup
mapserver at geoworld.de
Sat Apr 26 14:54:29 EDT 2008
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
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
k2.php = php mapscript which reads the setup from 'k.map' (include of
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
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3495 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080426/f57124d7/ms.zip
More information about the mapserver-users