The whole part for filters and expressions is a mess and there are still bugs. But at least the current version 5.2 returns FALSE if no FILTER tag is set for the layer, and does not return the stupid "(null)". I'm not testing p.mapper with ancient versions of Mapserver/Mapsript. If you do not want to upgrade to a recent version you can modify this like
if ($layFilter = $this->qLayer->getFilter() ) { if ($layFilter != '"(null)"') { $this->qStr = .... .... } } armin On Thu, Oct 30, 2008 at 11:46 AM, <[EMAIL PROTECTED]> wrote: > > I understand, thanks for the info. > > I have accidentaly realised that by putting this layer in config.ini and > removing from categories list (if you use categories of course) the layer is > not shown but I can query it successfully :-) > > Just a note related to query: > > On my Linux Ubuntu (dapper) machine, I have installed mapscript package > php5-mapscript version 4.6.1-6ubuntu2. It doesn't work correctly when using > this part of query.php: > > if ($layFilter = $this->qLayer->getFilter()) { > $this->qStr = "($layFilter AND $this->qStr)"; > pm_logDebug(3, $this->qStr, "query string including FILTER > -- query.php->q_execAttributeQuery"); > } > > I get no results in attribute search and debug.log has an additional entry > that seems like the cause: > > [30-Oct-2008 09:14:48] P.MAPPER debug info > query string including FILTER -- query.php->q_execAttributeQuery > ("(null)" AND ( ( "[TEXT]" =~ /(2|2)(4|4)(3|3)(2|2).(1|1)(6|6)/ ) )) > > After removing this part, everything is ok. > > regards, dejan > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users