[mapserver-users] PHP Mapscript query

Nicol Hermann mapserver at geoworld.de
Wed Apr 10 11:35:54 PDT 2013


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



More information about the mapserver-users mailing list