Package org.h2gis.functions.io.gpx
Class GPXDriverFunction
java.lang.Object
org.h2gis.functions.io.gpx.GPXDriverFunction
- All Implemented Interfaces:
org.h2gis.api.DriverFunction
This class is used to read a GPX file
- Author:
- Erwan Bocher, Sylvain PALOMINOS (UBS 2019)
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.h2gis.api.DriverFunction
org.h2gis.api.DriverFunction.IMPORT_DRIVER_TYPE -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]exportTable(Connection connection, String tableReference, File fileName, boolean deleteFiles, org.h2gis.api.ProgressVisitor progress) String[]exportTable(Connection connection, String tableReference, File fileName, String options, boolean deleteFiles, org.h2gis.api.ProgressVisitor progress) String[]exportTable(Connection connection, String tableReference, File fileName, String options, org.h2gis.api.ProgressVisitor progress) String[]exportTable(Connection connection, String tableReference, File fileName, org.h2gis.api.ProgressVisitor progress) String[]getFormatDescription(String format) org.h2gis.api.DriverFunction.IMPORT_DRIVER_TYPEString[]String[]importFile(Connection connection, String tableReference, File fileName, boolean deleteTables, org.h2gis.api.ProgressVisitor progress) String[]importFile(Connection connection, String tableReference, File fileName, String encoding, boolean deleteTables, org.h2gis.api.ProgressVisitor progress) String[]importFile(Connection connection, String tableReference, File fileName, String options, org.h2gis.api.ProgressVisitor progress) String[]importFile(Connection connection, String tableReference, File fileName, org.h2gis.api.ProgressVisitor progress) booleanisSpatialFormat(String extension)
-
Field Details
-
DESCRIPTION
-
-
Constructor Details
-
GPXDriverFunction
public GPXDriverFunction()
-
-
Method Details
-
getImportDriverType
public org.h2gis.api.DriverFunction.IMPORT_DRIVER_TYPE getImportDriverType()- Specified by:
getImportDriverTypein interfaceorg.h2gis.api.DriverFunction
-
getImportFormats
- Specified by:
getImportFormatsin interfaceorg.h2gis.api.DriverFunction
-
getExportFormats
- Specified by:
getExportFormatsin interfaceorg.h2gis.api.DriverFunction
-
getFormatDescription
- Specified by:
getFormatDescriptionin interfaceorg.h2gis.api.DriverFunction
-
isSpatialFormat
- Specified by:
isSpatialFormatin interfaceorg.h2gis.api.DriverFunction
-
exportTable
public String[] exportTable(Connection connection, String tableReference, File fileName, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException - Specified by:
exportTablein interfaceorg.h2gis.api.DriverFunction- Throws:
SQLExceptionIOException
-
exportTable
public String[] exportTable(Connection connection, String tableReference, File fileName, boolean deleteFiles, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException - Specified by:
exportTablein interfaceorg.h2gis.api.DriverFunction- Throws:
SQLExceptionIOException
-
exportTable
public String[] exportTable(Connection connection, String tableReference, File fileName, String options, boolean deleteFiles, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException - Specified by:
exportTablein interfaceorg.h2gis.api.DriverFunction- Throws:
SQLExceptionIOException
-
exportTable
public String[] exportTable(Connection connection, String tableReference, File fileName, String options, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException - Specified by:
exportTablein interfaceorg.h2gis.api.DriverFunction- Throws:
SQLExceptionIOException
-
importFile
public String[] importFile(Connection connection, String tableReference, File fileName, String encoding, boolean deleteTables, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException - Specified by:
importFilein interfaceorg.h2gis.api.DriverFunction- Throws:
SQLExceptionIOException
-
importFile
public String[] importFile(Connection connection, String tableReference, File fileName, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException - Specified by:
importFilein interfaceorg.h2gis.api.DriverFunction- Throws:
SQLExceptionIOException
-
importFile
public String[] importFile(Connection connection, String tableReference, File fileName, String options, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException - Specified by:
importFilein interfaceorg.h2gis.api.DriverFunction- Throws:
SQLExceptionIOException
-
importFile
public String[] importFile(Connection connection, String tableReference, File fileName, boolean deleteTables, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException - Specified by:
importFilein interfaceorg.h2gis.api.DriverFunction- Parameters:
connection- Active connection, do not close this connection.tableReference- prefix uses to store the GPX tablesfileName- File path to readprogress-deleteTables- true to delete the existing tables- Throws:
SQLException- Table write errorIOException- File read error
-