/** * Adds a new feature dataset to the geopackage. * * @param entry Contains metadata about the feature entry. * @param source The dataset to add to the geopackage. * @param filter Filter specifying what subset of feature dataset to include, may be <code>null * </code> to specify no filter. * @throws IOException Any errors occurring while adding the new feature dataset. */ public void add(FeatureEntry entry, SimpleFeatureSource source, Filter filter) throws IOException { // copy over features // TODO: make this more robust, won't handle case issues going between datasources, etc... // TODO: for big datasets we need to break up the transaction if (filter == null) { filter = Filter.INCLUDE; } add(entry, source.getFeatures(filter)); }
/** * Adds a new feature dataset to the geopackage. * * @param entry Contains metadata about the feature entry. * @param source The dataset to add to the geopackage. * @param filter Filter specifying what subset of feature dataset to include, may be <code>null * </code> to specify no filter. * @throws IOException Any errors occurring while adding the new feature dataset. */ public void add(FeatureEntry entry, SimpleFeatureSource source, Filter filter) throws IOException { // copy over features // TODO: make this more robust, won't handle case issues going between datasources, etc... // TODO: for big datasets we need to break up the transaction if (filter == null) { filter = Filter.INCLUDE; } add(entry, source.getFeatures(filter)); }