[Geomoose-users] More problems setting up query- GM 2.6

Bistrais, Bob Bob.Bistrais at maine.gov
Fri Jul 20 13:34:53 PDT 2012


I've applied a Band-Aid fix to the problem that allows me to query on two criteria.  Take a look at Query.php, line 287:
                                                                                $filter_string = '('.implode(' ', $predicate_strings).')';
...I have added the opening and closing parentheses around $filter_string.

As I mentioned, this works in testing, I don't think it's the most elegant solution, but haven't figured out enough of what's going on in query.php to come up with anything fancier.  Also, I don't know yet if this will work with the three search parameters I'm hoping to do.


From: Bistrais, Bob
Sent: Friday, July 20, 2012 11:16 AM
To: Bistrais, Bob; geomoose-users at lists.osgeo.org
Subject: RE: More problems setting up query- GM 2.6

I have found out a little more regarding this problem- it seems that the query string is not being formatted correctly when doing multiple selection criteria.  Here is an excerpt from my error log:

msEvalExpression: Expression parser error. Failed to parse expression: "[TOWN]" == "Winthrop") OR ("[TOWN]" == "Wales"

-Please notice that the opening and closing parentheses are missing from the statement.  It's also worth noting that I get similar errors when using the GM demo app and data.

As far as I can tell, the problem is occurring within query.php.  But I can't trace exactly where.  Any suggestions?

From: geomoose-users-bounces at lists.osgeo.org<mailto:geomoose-users-bounces at lists.osgeo.org> [mailto:geomoose-users-bounces at lists.osgeo.org]<mailto:[mailto:geomoose-users-bounces at lists.osgeo.org]> On Behalf Of Bistrais, Bob
Sent: Thursday, July 19, 2012 5:21 PM
To: geomoose-users at lists.osgeo.org<mailto:geomoose-users at lists.osgeo.org>
Subject: [Geomoose-users] More problems setting up query- GM 2.6

I'm having some problems with the query service.  In short, it works, but with problems.  I have it set up to query a point layer (shapefile).  When I search using a valid criteria, I get results in the result window.  But the selected features won't highlight.  In addition, if I have only one result, it does not zoom to that one result.

Another issue- I'm trying to modify the query window so I can enter several parameters for the same layer, for a total of 3 possible query items.  If I enter only the first query item, it works fine, but it I enter more, it returns no results when I know it should.  It looks like my input parameters are going in correctly.  Any suggestions on how to check the expression?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20120720/bbd5cd3e/attachment.html>


More information about the Geomoose-users mailing list