[mapserver-users] php mapscript loadQuery problem

Moen, Paul T. pmoen at nd.gov
Tue Feb 9 15:31:15 EST 2010


What would I use for a CLASSITEM when my expression is a Logical “MapServer expressions”?

For example.

EXPRESSION ('[SURFACE]' == 'Paved' AND '[ROADCLASS]' == 'Primary')

Thanks,

Paul

On Feb 9, 2010, at 2:00 PM, Daniel Morissette wrote:

Moen, Paul T. wrote:
> 
> The right items are high lighted now but I get many of the following errors when I dumping the error stack.
> 
> Error in msEvalExpression(): Cannot evaluate expression, no item index defined.
> 
> This only seems to happen when there are many classes in the layer.  Are these errors expected?
> 

This would happen if you have classes with string constants (EXPRESSION 
"...") or regular expressions (EXPRESSION /.../), but you did not 
specify an ITEM in the layer definition (so MapServer has no attribute 
value to use in matching the expression).

Daniel
-- 
Daniel Morissette
http://www.mapgears.com/
_______________________________________________
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