[Community] problems with filter expression in symbolizer

Jagadish Metla jmetla at yahoo.com
Fri Apr 21 05:45:27 EEST 2006


Hi

I need to render a shape file (private_property_Select.shp) with different colors based on a field classification (BL_Ratio). I'm having trouble in assigning to it RULE filter expressions. I am getting syntax error for all of the following versions that I tried for filter expressions. 

"(BL_Ratio)<=0.5"
"(BL_Ratio)>0.5 AND )BL_Ratio)<=1.0"
"(BL_Ratio)>1.0 AND (BL_Ratio)<=2.0"
"(BL_Ratio)>2"


 f.BL_Ratio<=0.5
 f.BL_Ratio>0.5 AND f.BL_Ratio<=1.0
 f.BL_Ratio>1.0 AND f.BL_Ratio<=2.0
 f.BL_Ratio>2

private_property_Select.BL_Ratio<=0.5
private_property_Select.BL_Ratio>0.5 AND private_property_Select.BL_Ratio<=1.0
private_property_Select.BL_Ratio>1.0 AND private_property_Select.BL_Ratio<=2.0
private_property_Select.BL_Ratio>2

Could someone please help me with the correct syntax for shapefile filter expressions in Mapserver

thank you,
Jagadish

This is the traceback I'm getting:

Traceback (innermost last):
  Module ZPublisher.Publish, line 101, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module Products.ZCO.overview, line 70, in overview
  Module Products.ZCO.MapRenderer, line 197, in render
  Module cartography.engine.mapserver.rendering, line 180, in render
  Module mapscript, line 806, in draw
MapServerError: msEvalExpression: Expression parser error. Failed to parse expression
msyyparse(): Expression parser error. syntax error
msEvalExpression: Expression parser error. Failed to parse expression

		
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gispython.org/pipermail/community/attachments/20060420/384aaaf3/attachment.htm>


More information about the Community mailing list