[mapserver-users] PHP Mapscript query

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Wed Apr 10 12:52:11 PDT 2013


That error indicates a fundamental problem and I'm not even sure how you would trigger it. Basically it's generated when the type of queryObj passed to a query function is inappropriate for that particular function. Makes me wonder if your install might be mucked up.

Do you have a simple test case that demonstrates the error?

Steve

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nicol Hermann
Sent: Wednesday, April 10, 2013 1:36 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] PHP Mapscript query

Hello,

I am using PHP MapScript 6.2.0 and trying to execute a query.
Regardless if I am trying a queryByRect or a queryByAttribut I am always getting the error message:

'The query is not properly defined'

msQueryByRect(): Query error. The query is not properly defined.
msQueryByAttribute(): Query error. The query is not properly defined

The layer block look like this:

LAYER
  NAME    "plz"
  DATA    plz 
  STATUS  DEFAULT
  TYPE    POLYGON
  DEBUG  5
  CLASS
    NAME "zipcode"
    TEMPLATE "brd.html"
    STYLE
        COLOR   255 212 10
    END
  END
END

one of the query statements:
$layer->queryByRect($map->extent);

Does anybody know what I need to do to get ride of this error?
As far as I understand this is not the error message when no items are found.

Thank you very much
Nicol

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list