[Geoserver-devel] [jira] (GEOS-5917) Scale rules using >= or <= fail to translate in CSS

Andrea Aime created BugGEOS-5917
Scale rules using >= or <= fail to translate in CSS

Issue Type:

BugBug

Assignee:

Andrea Aime

Created:

23/Jul/13 6:25 AM

Description:

This css:

* {
  mark: symbol(circle);
}

:mark {
  fill: #0033CC;
}

[@scale &lt; 160000000] {
  mark-size: 12;
}

[@scale &gt;= 160000000] [@scale &lt; 320000000] {
  mark-size: 12;
}

fails to translate to CSS and we get this error message:
[13.22] failure: Constructor function not defined at @scale >= 160000000 [@scale >= 160000000] [@scale < 320000000] { ^

Now, SLD does not have a difference between < and <=, > and >=, however if one is coming from setting up a attribute range from a thematic map, the temptation to use <= and >= is strong (in order to cover all the domain).

This should be either documented better, or have the translation code bit a bit more lenient towards the usage of <= and >=

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Andrea Aime

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)