Examples of dispose()


Examples of org.geotools.gce.RasterManagerBuilder.dispose()

       
        //
        // Create raster managers
        //
        this.elements=rasterManagerBuilder.create();
        rasterManagerBuilder.dispose();
    }

    protected abstract ImageReaderSource<?> getSource(int i)throws IOException;
   
View Full Code Here

Examples of org.geotools.gce.arcgrid.ArcGridWriter.dispose()

                                            wp);
                                    ArcGridWriter gtw = (ArcGridWriter) format1.getWriter(new File(folderFile, mapFile.getName()
                                            + ".asc"));
                                    gtw.write(geodata,
                                            (GeneralParameterValue[]) paramWrite.values().toArray(new GeneralParameterValue[1]));
                                    gtw.dispose();
                                }
                                pm.worked(1);
                            }
                        } catch (Exception e) {
                            String message = "An error occurred while exporting the maps.";
View Full Code Here

Examples of org.geotools.gce.geotiff.GeoTiffReader.dispose()

    }

    private GridCoverage2D readCoverage(InputStream is) throws Exception {
        GeoTiffReader reader = new GeoTiffReader(is);
        GridCoverage2D coverage = (GridCoverage2D) reader.read(null);
        reader.dispose();
        return coverage;
    }

    public void testTiffOutput() throws Exception {
        String request = "wcs?service=WCS&version=1.1.1&request=GetCoverage" + "&identifier="
View Full Code Here

Examples of org.geotools.gce.geotiff.GeoTiffWriter.dispose()

//                    writer.setOutput(new FileImageOutputStream(new File(fileOutputName)));
//                    RenderedImage image = gc.getRenderedImage();
//                    writer.write(image);
                   
                   
                    writer.dispose();
                    gc.dispose(true);
                    reader.dispose();
                }
            }
        }
View Full Code Here

Examples of org.geotools.gce.gtopo30.GTopo30Writer.dispose()

        } else {
            throw new ServiceException("Could not create a writer for the format Gtopo30!");
        }

        // freeing everything
        writer.dispose();
        this.sourceCoverage.dispose(false);
        this.sourceCoverage = null;
    }
}
View Full Code Here

Examples of org.geotools.gce.image.WorldImageWriter.dispose()

        // writing
        writer.write(sourceCoverage, new GeneralParameterValue[] {format});

        // freeing everything
        output.flush();
        writer.dispose();
        this.sourceCoverage.dispose(false);
        this.sourceCoverage = null;
    }
}
View Full Code Here

Examples of org.geotools.gce.imagemosaic.ImageMosaicConfigHandler.dispose()

                eventHandler.addProcessingEventListener(listener);
                builder.run();
        } catch (Throwable e) {
                LOGGER.log(Level.SEVERE, "Unable to build mosaic", e);
        } finally {
            catalogHandler.dispose();
        }       

    }

}
View Full Code Here

Examples of org.geotools.gce.imagemosaic.ImageMosaicReader.dispose()

            it.close();
        } finally {
            if(it != null) {
                it.close();
            }
            reader.dispose();
        }
    }
   
    @Test
    public void testReHarvest() throws Exception {
View Full Code Here

Examples of org.geotools.imageio.hdf4.HDF4ImageReader.dispose()

                }
            }

            numberOfCoverages = numCoverages;
            // dispose the reader
            reader.dispose();
        } catch (IOException e) {
            this.numberOfCoverages = 1;

        } catch (FactoryException fe) {
            this.numberOfCoverages = 1;
View Full Code Here

Examples of org.geotools.imageio.netcdf.NetCDFImageReader.dispose()

                }
            }
        } finally {
            if (reader != null) {
                try {
                    reader.dispose();
                } catch (Throwable t) {
                    // Does nothing
                }
            }
        }
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.