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