public class SHPDriverFunction extends Object implements org.h2gis.api.DriverFunction
| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Constructor and Description |
|---|
SHPDriverFunction() |
| 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 encoding)
Save a table or a query to a shpfile
|
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 forceEncoding) |
boolean |
isSpatialFormat(String extension) |
public static String DESCRIPTION
public 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 encoding) throws SQLException, IOException
exportTable in interface org.h2gis.api.DriverFunctionconnection - Active connection, do not close this connection.tableReference - [[catalog.]schema.]table referencefileName - File path to write, if exists it may be replacedprogress - to display the IO progressencoding - File encoding, null will use default encodingSQLExceptionIOExceptionpublic String getFormatDescription(String format)
getFormatDescription in interface org.h2gis.api.DriverFunctionpublic org.h2gis.api.DriverFunction.IMPORT_DRIVER_TYPE getImportDriverType()
getImportDriverType in interface org.h2gis.api.DriverFunctionpublic String[] getImportFormats()
getImportFormats in interface org.h2gis.api.DriverFunctionpublic String[] getExportFormats()
getExportFormats in interface org.h2gis.api.DriverFunctionpublic boolean isSpatialFormat(String extension)
isSpatialFormat in interface org.h2gis.api.DriverFunctionpublic 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 forceEncoding) throws SQLException, IOException
importFile in interface org.h2gis.api.DriverFunctionconnection - Active connection, do not close this connection.tableReference - [[catalog.]schema.]table referencefileName - File path to readprogress - forceEncoding - If defined use this encoding instead of the one defined in dbf header.SQLException - Table write errorIOException - File read errorpublic void importFile(Connection connection, String tableReference, File fileName, org.h2gis.api.ProgressVisitor progress, boolean deleteTables) throws SQLException, IOException
importFile in interface org.h2gis.api.DriverFunctionSQLExceptionIOExceptionCopyright © 2019 CNRS. All rights reserved.