|
Go Sato created an issue |
CSS Styling extremely slows down when negative and positive numbers both included |
Issue Type: |
|
---|---|
Affects Versions: |
2.8.2 |
Assignee: |
Unassigned |
Components: |
CSS |
Created: |
08/Apr/16 5:50 PM |
Environment: |
GeoSever 2.8.2 |
Priority: |
|
Reporter: |
I have recently started using CSS Styling instead of vanilla SLD to write a style which colourise population changes between two censuses. When a CSS like the following was submitted, it takes minutes to process it.
For example, the following css were successfully saved within a second. { stroke: #ffebbe; } [population >= 1][population < 5] { stroke: #fd5912; } [population >= 5][population < 10] { stroke: #fd5912; } [population >= 10][population < 15] { stroke: #fd5912; } [population >= 15] { stroke: #d7191c; } }} The next one saved very quickly too. { stroke: #ffebbe; } [population >= -15][population < -10] { stroke: #fd5912; } [population >= -10][population < -5] { stroke: #fd5912; } [population >= -5][population < -1] { stroke: #fd5912; } [population >= -1][population < -0.01] { stroke: #fd5912; } }} { stroke: #ffebbe; } [population >= -15][population < -10] { stroke: #fd5912; } [population >= -10][population < -5] { stroke: #fd5912; } [population >= -1][population < 1] { stroke: #fd5912; } }} However, when the following was submitted, it took 4 to 5 minutes to process, which is an extreme drag in performance { stroke: #ffebbe; } [population >= -15][population < -10] { stroke: #fd5912; } [population >= -10][population < -5] { stroke: #fd5912; } [population >= -5][population < -1] { stroke: #fd5912; } [population >= -1][population < 1] { stroke: #fd5912; } }} { stroke: #ffebbe; } [population >= -15][population < -10] { stroke: #fd5912; } [population >= -10][population < -5] { stroke: #fd5912; } [population >= -5][population < -1] { stroke: #fd5912; } [population >= -1][population < 0] { stroke: #fd5912; } }} { stroke: #72b0fc; } [population >= -5][population < -1] { stroke: #b8d4ff; } [population >= -1][population < 1] { stroke: #ffebbe; } [population >= 1][population < 5] { stroke: #fd5912; } [population >= 5][population < 10] { stroke: #fd5912; } [population >= 10] { stroke: #d7191c; } }} To summarise, my observations,
This is quite frustrating as it takes ages every time to make a change to the styles that follow this pattern. |
This message was sent by Atlassian JIRA (v7.2.0-OD-05-030#72002-sha1:7e8526a) |
|