On Wed, Oct 13, 2010 at 6:57 AM, Bino Oetomo <[email protected]> wrote:
> Dear All ..
>
> My in one table of my datasource (storage=PostGis, type=POINT), I have
> column called "bearing" with type "double precission".
> I want to display the points wil simple WellKnownName "Arrow", but I want to
> rotate it dynamicaly based on the value of "bearing" column.
>
> I Tried this in SLD:
>               <Rotation>
>                   <CssParameter
> name="rotation"><ogc:PropertyName>bearing</ogc:PropertyName></CssParameter>
>               </Rotation>

Rotation takes an expression not a CssParameter so

              <Rotation>
                 <ogc:PropertyName>bearing</ogc:PropertyName>
              </Rotation>

should work fine


See 
http://gridlock.openplans.org/geoserver/2.0.x/doc/en/user/styling/sld-cookbook/points.html#rotated-square
for more details.

Ian

-- 
Ian Turton

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to