Package org.opengis.parameter

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


                                    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

                 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

                     }
                 }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

     
    }
     
    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

    }
     
    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$
      params.parameter("rangeLocalStats").setValue(false); //$NON-NLS-1$
View Full Code Here

     
    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$
      params.parameter("rangeLocalStats").setValue(false); //$NON-NLS-1$
    }
View Full Code Here

    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$
      params.parameter("rangeLocalStats").setValue(false); //$NON-NLS-1$
    }
   
View Full Code Here

    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$
      params.parameter("rangeLocalStats").setValue(false); //$NON-NLS-1$
    }
   

    final GridCoverage2D coverage = (GridCoverage2D) op.doOperation(params,null);
View Full Code Here

    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$
      params.parameter("rangeLocalStats").setValue(false); //$NON-NLS-1$
    }
   

    final GridCoverage2D coverage = (GridCoverage2D) op.doOperation(params,null);
    final ZonalStats zstats = (ZonalStats) coverage
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.