Package org.geotools.gce.imagemosaic.processing

Source Code of org.geotools.gce.imagemosaic.processing.ArtifactsFilterSpi

/*
*    GeoTools - The Open Source Java GIS Toolkit
*    http://geotools.org
*
*    (C) 2007-2010, 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.gce.imagemosaic.processing;

import java.awt.image.renderable.RenderedImageFactory;
import javax.media.jai.OperationDescriptor;
import javax.media.jai.OperationRegistry;
import javax.media.jai.OperationRegistrySpi;
import javax.media.jai.registry.RenderedRegistryMode;

/**
* OperationRegistrySpi implementation to register the "ArtifactsFilter"
* operation and its associated image factories.
*
*
*
* @source $URL$
*/
public class ArtifactsFilterSpi implements OperationRegistrySpi {

    /** The name of the product to which these operations belong. */
    private String productName = "org.geotools.gce.imagemosaic.processing";
    /** Default constructor. */
    public ArtifactsFilterSpi() {}

    /**
     * Registers the ArtifactsFilter operation
     *
     * @param registry The registry with which to register the operation
     */
    public void updateRegistry(OperationRegistry registry) {
        final OperationDescriptor op = new ArtifactsFilterDescriptor();
        registry.registerDescriptor(op);
        final String descName = op.getName();
        final RenderedImageFactory rif = new ArtifactsFilterRIF();
        registry.registerFactory(RenderedRegistryMode.MODE_NAME, descName,  productName, rif);

    }
}
TOP

Related Classes of org.geotools.gce.imagemosaic.processing.ArtifactsFilterSpi

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.