Package org.geotools.data

Examples of org.geotools.data.FileDataStore


        assertNotNull("Failure creating data store", dataStore);
    }

    @Test
    public void testGetTypeName() throws IOException {
        FileDataStore dataStore = csvDataStoreFactory.createDataStore(locationsResource);
        String[] typeNames = dataStore.getTypeNames();
        assertEquals("Invalid number of type names", 1, typeNames.length);
        assertEquals("Invalid type name", "locations", typeNames[0]);
    }
View Full Code Here


        Logger.i(getClass().getSimpleName() + " App Settings DB open " + isDatabaseOpenSuccess);
        */
    }

    public SimpleFeatureSource getSimpleFeatureSource(File file) {
        FileDataStore store = null;
        try {
            store = FileDataStoreFinder.getDataStore(file);
        } catch (IOException e1) {
            Logger.e(getClass().getSimpleName() + " FileDataStoreFinder.getDataStore", e1);
        }
        SimpleFeatureSource featureSource = null;
        try {
            if (store != null) {
                featureSource = store.getFeatureSource();
            }
        } catch (IOException e1) {
            Logger.e(getClass().getSimpleName() + " store.getFeatureSource", e1);
        }
        return featureSource;
View Full Code Here

TOP

Related Classes of org.geotools.data.FileDataStore

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.