public class OSMDriverFunction extends Object implements org.h2gis.api.DriverFunction
| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
static String |
DESCRIPTION_BZ2 |
static String |
DESCRIPTION_GZ |
| Constructor and Description |
|---|
OSMDriverFunction() |
| Modifier and Type | Method and Description |
|---|---|
void |
exportTable(Connection connection,
String tableReference,
File fileName,
org.h2gis.api.ProgressVisitor progress) |
void |
exportTable(Connection connection,
String tableReference,
File fileName,
org.h2gis.api.ProgressVisitor progress,
String options) |
String[] |
getExportFormats() |
String |
getFormatDescription(String format) |
org.h2gis.api.DriverFunction.IMPORT_DRIVER_TYPE |
getImportDriverType() |
String[] |
getImportFormats() |
void |
importFile(Connection connection,
String tableReference,
File fileName,
org.h2gis.api.ProgressVisitor progress) |
void |
importFile(Connection connection,
String tableReference,
File fileName,
org.h2gis.api.ProgressVisitor progress,
boolean deleteTables) |
void |
importFile(Connection connection,
String tableReference,
File fileName,
org.h2gis.api.ProgressVisitor progress,
String options) |
boolean |
isSpatialFormat(String extension) |
public static String DESCRIPTION
public static String DESCRIPTION_GZ
public static String DESCRIPTION_BZ2
public org.h2gis.api.DriverFunction.IMPORT_DRIVER_TYPE getImportDriverType()
getImportDriverType in interface org.h2gis.api.DriverFunctionpublic String[] getExportFormats()
getExportFormats in interface org.h2gis.api.DriverFunctionpublic String getFormatDescription(String format)
getFormatDescription in interface org.h2gis.api.DriverFunctionpublic boolean isSpatialFormat(String extension)
isSpatialFormat in interface org.h2gis.api.DriverFunctionpublic void exportTable(Connection connection, String tableReference, File fileName, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException
exportTable in interface org.h2gis.api.DriverFunctionSQLExceptionIOExceptionpublic void exportTable(Connection connection, String tableReference, File fileName, org.h2gis.api.ProgressVisitor progress, String options) throws SQLException, IOException
exportTable in interface org.h2gis.api.DriverFunctionSQLExceptionIOExceptionpublic void importFile(Connection connection, String tableReference, File fileName, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException
importFile in interface org.h2gis.api.DriverFunctionSQLExceptionIOExceptionpublic void importFile(Connection connection, String tableReference, File fileName, org.h2gis.api.ProgressVisitor progress, String options) throws SQLException, IOException
importFile in interface org.h2gis.api.DriverFunctionSQLExceptionIOExceptionpublic void importFile(Connection connection, String tableReference, File fileName, org.h2gis.api.ProgressVisitor progress, boolean deleteTables) throws SQLException, IOException
importFile in interface org.h2gis.api.DriverFunctionconnection - Active connection, do not close this connection.tableReference - prefix uses to store the OSM tablesfileName - File path to readprogress - deleteTables - true to delete the existing tablesSQLException - Table write errorIOException - File read errorpublic String[] getImportFormats()
getImportFormats in interface org.h2gis.api.DriverFunctionCopyright © 2019 CNRS. All rights reserved.