Package org.locationtech.udig.catalog.internal.geotiff

Examples of org.locationtech.udig.catalog.internal.geotiff.GeoTiffServiceExtension


    @Before
    public void setUp() throws Exception {
        Assume.assumeTrue(GDALUtilities.isGDALAvailable());
       
        GeoTiffServiceExtension fac = new GeoTiffServiceExtension();
        URL url = Data.getResource(GeoTiffGeoResourceTest.class, TIFF_1);
        service = fac.createService(url, fac.createParams(url));
        resource = service.resources((IProgressMonitor) null).get(0);
    }
View Full Code Here


    @Before
    public void setUp() throws Exception {
        Assume.assumeTrue(GDALUtilities.isGDALAvailable());
       
        GeoTiffServiceExtension fac = new GeoTiffServiceExtension();
        URL url = Data.getResource(GeoTiffServiceTest.class, TIFF_1);
       
        GeoTiffFormatFactorySpi factory = GeoTiffServiceExtension.getFactory();
        GeoTiffFormat format = (GeoTiffFormat) factory.createFormat();
       
        try {
            ID id = new ID(url);
            File file = id.toFile();
       
            format.accepts(file);
           
        } catch (RuntimeException ex) {
            ex.printStackTrace();
        }
       
        service = fac.createService(url, fac.createParams(url));
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.catalog.internal.geotiff.GeoTiffServiceExtension

Copyright © 2018 www.massapicom. 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.