Thanks Martin. The filter works perfectly.
Willem
Date: Mon, 21 May 2012 22:24:53 -0700
From: Martin Davis <[email protected]>
Subject: Re: [Geoserver-users] Icon rotation for compass heading value
Cc: [email protected]
Message-ID:
<CAEH5VJvuUEFqoW5DZ52YnYu0RxD1Wz6t_sJhC6KY2qgMFf=l...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
The User Guide has a list of all the supported well-known names for marks:
http://docs.geoserver.org/stable/en/user/styling/sld-extensions/pointsymbols.html
The SLD Rotation element supports Filter expressions as content, so you can
use the Sub operator to compute the angle from the heading:
<Rotation>
<ogc:Sub>
<ogc:PropertyName>heading</ogc:PropertyName>
<ogc:Literal>90</ogc:Literal>
</ogc:Sub>
</Rotation>
On Mon, May 21, 2012 at 6:18 PM, Willem Buitendyk <[email protected]> wrote:
> I notice the simple arrow type is initially positioned at 90 degrees
> instead of 0 degrees north up. When I go to rotate the arrow it is always
> offset by 90 degrees. Is there an arrow icon that is 0 degrees (pointing
> straight up). If not, is there some way to modify the rotation angle in
> the SLD code to subtract 90 degrees from my own heading which is based on
> true north? Also, is there a definitive list of shapes with
> <WellKnownName>?
>
> Thanks,
>
> Willem
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users