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;
}
Aggregations