[Geomoose-users] Problem with query, GM 2.6

Bistrais, Bob Bob.Bistrais at maine.gov
Tue Jun 26 13:07:32 PDT 2012


After trying a few things with no success, I shifted gears and went over to another application.  In this case, my query layer is a simple shapefile of townships in the state.  It has a field called TOWN, which is the town names.

I altered my mapbook.xml to point to the layer.  Now when I try the query tool on it, I get the message "CGI / FastCGI has encountered a problem and needs to close.  We are sorry for the inconvenience."

I have the error log at debug=5.  Here's the errors it returns-

Tue Jun 26 16:00:27 2012].335000 CGI Request 1 on process 4316
[Tue Jun 26 16:00:27 2012].335000 msDrawMap(): rendering using outputformat named png8 (AGG/PNG8).
[Tue Jun 26 16:00:27 2012].335000 msDrawMap(): WMS/WFS set-up and query, 0.000s
[Tue Jun 26 16:00:27 2012].335000 msDrawMap(): Layer 0 (MAINE), 0.000s
[Tue Jun 26 16:00:27 2012].335000 msDrawMap(): Drawing Label Cache, 0.000s
[Tue Jun 26 16:00:27 2012].335000 msDrawMap() total time: 0.000s
[Tue Jun 26 16:00:27 2012].366000 msSaveImage(stdout) total time: 0.031s
[Tue Jun 26 16:00:27 2012].397000 mapserv request processing time (msLoadMap not incl.): 0.031s
[Tue Jun 26 16:00:27 2012].397000 msFreeMap(): freeing map at 023EC268.
[Tue Jun 26 16:00:39 2012].69000 msQueryByRect(): Search returned no results. No matching record(s) found.
[Tue Jun 26 16:02:03 2012].569000 msQueryByRect(): Search returned no results. No matching record(s) found.


- I see the WMS/WFS set up and query line, but this is a Mapserver service.



-----Original Message-----
From: Eli Adam [mailto:eadam at co.lincoln.or.us] 
Sent: Monday, June 25, 2012 6:57 PM
To: Bistrais, Bob
Cc: geomoose-users at lists.osgeo.org
Subject: Re: [Geomoose-users] Problem with query, GM 2.6

Bob,

On Mon, Jun 25, 2012 at 1:39 PM, Bistrais, Bob <Bob.Bistrais at maine.gov> wrote:
> I'm trying to get the query service working with my own data.  It 
> works with the demo data, but when I try it with my own data I get an 
> error- "no results found".  As far as I can tell, the configuration is 
> good.  Looking at the error log I see this message:
>
>
>
> [Mon Jun 25 16:31:37 2012].816000 getSymbol(): Symbol definition error.
> Parsing error near (Town):(line 228)

One of your .map files probably references a symbol that is not in /maps/symbols/symbol.sym

>
> [Mon Jun 25 16:31:37 2012].972000 msQueryByRect(): Search returned no 
> results. No matching record(s) found.

This is QueryByPoint with a similar error, http://www.mapserver.org/errors.html#msquerybypoint-search-returned-no-results.
 Not sure if it is applicable to QueryByRect.

>
> [Mon Jun 25 16:31:37 2012].987000 msEvalExpression(): General error message.
> Cannot evaluate expression, no item index defined.

There may be some hints for the "Cannot evaluate expression, no item index defined." message in this thread, http://lists.osgeo.org/pipermail/mapserver-users/2010-February/064572.html

> The layer is a personal Geodatabase and it works well otherwise, 
> including with Identify.

You may also want to up the level of debug output to 5 to get more detail, and look at the actual query sent to the datasource.
Sometimes seeing what is actually sent shows something obviously incorrect and then you can focus on why that parameter is incorrect.

HTH, Eli

>
>
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>


More information about the Geomoose-users mailing list