Examples of ViewType


Examples of org.geotools.coverage.grid.ViewType

         * ParameterBlockJAI (as RenderedImages) later, after the reprojection performed in the
         * next block.
         */
        final String[]     sourceNames = operation.getSourceNames();
        final GridCoverage2D[] sources = new GridCoverage2D[sourceNames.length];
        ViewType     primarySourceType = extractSources(parameters, sourceNames, sources);
        /*
         * Ensures that all coverages use the same CRS and has the same 'gridToCRS' relationship.
         * After the reprojection, the method still checks all CRS in case the user overridden the
         * {@link #resampleToCommonGeometry} method.
         */
 
View Full Code Here

Examples of org.geotools.coverage.grid.ViewType

        Utilities.ensureNonNull("sourceNames", sourceNames);
        Utilities.ensureNonNull("sources",     sources);
        if (sources.length != sourceNames.length) {
            throw new IllegalArgumentException(Errors.format(ErrorKeys.MISMATCHED_ARRAY_LENGTH));
        }
        ViewType type = null;
        final boolean computeOnGeophysicsValues = computeOnGeophysicsValues(parameters);
        for (int i=0; i<sourceNames.length; i++) {
            Object candidate = parameters.parameter(sourceNames[i]).getValue();
            if (candidate == null) {
                // assume it is an optional parameter
View Full Code Here

Examples of org.geotools.coverage.grid.ViewType

    // /////////////////////////////////////////////////////////////////////
    //
    // Do we need to explode the Palette to RGB(A)?
    //
    // /////////////////////////////////////////////////////////////////////
    ViewType strategy = CoverageUtilities.preferredViewForOperation(
        sourceCoverage, interpolation, false, parameters.hints);
    switch (strategy) {
    case PHOTOGRAPHIC:
      // //
      //
View Full Code Here

Examples of org.geotools.coverage.grid.ViewType

         *
         * If this condition is meets, then we verify if an "integer version" of the image
         * is available as a source of the source coverage (i.e. the floating-point image
         * is derived from the integer image, not the converse).
         */
        final ViewType processingView = CoverageUtilities.preferredViewForOperation(
                                        sourceCoverage, interpolation, false, hints);
        final ViewType finalView = CoverageUtilities.preferredViewAfterOperation(sourceCoverage);
        sourceCoverage = sourceCoverage.view(processingView);
        PlanarImage sourceImage = PlanarImage.wrapRenderedImage(sourceCoverage.getRenderedImage());
        assert sourceCoverage.getCoordinateReferenceSystem() == sourceCRS : sourceCoverage;
        // From this point, consider 'sourceCoverage' as final.

View Full Code Here

Examples of org.geotools.coverage.grid.ViewType

        /*
         * Extracts the source grid coverages now as a List. The sources will be set in the ParameterBlockJAI (as RenderedImages) later.
         */
        final Collection<GridCoverage2D> sourceCollection = new ArrayList<GridCoverage2D>();
        // The ViewType is used in post processing
        ViewType primarySourceType = extractSources(parameters, sourceCollection);
        // Selection of the source number
        int numSources = sourceCollection.size();
        GridCoverage2D[] sources = new GridCoverage2D[numSources];
        // Creation of an array of GridCoverage2D from the input collection
        sourceCollection.toArray(sources);
View Full Code Here

Examples of org.geotools.coverage.grid.ViewType

                    "sources"), "sources", srcCoverages);
        }
        // Collection of the sources to use
        Collection<GridCoverage2D> sourceCoverages = (Collection<GridCoverage2D>) srcCoverages;
        // ViewType object
        ViewType type = null;
        // Check if the operation must be computed on GeoPhysical values
        final boolean computeOnGeophysicsValues = computeOnGeophysicsValues(parameters);
        // Counter for the coverages
        int i = 0;
        // Cycle on all the Sources
View Full Code Here

Examples of org.zkoss.zest.sys.ViewInfo.ViewType

  public ViewInfoProxy(String type, String content) {
    _type = new ExValue(type, String.class);
    _content = new ExValue(content, String.class);
  }
  public ViewInfo getViewInfo(ActionContext ac) {
    ViewType type;
    int errCode = 0;
    String uri = null, errMsg = null,
      stype = (String)_type.getValue(ac),
      content = (String)_content.getValue(ac);
    if (content == null)
View Full Code Here
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.