@Override public void initializeConnection(Connection cx) throws SQLException { GeoPackage.init(cx); }
/** * Initializes the geopackage database. * * <p>This method creates all the necessary metadata tables. */ public void init() throws IOException { try { try (Connection cx = connPool.getConnection()) { init(cx); initialised = true; } } catch (SQLException e) { throw new IOException(e); } }
DATE_FORMAT.setTimeZone(TimeZone.getTimeZone("GMT")); if (!initialised) { init();
@Override public void initializeConnection(Connection cx) throws SQLException { GeoPackage.init(cx); }
/** * Initializes the geopackage database. * * <p>This method creates all the necessary metadata tables. */ public void init() throws IOException { try { try (Connection cx = connPool.getConnection()) { init(cx); initialised = true; } } catch (SQLException e) { throw new IOException(e); } }
public File getTargetFile() { if (targetFile == null) { try { targetFile = File.createTempFile("GeoGigGeoPkgExport", ".gpkg"); targetFile.deleteOnExit(); GeoPackage gpkg = new GeoPackage(targetFile); try { gpkg.init(); } finally { gpkg.close(); } } catch (IOException e) { throw Throwables.propagate(e); } } return targetFile; }
public File createEmptyDatabase() throws Exception { File file = newFile(); GeoPackage geoPackage = new GeoPackage(file); try { geoPackage.init(); } finally { geoPackage.close(); } return file; }
public File createEmptyDatabase() throws Exception { File file = newFile(); GeoPackage geoPackage = new GeoPackage(file); try { geoPackage.init(); } finally { geoPackage.close(); } return file; }
DATE_FORMAT.setTimeZone(TimeZone.getTimeZone("GMT")); if (!initialised) { init();