From: <svn...@os...> - 2012-04-19 09:06:33
|
Author: jive Date: 2012-04-19 02:06:22 -0700 (Thu, 19 Apr 2012) New Revision: 38677 Modified: trunk/modules/library/main/src/main/java/org/geotools/styling/SLDTransformer.java Log: Fix how colour map is encoded as per GEOT-4109 Modified: trunk/modules/library/main/src/main/java/org/geotools/styling/SLDTransformer.java =================================================================== --- trunk/modules/library/main/src/main/java/org/geotools/styling/SLDTransformer.java 2012-04-18 13:43:21 UTC (rev 38676) +++ trunk/modules/library/main/src/main/java/org/geotools/styling/SLDTransformer.java 2012-04-19 09:06:22 UTC (rev 38677) @@ -524,9 +524,9 @@ if(!"ramp".equals(typeString)) { atts.addAttribute("", "type", "type", "", typeString); } - - if(colorMap.getExtendedColors()) { - atts.addAttribute("", "extended", "extended", "", typeString); + final boolean extended = colorMap.getExtendedColors(); + if(extended) { + atts.addAttribute("", "extended", "extended", "", ""+extended); } start("ColorMap", atts); |