Examples of FileDataStore


Examples of org.geotools.data.FileDataStore

    @Test
    public void testCreateDataStoreFileParams() throws Exception {
        Map<String, Serializable> fileParams = new HashMap<String, Serializable>(1);
        fileParams.put("file", file);
        FileDataStore dataStore = csvDataStoreFactory.createDataStore(fileParams);
        assertNotNull("Could not create datastore from file params", dataStore);
    }
View Full Code Here

Examples of org.geotools.data.FileDataStore

    @Test
    public void testCreateDataStoreURLParams() throws Exception {
        Map<String, Serializable> urlParams = new HashMap<String, Serializable>(1);
        urlParams.put("url", locationsResource);
        FileDataStore dataStore = csvDataStoreFactory.createDataStore(urlParams);
        assertNotNull("Could not create datastore from url params", dataStore);
    }
View Full Code Here

Examples of org.geotools.data.FileDataStore

        assertNotNull("Could not create datastore from url params", dataStore);
    }

    @Test
    public void testCreateDataStoreURL() throws MalformedURLException, IOException {
        FileDataStore dataStore = csvDataStoreFactory.createDataStore(locationsResource);
        assertNotNull("Failure creating data store", dataStore);
    }
View Full Code Here

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

Examples of org.geotools.data.FileDataStore

        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

Examples of org.jf.dexlib2.writer.io.FileDataStore

            if (errors) {
                System.exit(1);
            }

            dexBuilder.writeTo(new FileDataStore(new File(outputDexFile)));
        } catch (RuntimeException ex) {
            System.err.println("\nUNEXPECTED TOP-LEVEL EXCEPTION:");
            ex.printStackTrace();
            System.exit(2);
        } catch (Throwable ex) {
View Full Code Here

Examples of org.jf.dexlib2.writer.io.FileDataStore

    public static void writeTo(@Nonnull String path, @Nonnull org.jf.dexlib2.iface.DexFile input) throws IOException {
        DexPool dexPool = makeDexPool();
        for (ClassDef classDef: input.getClasses()) {
            ((ClassPool)dexPool.classSection).intern(classDef);
        }
        dexPool.writeTo(new FileDataStore(new File(path)));
    }
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.