/*
 *    GeoTools - The Open Source Java GIS Toolkit
 *    http://geotools.org
 * 
 *    (C) 2006-2008, Open Source Geospatial Foundation (OSGeo)
 *
 *    This library is free software; you can redistribute it and/or
 *    modify it under the terms of the GNU Lesser General Public
 *    License as published by the Free Software Foundation;
 *    version 2.1 of the License.
 *
 *    This library is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *    Lesser General Public License for more details.
 */
package org.geotools.coverage.processing.operation;

import java.awt.RenderingHints;
import java.awt.image.RenderedImage;

import javax.media.jai.ParameterBlockJAI;
import javax.media.jai.operator.WarpDescriptor;

import org.geotools.coverage.processing.BaseScaleOperationJAI;
import org.geotools.coverage.processing.CoverageProcessingException;
import org.geotools.factory.Hints;
import org.opengis.coverage.Coverage;
import org.opengis.parameter.ParameterValue;
import org.opengis.parameter.ParameterValueGroup;


/**
 * This operation is simply a wrapper for the JAI Warp operation
 *
 * @source $URL$
 * @version $Id$
 * @author Simone Giannecchini
 * @since 9.0
 * 
 * @see WarpDescriptor
 */
public class Warp extends BaseScaleOperationJAI {

        @Override
    public Coverage doOperation(ParameterValueGroup parameters, Hints hints)
            throws CoverageProcessingException {
        // TODO Auto-generated method stub
        return super.doOperation(parameters, hints);
    }

        /** serialVersionUID */
    private static final long serialVersionUID = -9077795909705065389L;

    /**
     * Default constructor.
     */
    public Warp() {
        super("Warp");
    }

    @Override
    protected ParameterBlockJAI prepareParameters(ParameterValueGroup parameters) {
        // look for background values 
        final ParameterValue<?> parameter = parameters.parameter("backgroundValues");
        return super.prepareParameters(parameters);
    }

    @Override
    protected RenderedImage createRenderedImage(ParameterBlockJAI parameters, RenderingHints hints) {
        // TODO Auto-generated method stub
        return super.createRenderedImage(parameters, hints);
    }

}

@@ -709,1638 +709,529 @@
 java
-.awt.RenderingHints;%0Aimport java.awt.image.RenderedImage;%0A%0Aimport javax.media.jai.ParameterBlockJAI;%0Aimport javax.media.jai.operator.WarpDescriptor;%0A%0Aimport org.geotools.coverage.processing.BaseScaleOperationJAI;%0Aimport org.geotools.coverage.processing.CoverageProcessingException;%0Aimport org.geotools.factory.Hints;%0Aimport org.opengis.coverage.Coverage;%0Aimport org.opengis.parameter.ParameterValue;%0Aimport org.opengis.parameter.ParameterValueGroup;%0A%0A%0A/**%0A * This operation is simply a wrapper for the JAI Warp operation%0A *%0A * @source $URL$%0A * @version $Id$%0A * @author Simone Giannecchini%0A * @since 9.0%0A * %0A * @see WarpDescriptor%0A */%0Apublic class Warp extends BaseScaleOperationJAI %7B%0A%0A        @Override%0A    public Coverage doOperation(ParameterValueGroup parameters, Hints hints)%0A            throws CoverageProcessingException %7B%0A        // TODO Auto-generated method stub%0A        return super.doOperation(parameters, hints);%0A    %7D%0A%0A        /** serialVersionUID */%0A    private static final long serialVersionUID = -9077795909705065389L;%0A%0A    /**%0A     * Default constructor.%0A     */%0A    public Warp() %7B%0A        super(%22Warp%22);%0A    %7D%0A%0A    @Override%0A    protected ParameterBlockJAI prepareParameters(ParameterValueGroup parameters) %7B%0A        // look for background values %0A        final ParameterValue%3C?%3E parameter = parameters.parameter(%22backgroundValues%22);%0A        return super.prepareParameters(parameters);%0A    %7D%0A%0A    @Override%0A    protected RenderedImage createRenderedImage(ParameterBlockJAI parameters, RenderingHints hints) %7B%0A        // TODO Auto-generated method stub%0A        return super.createRenderedImage(parameters, hints
+x.media.jai.operator.WarpDescriptor;%0A%0Aimport org.geotools.coverage.processing.BaseScaleOperationJAI;%0A%0A%0A/**%0A * This operation is simply a wrapper for the JAI Warp operation%0A *%0A * @source $URL$%0A * @version $Id$%0A * @author Simone Giannecchini%0A * @since 9.0%0A * %0A * @see WarpDescriptor%0A */%0Apublic class Warp extends BaseScaleOperationJAI %7B%0A%0A    /** serialVersionUID */%0A    private static final long serialVersionUID = -9077795909705065389L;%0A%0A    /**%0A     * Default constructor.%0A     */%0A    public Warp() %7B%0A        super(%22Warp%22
 );%0A 

clean up warp operation