Package org.opengis.coverage.grid

Examples of org.opengis.coverage.grid.GridCoverageReader.dispose()


      if (dialog.open() == Window.OK){
        dialog.updatePanel(this);
      }
    }finally{
      try {
        reader.dispose();
      } catch (IOException e) {
        SLDPlugin.log("Error disposing of reader", e); //$NON-NLS-1$
      }
       
    }
View Full Code Here


      if (dialog.open() == Window.OK){
        dialog.updatePanel(this);
      }
    }finally{
      try {
        reader.dispose();
      } catch (IOException e) {
        SLDPlugin.log("Error disposing of reader", e); //$NON-NLS-1$
      }
       
    }
View Full Code Here

      if (dialog.open() == Window.OK){
        dialog.updatePanel(this);
      }
    }finally{
      try {
        reader.dispose();
      } catch (IOException e) {
        SLDPlugin.log("Error disposing of reader", e); //$NON-NLS-1$
      }
       
    }
View Full Code Here

    //release things
    cropped.dispose(true);
    gc.dispose(true);
    try{
      if(reader!=null)
        reader.dispose();
    }catch (Throwable e) {
    }
    // /////////////////////////////////////////////////////////////////////
    //
    //
View Full Code Here

 
      }
    }finally{
      try{
        if(reader!=null)
          reader.dispose();
      }catch (Throwable e) {
      }
     
      if(!TestData.isInteractiveTest())
        gc.dispose(true);
View Full Code Here

        cropped.dispose(true);
        gc.dispose(true);
        if (reader != null) {
            try {

                reader.dispose();
            } catch (Throwable e) {
            }
        }
       
        try {
View Full Code Here

        } finally {
            if (reader != null) {
                try {

                    reader.dispose();
                } catch (Throwable e) {
                }
            }
            if (!TestData.isInteractiveTest()) {
                gc.dispose(true);
View Full Code Here

        // Get a reader for the selected format
        GridCoverageReader reader = format.getReader(tiff);
        // Read the input Coverage
        coverage = (GridCoverage2D) reader.read(null);
        // Reader disposal
        reader.dispose();

        // Definition of the interpolation type
        nearest = new InterpolationNearest();
        bilinear = new InterpolationBilinear();
        bicubic = new InterpolationBicubic(8);
View Full Code Here

        final ParameterValueGroup param = processor.getOperation("Resample").getParameters();
        param.parameter("Source").setValue(inputCoverage);
        param.parameter("CoordinateReferenceSystem").setValue(DefaultGeographicCRS.WGS84);
        coverage = (GridCoverage2D) processor.doOperation(param);
        // Reader disposal
        reader.dispose();
        // Definition of the Image Size
        pixelNumber = coverage.getRenderedImage().getHeight()
                * coverage.getRenderedImage().getWidth();
        // Definition of the process
        process = new RasterAsPointCollectionProcess();
View Full Code Here

        // Get a reader for the selected format
        GridCoverageReader reader = format.getReader(input);
        // Read the input Coverage
        coverage1 = (GridCoverage2D) reader.read(null);
        // Reader disposal
        reader.dispose();

        // Second File selection
        coverage2 = coverage1;

        // Third file selection (This file is similar to the first one but it is translated by 1 on the X direction)
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.