Package it.geosolutions.imageioimpl.plugins.tiff

Examples of it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.dispose()


                    // Does nothing
                }
            }
            if (readerOverviewSF != null) {
                try {
                    readerOverviewSF.dispose();
                } catch (Throwable t) {
                    // Does nothing
                }
            }
            if (readerNative != null) {
View Full Code Here


        assertEquals("PlanarConfiguration", node.getFirstChild().getNodeName());
        assertEquals("PixelInterleaved", node.getFirstChild().getAttributes().item(0).getNodeValue());
       
       
        // clean up
        reader.dispose();
     }

    @Test
    public void testGeotiffExtensionCompressionDeflate() throws Exception {
        final File xml= new File("./src/test/resources/geotiff/geotiffExtensionCompressionDeflate.xml");
View Full Code Here

        assertEquals("PlanarConfiguration", node.getFirstChild().getNodeName());
        assertEquals("PixelInterleaved", node.getFirstChild().getAttributes().item(0).getNodeValue());
       
       
        // clean up
        reader.dispose();

     }
   
    @Test
    @Ignore // TODO
View Full Code Here

        assertEquals("PlanarConfiguration", node.getFirstChild().getNodeName());
        assertEquals("PixelInterleaved", node.getFirstChild().getAttributes().item(0).getNodeValue());
       
       
        // clean up
        reader.dispose();
     }
   
    @Test
    @Ignore
    public void testGeotiffExtensionCompressionPackBits() throws Exception {
View Full Code Here

        assertEquals("PlanarConfiguration", node.getFirstChild().getNodeName());
        assertEquals("PixelInterleaved", node.getFirstChild().getAttributes().item(0).getNodeValue());
       
       
        // clean up
        reader.dispose();
     }
   
    @Test
    public void testGeotiffExtensionCompressionWrongCompression() throws Exception {
        final File xml= new File("./src/test/resources/geotiff/geotiffExtensionCompressionWrongCompression.xml");
View Full Code Here

        assertEquals("PlanarConfiguration", node.getFirstChild().getNodeName());
        assertEquals("PixelInterleaved", node.getFirstChild().getAttributes().item(0).getNodeValue());
       
       
        // clean up
        reader.dispose();
     }
   
    @Test
    public void testGeotiffExtensionTilingDefault() throws Exception {
        final File xml= new File("./src/test/resources/geotiff/geotiffExtensionTilingDefault.xml");
View Full Code Here

        assertEquals("PlanarConfiguration", node.getFirstChild().getNodeName());
        assertEquals("PixelInterleaved", node.getFirstChild().getAttributes().item(0).getNodeValue());
       
       
        // clean up
        reader.dispose();
     }
   
    @Test
    public void testGeotiffExtensionTilingWrong1() throws Exception {
        final File xml= new File("./src/test/resources/geotiff/geotiffExtensionTilingWrong1.xml");
View Full Code Here

        assertNotNull(node);
        assertEquals("PlanarConfiguration", node.getFirstChild().getNodeName());
        assertEquals("PixelInterleaved", node.getFirstChild().getAttributes().item(0).getNodeValue());
       
        // clean up
        reader.dispose();
    }
   
    @Test
    public void testGeotiffExtensionBanded() throws Exception {
View Full Code Here

        final TIFFImageReader reader = (TIFFImageReader) new TIFFImageReaderSpi()
                .createReaderInstance();
        reader.setInput(new FileImageInputStream(file));
        assertEquals(360, reader.getWidth(0));
        assertEquals(360, reader.getHeight(0));
        reader.dispose();          
    }

    @Test
    public void testInterpolationSingleNearestXML() throws Exception {
       
View Full Code Here

        final TIFFImageReader reader = (TIFFImageReader) new TIFFImageReaderSpi()
                .createReaderInstance();
        reader.setInput(new FileImageInputStream(file));
        assertEquals(360, reader.getWidth(0));
        assertEquals(360, reader.getHeight(0));
        reader.dispose();          
    }
   
    @Test
    public void testInterpolationMixedSupportedXML() throws Exception {
       
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.