[Geoserver-devel] [JIRA] (GEOS-8481) CSS attributes with expression and unit strings not working

Michel W created an issue

GeoServer / BugGEOS-8481

CSS attributes with expression and unit strings not working

Issue Type:

BugBug

Assignee:

Unassigned

Components:

CSS

Created:

08/Dec/17 4:43 PM

Environment:

Geoserver 2.12.1
Tomcat 7

Priority:

LowLow

Reporter:

Michel W

Styling a line vector according to an attribute value (eg. here ac_average) is not working. E.g:

/* @title red line */

  • { stroke: #ff3300; stroke-width: [ 0.00001m * ac_average]; }

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 explains that this should work: “When using expressions in place of numeric values, the first unit listed for the type of measure is assumed.”

In the meantime Andrea provides the following workaround work around:

/* @title red line */

  • { stroke: #ff3300; stroke-width: [Concatenate(0.001 * PERSONS, ‘m’)]; }

Tested against topp:states seems to work.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100074-sha1:b69b2a5)

Atlassian logo