Search in sources :

Example 1 with ColorMapType

use of org.geotoolkit.se.xml.v110.ColorMapType in project geotoolkit by Geomatys.

the class GTtoSE110Transformer method visit.

@Override
public ColorMapType visit(final ColorMap colorMap, final Object data) {
    // TODO Fix that when better undestanding raster functions.
    final org.geotoolkit.se.xml.v110.ColorMapType cmt = se_factory.createColorMapType();
    final Expression fct = colorMap.getFunction();
    if (fct instanceof Categorize) {
        cmt.setCategorize(visit((Categorize) fct));
    } else if (fct instanceof Interpolate) {
        cmt.setInterpolate(visit((Interpolate) fct));
    } else if (fct instanceof Jenks) {
        cmt.setJenks(visit((Jenks) fct));
    }
    return cmt;
}
Also used : Categorize(org.geotoolkit.style.function.Categorize) ColorMapType(org.geotoolkit.se.xml.v110.ColorMapType) Interpolate(org.geotoolkit.style.function.Interpolate) Expression(org.opengis.filter.Expression) Jenks(org.geotoolkit.style.function.Jenks)

Aggregations

ColorMapType (org.geotoolkit.se.xml.v110.ColorMapType)1 Categorize (org.geotoolkit.style.function.Categorize)1 Interpolate (org.geotoolkit.style.function.Interpolate)1 Jenks (org.geotoolkit.style.function.Jenks)1 Expression (org.opengis.filter.Expression)1