On Tue, Jun 25, 2013 at 5:23 PM, Jonathan Moules <
jonathanmou...@warwickshire.gov.uk> wrote:

> Hi List,
> I have a property that contains orientation for a label, unfortunately
> it's the wrong way (wouldn't it be nice if everyone just used the same
> convention for orienting and anchoring?). So where my data has "90" it
> should be pointing upward, but GeoServer points this downwards.
>
> Filter Functions should let me fix I think this but I'm coming unstuck -
> I'm struggling to find examples to work from.
>
> Psuedocode:
>
> if PROPERTY > 0
>   - PROPERTY
> else
>  + PROPERTY
> endif
>
> basically I want to put a minus (-) in front of positives and a plus (+)
> in front of negatives. How do I do this in an SLD?
>

Not sure it's going to move the arrow exactly where you'd like it, but try
this:

<ogc:Mul>
  <ogc:Literal>-1</ogc:Literal>
  <ogc:PropertyName>yourProperty</ogc:PropertyName>
</ogc:Mul>

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

-------------------------------------------------------
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to