public static MemoryDataStore newMemoryDataStore() { return new MemoryDataStoreWithProvidedFIDSupport(); }
public static MemoryDataStore newMemoryDataStore() { return new MemoryDataStoreWithProvidedFIDSupport(); }
public void exportToFile(File file, String tableName, ImmutableList<Feature> features) throws Exception { MemoryDataStore memStore = new MemoryDataStoreWithProvidedFIDSupport(); memStore.addFeatures(features); DataStore gpkgStore = createDataStore(file); try { export(memStore.getFeatureSource(tableName), gpkgStore); } finally { gpkgStore.dispose(); } }
public void exportToFile(File file, String tableName, ImmutableList<Feature> features) throws Exception { MemoryDataStore memStore = new MemoryDataStoreWithProvidedFIDSupport(); memStore.addFeatures(features); DataStore gpkgStore = createDataStore(file); try { export(memStore.getFeatureSource(tableName), gpkgStore); } finally { gpkgStore.dispose(); } }
public File createDefaultTestData() throws Exception { File file = createEmptyDatabase(); MemoryDataStore memStore = new MemoryDataStoreWithProvidedFIDSupport(); TestFeatures.setupFeatures(); memStore.addFeatures(ImmutableList.of(points1, points2, points3)); memStore.addFeatures(ImmutableList.of(lines1, lines2, lines3)); DataStore gpkgStore = createDataStore(file); try { export(memStore.getFeatureSource(pointsType.getName().getLocalPart()), gpkgStore); export(memStore.getFeatureSource(linesType.getName().getLocalPart()), gpkgStore); } finally { gpkgStore.dispose(); } return file; }
public File createDefaultTestData() throws Exception { File file = createEmptyDatabase(); MemoryDataStore memStore = new MemoryDataStoreWithProvidedFIDSupport(); TestFeatures.setupFeatures(); memStore.addFeatures(ImmutableList.of(points1, points2, points3)); memStore.addFeatures(ImmutableList.of(lines1, lines2, lines3)); DataStore gpkgStore = createDataStore(file); try { export(memStore.getFeatureSource(pointsType.getName().getLocalPart()), gpkgStore); export(memStore.getFeatureSource(linesType.getName().getLocalPart()), gpkgStore); } finally { gpkgStore.dispose(); } return file; }