From: <db...@sv...> - 2005-02-24 20:07:21
|
Author: dblasby Date: 2005-02-24 12:20:37 -0800 (Thu, 24 Feb 2005) New Revision: 11631 Modified: geotools/branches/2.0.x/gt/module/main/src/org/geotools/styling/SLDPar= ser.java Log: Applied patch GEOT-355 to add parsing of MinScaleDenominator/MaxScaleDeno= minator Modified: geotools/branches/2.0.x/gt/module/main/src/org/geotools/styling= /SLDParser.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- geotools/branches/2.0.x/gt/module/main/src/org/geotools/styling/SLDPa= rser.java 2005-02-24 20:18:31 UTC (rev 11630) +++ geotools/branches/2.0.x/gt/module/main/src/org/geotools/styling/SLDPa= rser.java 2005-02-24 20:20:37 UTC (rev 11631) @@ -506,6 +506,22 @@ rule.setAbstract(child.getFirstChild().getNodeValue()); } =20 + //The MinScaleDenominator/MaxScaleDenominator does not appea= r + // to be working properly. But, adding these two lines + // will prevent the SLD reader from dying when it finds thes= e + // tags. Feb 24/2005 + // reference: GEOT-355 + =20 + =20 + if (childName.equalsIgnoreCase("MinScaleDenominator")) { + rule.setMinScaleDenominator(Double.parseDouble(child.getFi= rstChild().getNodeValue())); + } + =09 + if (childName.equalsIgnoreCase("MaxScaleDenominator")) { + rule.setMaxScaleDenominator(Double.parseDouble(child.getFir= stChild().getNodeValue())); + }=20 + =09 + =20 if (childName.equalsIgnoreCase("Filter")) { NodeList list =3D child.getChildNodes(); Node kid =3D null; |