Package org.geotools.coverageio.gdal

Examples of org.geotools.coverageio.gdal.BaseGDALGridFormat.accepts()


        final File file = TestData.file(this, fileName);
       
        final MrSIDFormatFactory factory = new MrSIDFormatFactory();
        final BaseGDALGridFormat format = (BaseGDALGridFormat) factory.createFormat();
       
        Assert.assertTrue(format.accepts(file));
        MrSIDReader reader = (MrSIDReader) format.getReader(file);
       
        final int numImages = reader.getGridCoverageCount();
        final boolean hasMoreGridCoverages = reader.hasMoreGridCoverages();
        Assert.assertEquals(1, numImages);
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.