On Fri, Feb 14, 2014 at 11:37 AM, uki <[email protected]> wrote:

> Hi all,
>
> I'm using CSS styling, which works great, but I have an issue with unit of
> measure for a value that is calculated with an expression. According to
> this
> post: http://geo-solutions.blogspot.it/2014/01/css-uom.html the uom
> annotations are now supported in SLD, so they are not converted by CSS
> module. So how to use uom with an expression? My old SLD was:
>
>           <PointSymbolizer
> uom="http://www.opengeospatial.org/se/units/metre";>
>             <Graphic>
>               ...
>               <Size>
>                 <ogc:Mul>
>                   <ogc:PropertyName>length</ogc:PropertyName>
>                   <ogc:Literal>6</ogc:Literal>
>                 </ogc:Mul>
>               </Size>
>             </Graphic>
>           </PointSymbolizer>
>
> How can I achieve this with CSS?
>

Hmm... something like this I believe (but I haven't tried it):

mark-size: [6 * lenght]m

and if that does not work, maybe this:

mark-size: [strConcant(6 * lenght, "m")]

I don't remember if this is available only on the 2.5.x series, or is also
backported
to a recent 2.4.x release.

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

-------------------------------------------------------
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to