[Geoserver-devel] [jira] Created: (GEOS-3899) Various issues converting a CSS style with scale dependencies

Various issues converting a CSS style with scale dependencies
-------------------------------------------------------------

                 Key: GEOS-3899
                 URL: http://jira.codehaus.org/browse/GEOS-3899
             Project: GeoServer
          Issue Type: Bug
            Reporter: Andrea Aime
            Assignee: David Winslow

Trying to convert this style with scale dependencies:

{code}
[PERSONS < 2000000] {
  fill : #4DFF4D;
}

[PERSONS >= 2000000] [PERSONS < 4000000] {
  fill: #FF4D4D;
}

[PERSONS >= 4000000] {
  fill: #4D4DFF;
}

* {
  stroke: black;
  stroke-width: 0.2;
  fill-opacity: 0.8;
  font-family: "Times New Roman";
  font-size: 14;
}

[@scale > 40000000] {
    label: [STATE_ABBR];
}

[@scale < 40000000] {
    label: [STATE_NAME];
}
{code}

I'm getting quite a bit of duplicated rules, but also colors that look like:

{code}
<sld:CssParameter name="fill"> <ogc:Literal>java.awt.Color[r=128,g=128,b=128]</ogc:Literal> </sld:CssParameter>
{code}

My guess is that the code building the style is setting in a java.awt.Color instead of a string or something like that... maybe it's a bug in the encoder, but it's a little odd that the first symbolizers have the colors properly translated, just the last ones have this issue

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira