Search in sources :

Example 1 with GTtoSLD110Transformer

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;
}
Also used : RangeType(org.geotoolkit.se.xml.vext.RangeType) Expression(org.opengis.filter.Expression) ArrayList(java.util.ArrayList) StyleXmlIO(org.geotoolkit.sld.xml.StyleXmlIO) GTtoSLD110Transformer(org.geotoolkit.sld.xml.GTtoSLD110Transformer) ArrayList(java.util.ArrayList) List(java.util.List) JAXBElement(javax.xml.bind.JAXBElement)

Aggregations

ArrayList (java.util.ArrayList)1 List (java.util.List)1 JAXBElement (javax.xml.bind.JAXBElement)1 RangeType (org.geotoolkit.se.xml.vext.RangeType)1 GTtoSLD110Transformer (org.geotoolkit.sld.xml.GTtoSLD110Transformer)1 StyleXmlIO (org.geotoolkit.sld.xml.StyleXmlIO)1 Expression (org.opengis.filter.Expression)1