Examples of imprt()


Examples of org.geoserver.catalog.util.LegacyCatalogImporter.imprt()

        if ( f != null ) {
            LegacyCatalogImporter catalogImporter = new LegacyCatalogImporter();
            catalogImporter.setResourceLoader(resourceLoader);
            catalogImporter.setCatalog( catalog );
           
            catalogImporter.imprt( resourceLoader.getBaseDirectory() );
        }
        else {
            LOGGER.warning( "No catalog file found.");
        }
    }
View Full Code Here

Examples of org.geoserver.catalog.util.LegacyCatalogImporter.imprt()

            catalog = ((Wrapper) catalog).unwrap(Catalog.class);
        }
        catalogImporter.setCatalog(catalog);
       
        try {
            catalogImporter.imprt( resourceLoader.getBaseDirectory() );
        }
        catch(Exception e) {
            throw new RuntimeException( e );
        }
       
View Full Code Here

Examples of org.geoserver.catalog.util.LegacyCatalogImporter.imprt()

            catalog2.addListener( p );
        }
       
        LegacyCatalogImporter importer = new LegacyCatalogImporter(catalog2);
        importer.setResourceLoader(resourceLoader);
        importer.imprt(resourceLoader.getBaseDirectory());
       
        if ( !legacy ) {
            catalog2.removeListener( p );
        }
       
View Full Code Here

Examples of org.geoserver.catalog.util.LegacyCatalogImporter.imprt()

    public void testMissingFeatureTypes() throws Exception {
        MockData mockData = (MockData)getTestData();
       
        mockData.getFeatureTypesDirectory().delete();
        LegacyCatalogImporter importer = new LegacyCatalogImporter(new CatalogImpl());
        importer.imprt(mockData.getDataDirectoryRoot());
    }
   
    public void testMissingCoverages() throws Exception {
        MockData mockData = (MockData)getTestData();
       
View Full Code Here

Examples of org.geoserver.catalog.util.LegacyCatalogImporter.imprt()

    public void testMissingCoverages() throws Exception {
        MockData mockData = (MockData)getTestData();
       
        mockData.getCoveragesDirectory().delete();
        LegacyCatalogImporter importer = new LegacyCatalogImporter(new CatalogImpl());
        importer.imprt(mockData.getDataDirectoryRoot());
    }

    /**
     * As per GEOS-3513, make sure the old SRS codes are imported by adding the EPSG: prefix where
     * needed
 
View Full Code Here

Examples of org.geoserver.catalog.util.LegacyCatalogImporter.imprt()

        mockData.getCoveragesDirectory().delete();
        Catalog catalog = new CatalogImpl();
        LegacyCatalogImporter importer = new LegacyCatalogImporter(catalog);
       
        File dataDirectoryRoot = mockData.getDataDirectoryRoot();
        importer.imprt(dataDirectoryRoot);
       
        FeatureTypeInfo typeInfo = catalog.getFeatureTypeByName(typeName.getNamespaceURI(), typeName.getLocalPart());
        assertEquals("EPSG:4326", typeInfo.getSRS());
    }
View Full Code Here

Examples of org.geoserver.catalog.util.LegacyCatalogImporter.imprt()

    public void testMissingFeatureTypes() throws Exception {
        MockData mockData = (MockData)getTestData();
       
        mockData.getFeatureTypesDirectory().delete();
        LegacyCatalogImporter importer = new LegacyCatalogImporter(new CatalogImpl());
        importer.imprt(mockData.getDataDirectoryRoot());
    }
   
    public void testMissingCoverages() throws Exception {
        MockData mockData = (MockData)getTestData();
       
View Full Code Here

Examples of org.geoserver.catalog.util.LegacyCatalogImporter.imprt()

    public void testMissingCoverages() throws Exception {
        MockData mockData = (MockData)getTestData();
       
        mockData.getCoveragesDirectory().delete();
        LegacyCatalogImporter importer = new LegacyCatalogImporter(new CatalogImpl());
        importer.imprt(mockData.getDataDirectoryRoot());
    }

    /**
     * As per GEOS-3513, make sure the old SRS codes are imported by adding the EPSG: prefix where
     * needed
 
View Full Code Here

Examples of org.geoserver.catalog.util.LegacyCatalogImporter.imprt()

        mockData.getCoveragesDirectory().delete();
        Catalog catalog = new CatalogImpl();
        LegacyCatalogImporter importer = new LegacyCatalogImporter(catalog);
       
        File dataDirectoryRoot = mockData.getDataDirectoryRoot();
        importer.imprt(dataDirectoryRoot);
       
        FeatureTypeInfo typeInfo = catalog.getFeatureTypeByName(typeName.getNamespaceURI(), typeName.getLocalPart());
        assertEquals("EPSG:4326", typeInfo.getSRS());
    }
View Full Code Here

Examples of org.geoserver.catalog.util.LegacyCatalogImporter.imprt()

            catalog2.addListener( p );
        }
       
        LegacyCatalogImporter importer = new LegacyCatalogImporter(catalog2);
        importer.setResourceLoader(resourceLoader);
        importer.imprt(resourceLoader.getBaseDirectory());
       
        if ( !legacy ) {
            catalog2.removeListener( p );
        }
       
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.