Search in sources :

Example 11 with ContrastEnhancement

use of org.opengis.style.ContrastEnhancement in project geotoolkit by Geomatys.

the class SE100toGTTransformer method visit.

/**
 * Transform a SLD v1.0 selected channel in GT selected channel.
 */
private SelectedChannelType visit(final org.geotoolkit.sld.xml.v100.SelectedChannelType channel) {
    if (channel == null)
        return null;
    final String name = channel.getSourceChannelName();
    final ContrastEnhancement enchance = (channel.getContrastEnhancement() == null) ? StyleConstants.DEFAULT_CONTRAST_ENHANCEMENT : visit(channel.getContrastEnhancement());
    return styleFactory.selectedChannelType(name, enchance);
}
Also used : ContrastEnhancement(org.opengis.style.ContrastEnhancement) SimpleInternationalString(org.apache.sis.util.SimpleInternationalString) InternationalString(org.opengis.util.InternationalString)

Example 12 with ContrastEnhancement

use of org.opengis.style.ContrastEnhancement in project geotoolkit by Geomatys.

the class SE110toGTTransformer method visit.

/**
 * Transform a SLD v1.1 selected channel in GT selected channel.
 */
public SelectedChannelType visit(final org.geotoolkit.se.xml.v110.SelectedChannelType channel) {
    if (channel == null)
        return null;
    final String name = channel.getSourceChannelName();
    final ContrastEnhancement enchance = (channel.getContrastEnhancement() == null) ? StyleConstants.DEFAULT_CONTRAST_ENHANCEMENT : visit(channel.getContrastEnhancement());
    return styleFactory.selectedChannelType(name, enchance);
}
Also used : ContrastEnhancement(org.opengis.style.ContrastEnhancement)

Aggregations

ContrastEnhancement (org.opengis.style.ContrastEnhancement)12 Expression (org.opengis.filter.Expression)9 ChannelSelection (org.opengis.style.ChannelSelection)9 ColorMap (org.opengis.style.ColorMap)9 LineSymbolizer (org.opengis.style.LineSymbolizer)9 PointSymbolizer (org.opengis.style.PointSymbolizer)9 PolygonSymbolizer (org.opengis.style.PolygonSymbolizer)9 RasterSymbolizer (org.opengis.style.RasterSymbolizer)9 ShadedRelief (org.opengis.style.ShadedRelief)9 Symbolizer (org.opengis.style.Symbolizer)9 TextSymbolizer (org.opengis.style.TextSymbolizer)9 Unit (javax.measure.Unit)7 Description (org.opengis.style.Description)7 OverlapBehavior (org.opengis.style.OverlapBehavior)7 SimpleInternationalString (org.apache.sis.util.SimpleInternationalString)4 Literal (org.opengis.filter.Literal)2 ExtensionSymbolizer (org.opengis.style.ExtensionSymbolizer)2 InternationalString (org.opengis.util.InternationalString)2 ComponentColorModel (java.awt.image.ComponentColorModel)1 ArrayList (java.util.ArrayList)1