Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0.0
-
Fix Version/s: 2.1.M2
-
Component/s: wms extension
-
Labels:None
Description
SLDParser.parseRule doesn't look for Min/MaxScaleDenominator elements as per SLD 1.0 spec. Code for handling them is there, but not parsing them from the sld file.
Diff to fix it is below.
Index: module/main/src/org/geotools/styling/SLDParser.java
===================================================================
— module/main/src/org/geotools/styling/SLDParser.java (revision 9796)
+++ module/main/src/org/geotools/styling/SLDParser.java (working copy)
@@ -489,7 +489,15 @@
if (childName.equalsIgnoreCase("Abstract"))
+
{ + rule.setMinScaleDenominator(Double.parseDouble(child.getFirstChild().getNodeValue())); + }
+ if (childName.equalsIgnoreCase("MinScaleDenominator"))+
{ + rule.setMaxScaleDenominator(Double.parseDouble(child.getFirstChild().getNodeValue())); + }
+ if (childName.equalsIgnoreCase("MaxScaleDenominator"))+
if (childName.equalsIgnoreCase("Filter")) {
NodeList list = child.getChildNodes();
Node kid = null;