On Tue, Oct 23, 2012 at 8:38 AM, obtin <[email protected]> wrote:
>
> Hi all,
>
> in my sld i have symbols wich are to be rotated. The angle is stored in a
> field called 'suunta' and is stored in radians. I am to use the following to
> rotate them:
>
> <Rotation>
> <ogc:Function name="toDegrees">
>
> <ogc:PropertyName>suunta</ogc:PropertyName>
> </ogc:Function>
> <ogc:PropertyName>suunta</ogc:PropertyName>
> </Rotation>
>
> My problem is that the angles are stored as 1/10000 parts of a radian. So to
> get them into computable radians I would need to divide the 'suunta' field
> with 10000. How is this done in GS/SLD?
If it's stored in 1/10000 don't you have to multiply it?
<ogc:Function name="toDegrees">
<ogc:Mul>
<ogc:PropertyName>suunta</ogc:PropertyName>
<ogc:Literal>10000</ogc:Literal>
</ogc:Mul>
</ogc:Function>
If you have to divide, use ogc:Div instead
Cheers
Andrea
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users