|
Issue Type:
|
Bug
|
Assignee:
|
Andrea Aime
|
Components:
|
CSS
|
Created:
|
23/Jul/13 7:38 AM
|
Description:
|
The following style:
* {
mark: symbol(circle);
}
:mark {
fill: #0033CC;
}
[@scale < 16000000] {
mark-size: 12;
}
[@scale > 16000000] [@scale < 32000000] {
mark-size: 8;
}
generates the following SLD:
<?xml version="1.0" encoding="UTF-8"?>
<sld:UserStyle xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
<sld:Name>Default Styler</sld:Name>
<sld:FeatureTypeStyle>
<sld:Name>name</sld:Name>
<sld:Rule>
<sld:MinScaleDenominator>1.6E7</sld:MinScaleDenominator>
<sld:MaxScaleDenominator>3.2E7</sld:MaxScaleDenominator>
<sld:PointSymbolizer>
<sld:Graphic>
<sld:Mark>
<sld:WellKnownName>circle</sld:WellKnownName>
<sld:Fill>
<sld:CssParameter name="fill">#0033CC</sld:CssParameter>
</sld:Fill>
</sld:Mark>
<sld:Size>8</sld:Size>
</sld:Graphic>
</sld:PointSymbolizer>
</sld:Rule>
<sld:Rule>
<sld:MaxScaleDenominator>1.6E7</sld:MaxScaleDenominator>
<sld:PointSymbolizer>
<sld:Graphic>
<sld:Mark>
<sld:WellKnownName>circle</sld:WellKnownName>
<sld:Fill>
<sld:CssParameter name="fill">#0033CC</sld:CssParameter>
</sld:Fill>
</sld:Mark>
<sld:Size>12</sld:Size>
</sld:Graphic>
</sld:PointSymbolizer>
</sld:Rule>
<sld:Rule>
<sld:MinScaleDenominator>1.6E7</sld:MinScaleDenominator>
<sld:PointSymbolizer>
<sld:Graphic>
<sld:Mark>
<sld:WellKnownName>circle</sld:WellKnownName>
<sld:Fill>
<sld:CssParameter name="fill">#0033CC</sld:CssParameter>
</sld:Fill>
</sld:Mark>
</sld:Graphic>
</sld:PointSymbolizer>
</sld:Rule>
</sld:FeatureTypeStyle>
</sld:UserStyle>
The last rule should use minscaledenominator = 320000000, not 16000000 (the range between 16M and 32M is already covered)
|
Project:
|
GeoServer
|
Priority:
|
Major
|
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)