use of org.geotoolkit.sld.xml.GTtoSLD110Transformer in project geotoolkit by Geomatys.
the class PatternSymbolizer method setRanges.
public void setRanges(Map<Expression, List<Symbolizer>> range) {
this.thredholds = new TreeMap<>(new ExpComparator());
if (range != null)
this.thredholds.putAll(range);
final GTtoSLD110Transformer io = new StyleXmlIO().getTransformerXMLv110();
final List<JAXBElement<RangeType>> ranges = new ArrayList<>();
for (Entry<Expression, List<Symbolizer>> entry : this.thredholds.entrySet()) {
final JAXBElement<RangeType> rt = io.visitRange(entry.getKey(), entry.getValue());
ranges.add(rt);
}
this.range = ranges;
}
Aggregations