GeoPackage { FeatureEntry createFeatureEntry(ResultSet rs) throws SQLException, IOException { FeatureEntry e = new FeatureEntry(); initEntry(e, rs); e.setGeometryColumn(rs.getString("column_name")); e.setGeometryType(Geometries.getForName(rs.getString("geometry_type_name"))); e.setZ(rs.getBoolean("z")); e.setM(rs.getBoolean("m")); return e; } GeoPackage();  GeoPackage(File file);  GeoPackage(File file, String user, String passwd);   GeoPackage(DataSource dataSource);   GeoPackage(JDBCDataStore dataStore); GeoPkgGeomWriter.Configuration getWriterConfiguration(); File getFile(); DataSource getDataSource(); void init(); void close(); void addCRS(int srid); void addCRS(int srid, String srsName, String organization, int organizationCoordSysId, String definition, String description); void addCRS(CoordinateReferenceSystem crs, String auth, int srid); List<Entry> contents(); List<FeatureEntry> features(); FeatureEntry feature(String name); void create(FeatureEntry entry, SimpleFeatureType schema); void add(FeatureEntry entry, SimpleFeatureCollection collection); void add(FeatureEntry entry, SimpleFeatureSource source, Filter filter); SimpleFeatureWriter writer(FeatureEntry entry, boolean append, Filter filter, 
        Transaction tx); SimpleFeatureReader reader(FeatureEntry entry, Filter filter, Transaction tx); void createSpatialIndex(FeatureEntry e); List<RasterEntry> rasters(); RasterEntry raster(String name); void add(RasterEntry entry, GridCoverage2D raster, AbstractGridFormat format); GridCoverageReader reader(RasterEntry entry, AbstractGridFormat format); List<TileEntry> tiles(); TileEntry tile(String name); void create(TileEntry entry); void add(TileEntry entry, Tile tile); TileReader reader(TileEntry entry, Integer lowZoom, Integer highZoom, 
        Integer lowCol, Integer highCol, Integer lowRow, Integer highRow); boolean hasSpatialIndex(FeatureEntry entry); Set<Identifier> searchSpatialIndex(FeatureEntry entry, Double minX, Double minY, Double maxX, Double maxY); int getTileBound(TileEntry entry, int zoom, boolean isMax, boolean isRow); static final String GEOPACKAGE_CONTENTS; static final String GEOMETRY_COLUMNS; static final String SPATIAL_REF_SYS; static final String RASTER_COLUMNS; static final String TILE_MATRIX_METADATA; static final String METADATA; static final String METADATA_REFERENCE; static final String TILE_MATRIX_SET; static final String DATA_COLUMN_CONSTRAINTS; static final String EXTENSIONS; static final String SPATIAL_INDEX; }
@Test public void testCreateFeatureEntry() throws Exception { ShapefileDataStore shp = new ShapefileDataStore(setUpShapefile()); FeatureEntry entry = new FeatureEntry(); geopkg.add(entry, shp.getFeatureSource(), null); assertTableExists("bugsites"); assertFeatureEntry(entry); SimpleFeatureReader re = Features.simple(shp.getFeatureReader()); SimpleFeatureReader ra = geopkg.reader(entry, null, null); while(re.hasNext()) { assertTrue(ra.hasNext()); assertSimilar(re.next(), ra.next()); } re.close(); ra.close(); }