@Test public void removeSchema() throws Exception { File dir = temporaryFolder.newFolder("layers"); File file1 = Files.createFile(Paths.get(dir.getAbsolutePath(), "points.fgb")).toFile(); File file2 = Files.createFile(Paths.get(dir.getAbsolutePath(), "lines.fgb")).toFile(); Map<String, Serializable> params = new HashMap<>(); params.put("flatgeobuf-file", dir); DataStore store = DataStoreFinder.getDataStore(params); assertTrue(file1.exists()); store.removeSchema("points"); assertFalse(file1.exists()); assertTrue(file2.exists()); store.removeSchema("lines.fgb"); assertFalse(file2.exists()); }
@Override public void removeSchema(Name typeName) throws IOException { this.removeSchema(typeName.getLocalPart()); }
FlatgeobufDirectoryDataStore extends ContentDataStore { @Override public void removeSchema(Name typeName) throws IOException { this.removeSchema(typeName.getLocalPart()); } }
FlatgeobufDirectoryDataStore extends ContentDataStore { @Override public void removeSchema(Name typeName) throws IOException { this.removeSchema(typeName.getLocalPart()); } FlatgeobufDirectoryDataStore(File directory); }
FlatgeobufDirectoryDataStore extends ContentDataStore { @Override public void removeSchema(Name typeName) throws IOException { this.removeSchema(typeName.getLocalPart()); } FlatgeobufDirectoryDataStore(File directory); @Override void removeSchema(Name typeName); @Override void removeSchema(String typeName); @Override void createSchema(SimpleFeatureType featureType); }
FlatgeobufDirectoryDataStore extends ContentDataStore { @Override public void removeSchema(Name typeName) throws IOException { this.removeSchema(typeName.getLocalPart()); } FlatgeobufDirectoryDataStore(File directory); @Override void removeSchema(Name typeName); @Override void removeSchema(String typeName); @Override void createSchema(SimpleFeatureType featureType);  }