[mapserver-users] PHP Mapscript query

Nicol Hermann mapserver at geoworld.de
Wed Apr 10 13:43:06 PDT 2013


Steve,

thanks for your answer.
Probably you are right and something is wrong with my installation.
I will check it on an other system.

Thanks again
Nicol

Am Mittwoch, den 10.04.2013, 19:52 +0000 schrieb Lime, Steve D (MNIT):
> 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