Of course the minute I hit send I see my error - I need PropertyIsEqualTo of
course.
Sorry.....
_____________________________________________
From: Freeman, Aleda (EEA)
Sent: Tuesday, September 14, 2010 11:34 AM
To: geoserver-users@lists.sourceforge.net
Subject: Filter function strLength
Can I use strLength not just for labeling, but for the Filter?
Here's what I'm trying to do... if the road's route number is 3 digits, use a
wider road shield.
However, this doesn't work - I get the wider road shield regardless of digits.
So I'm wondering if I'm not allowed to use strLength under Filter?
<Rule>
<Filter xmlns="http://www.opengis.net/ogc">
<Function name="strLength">
<PropertyName>RT_NUMBER</PropertyName>
<Literal>3</Literal>
</Function>
</Filter>
<TextSymbolizer>
<Label>
<PropertyName
xmlns="http://www.opengis.net/ogc">RT_NUMBER</PropertyName>
</Label>
<Fill>
<CssParameter name="fill">#686868</CssParameter>
</Fill>
<Font>
<CssParameter
name="font-family">Verdana</CssParameter>
<CssParameter name="font-size">9</CssParameter>
<CssParameter name="font-weight">bold</CssParameter>
</Font>
<Graphic>
<ExternalGraphic>
<OnlineResource
xlink:href="http://maps.massgis.state.ma.us/images/state_rectangle.gif"/>
<Format>image/png</Format>
</ExternalGraphic>
<Size>28</Size>
</Graphic>
<VendorOption name="spaceAround">5</VendorOption>
<VendorOption name="group">true</VendorOption>
<Priority>100000</Priority>
</TextSymbolizer>
</Rule>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users