@Override public void exportTable(Connection connection, String tableReference, File fileName, ProgressVisitor progress) throws SQLException, IOException{ GeoJsonWriteDriver geoJsonDriver = new GeoJsonWriteDriver(connection, tableReference, fileName); geoJsonDriver.write(progress); }
/** * Export a table or a query to a geojson file * * @param connection * @param tableReference * @param fileName * @param progress * @param encoding * @throws SQLException * @throws IOException */ @Override public void exportTable(Connection connection, String tableReference, File fileName, ProgressVisitor progress, String encoding) throws SQLException, IOException{ GeoJsonWriteDriver geoJsonDriver = new GeoJsonWriteDriver(connection); geoJsonDriver.write(progress,tableReference, fileName, encoding); }
@Override public void exportTable(Connection connection, String tableReference, File fileName, ProgressVisitor progress) throws SQLException, IOException { int recordCount = JDBCUtilities.getRowCount(connection, tableReference); ProgressVisitor copyProgress = progress.subProcess(recordCount); GeoJsonWriteDriver geoJsonDriver = new GeoJsonWriteDriver(connection, tableReference, fileName); geoJsonDriver.write(copyProgress); }