Examples of parameter()


Examples of org.opengis.parameter.ParameterValueGroup.parameter()

        GridCoverage2D reprojected = gridCoverage.view(ViewType.GEOPHYSICS);
               
        ParameterValueGroup param = processor.getOperation("Resample").getParameters();
        param.parameter("Source").setValue( reprojected );
        param.parameter("CoordinateReferenceSystem").setValue(targetCRS);
        param.parameter("InterpolationType").setValue("NearestNeighbor");
       
        reprojected = (GridCoverage2D) processor.doOperation(param);
       
        reprojected = reprojected.view(ViewType.RENDERED);
       
View Full Code Here

Examples of org.opengis.parameter.ParameterValueGroup.parameter()

        CoverageProcessor processor = new CoverageProcessor(hints);
       
        GridCoverage2D reprojected = gridCoverage.view(ViewType.GEOPHYSICS);
               
        ParameterValueGroup param = processor.getOperation("Resample").getParameters();
        param.parameter("Source").setValue( reprojected );
        param.parameter("CoordinateReferenceSystem").setValue(targetCRS);
        param.parameter("InterpolationType").setValue("NearestNeighbor");
       
        reprojected = (GridCoverage2D) processor.doOperation(param);
       
View Full Code Here

Examples of org.opengis.parameter.ParameterValueGroup.parameter()

       
        GridCoverage2D reprojected = gridCoverage.view(ViewType.GEOPHYSICS);
               
        ParameterValueGroup param = processor.getOperation("Resample").getParameters();
        param.parameter("Source").setValue( reprojected );
        param.parameter("CoordinateReferenceSystem").setValue(targetCRS);
        param.parameter("InterpolationType").setValue("NearestNeighbor");
       
        reprojected = (GridCoverage2D) processor.doOperation(param);
       
        reprojected = reprojected.view(ViewType.RENDERED);
View Full Code Here

Examples of org.opengis.parameter.ParameterValueGroup.parameter()

        GridCoverage2D reprojected = gridCoverage.view(ViewType.GEOPHYSICS);
               
        ParameterValueGroup param = processor.getOperation("Resample").getParameters();
        param.parameter("Source").setValue( reprojected );
        param.parameter("CoordinateReferenceSystem").setValue(targetCRS);
        param.parameter("InterpolationType").setValue("NearestNeighbor");
       
        reprojected = (GridCoverage2D) processor.doOperation(param);
       
        reprojected = reprojected.view(ViewType.RENDERED);
       
View Full Code Here

Examples of org.opengis.parameter.ParameterValueGroup.parameter()

            group = reader.getFormat().getReadParameters();
        }
        else {
            // temporary fix for imageio
            try {
                ParameterValue< ? > tempParam = group
                        .parameter(AbstractGridFormat.USE_JAI_IMAGEREAD.getName().toString());
                if (tempParam != null)
                    tempParam.setValue(false);
            } catch (ParameterNotFoundException e) {
                // do nothing
View Full Code Here

Examples of org.opengis.parameter.ParameterValueGroup.parameter()

                    tempParam.setValue(false);
            } catch (ParameterNotFoundException e) {
                // do nothing
            }
        }
        ParameterValue< ? > param = group.parameter(AbstractGridFormat.READ_GRIDGEOMETRY2D
                .getName().toString());
        param.setValue(geom);

        GridCoverage2D coverage = (GridCoverage2D) reader.read(group.values().toArray(
                new ParameterValue[0]));
View Full Code Here

Examples of org.opengis.parameter.ParameterValueGroup.parameter()

                                    geodata = geodata.view(ViewType.GEOPHYSICS);

                                    final ArcGridFormat format1 = new ArcGridFormat();
                                    final ArcGridWriteParams wp = new ArcGridWriteParams();
                                    final ParameterValueGroup paramWrite = format1.getWriteParameters();
                                    paramWrite.parameter(AbstractGridFormat.GEOTOOLS_WRITE_PARAMS.getName().toString()).setValue(
                                            wp);
                                    ArcGridWriter gtw = (ArcGridWriter) format1.getWriter(new File(folderFile, mapFile.getName()
                                            + ".asc"));
                                    gtw.write(geodata,
                                            (GeneralParameterValue[]) paramWrite.values().toArray(new GeneralParameterValue[1]));
View Full Code Here

Examples of org.opengis.parameter.ParameterValueGroup.parameter()

                 group=reader.getFormat().getReadParameters();
             }
             else{
                 // temporary fix for image-io (JG: what is the nature of this fix?)
                 try{
                     ParameterValue<?> jaiImageReaderParam = group.parameter(AbstractGridFormat.USE_JAI_IMAGEREAD.getName().toString());
                     if(jaiImageReaderParam!=null){
                         jaiImageReaderParam.setValue(false);
                     }
                 }catch (ParameterNotFoundException e) {
                     // do nothing
View Full Code Here

Examples of org.opengis.parameter.ParameterValueGroup.parameter()

                     }
                 }catch (ParameterNotFoundException e) {
                     // do nothing
                 }
             }
             ParameterValue<?> readGridGeometry2DParam = group.parameter(AbstractGridFormat.READ_GRIDGEOMETRY2D.getName().toString());

//            GridEnvelope range = new GridEnvelope2D(0, 0, mapDisplay.getWidth(), mapDisplay.getHeight());
//            MathTransform displayToLayer = currentContext.worldToScreenMathTransform().inverse();
//            ReferencingFactoryFinder.getMathTransformFactory(null).createConcatenatedTransform(displayToLayer,
//                    currentContext.getLayer().mapToLayerTransform());
View Full Code Here

Examples of org.opengis.parameter.ParameterValueGroup.parameter()

     
    }
     
    final OperationJAI op = new OperationJAI("ZonalStats"); //$NON-NLS-1$
    ParameterValueGroup params = op.getParameters();
    params.parameter("dataImage").setValue(gcRaw); //$NON-NLS-1$
    params.parameter("stats").setValue(stats); //$NON-NLS-1$
    params.parameter("bands").setValue(new Integer[] { 0 }); //$NON-NLS-1$
    if (ignore.size() > 0){
      params.parameter("ranges").setValue(ignore); //$NON-NLS-1$
      params.parameter("rangesType").setValue(Range.Type.EXCLUDE); //$NON-NLS-1$
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.