Package org.geotools.coverage.processing

Examples of org.geotools.coverage.processing.AbstractOperation


  private void mergePoly(
      final GridCoverage originalCoverage,
      final Polygon poly,
      final Resolution resolution ) {
    final CoverageProcessor processor = CoverageProcessor.getInstance();
    final AbstractOperation op = (AbstractOperation) processor.getOperation("Histogram");
    final ParameterValueGroup params = op.getParameters();
    params.parameter(
        "Source").setValue(
        originalCoverage);
    params.parameter(
        BaseStatisticsOperationJAI.ROI.getName().getCode()).setValue(
        poly);
    params.parameter(
        "lowValue").setValue(
        histogramConfig.getLowValues());
    params.parameter(
        "highValue").setValue(
        histogramConfig.getHighValues());
    params.parameter(
        "numBins").setValue(
        histogramConfig.getNumBins());
    final GridCoverage2D coverage = (GridCoverage2D) op.doOperation(
        params,
        null);

    final javax.media.jai.Histogram histogram = (javax.media.jai.Histogram) coverage.getProperty(Histogram.GT_SYNTHETIC_PROPERTY_HISTOGRAM);
View Full Code Here

TOP

Related Classes of org.geotools.coverage.processing.AbstractOperation

Copyright © 2018 www.massapicom. 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.