* Register the "SampleTranscode" image operation to the operation registry of
* the specified JAI instance. This method is invoked by the static initializer
* of {@link GridSampleDimension}.
*/
public static void register(final JAI jai) {
final OperationRegistry registry = jai.getOperationRegistry();
try {
registry.registerDescriptor(new NoDataReplacerDescriptor());
registry.registerFactory(RenderedRegistryMode.MODE_NAME, OPERATION_NAME,
"gce.geotools.org", new NoDataReplacerCRIF());
} catch (IllegalArgumentException exception) {
final LogRecord record = Loggings.format(Level.SEVERE,
LoggingKeys.CANT_REGISTER_JAI_OPERATION_$1, OPERATION_NAME);
record.setSourceClassName("GridSampleDimension");