Dear list,

I have a problem styling a line vector according to an attribute value (ac_average). I'm trying to set the stroke-width like this:

/* @title red line */
* {
    stroke: #ff3300;
    stroke-width: [ 0.00001m * ac_average];
}

However the m for meter seems to cause problems, as it works without the m and just 1000m (no expression) also works. What am I missing? The documentation (http://docs.geoserver.org/stable/en/user/styling/css/valuetypes.html) explains that this should work: "When using expressions in place of numeric values, the first unit listed for the type of measure is assumed."

A related question, is it possible to use power (** or ^) in these expressions? I was unable to find a reference as to what is possible here or not.

Working with the stable Geoserver version (2.12.1).

Thanks a lot,

Michel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to