Package org.h2gis.functions.io.gpx
Class GPXRead
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.functions.io.gpx.GPXRead
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class GPXRead extends org.h2gis.api.AbstractFunction implements org.h2gis.api.ScalarFunctionSQL Function to copy GPX File data into a Table.- Author:
- Erwan Bocher
-
-
Constructor Summary
Constructors Constructor Description GPXRead()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetJavaStaticMethod()static voidimportTable(Connection connection, String fileName)Copy data from GPX File into a new table in specified connection.static voidimportTable(Connection connection, String fileName, String tableReference, String encoding, boolean deleteTables)Copy data from GPX File into a new table in specified connection.static voidimportTable(Connection connection, String fileName, String tableReference, org.h2.value.Value option)static voidimportTable(Connection connection, String fileName, org.h2.value.Value option)-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
- Specified by:
getJavaStaticMethodin interfaceorg.h2gis.api.ScalarFunction
-
importTable
public static void importTable(Connection connection, String fileName, org.h2.value.Value option) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
importTable
public static void importTable(Connection connection, String fileName, String tableReference, org.h2.value.Value option) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
importTable
public static void importTable(Connection connection, String fileName, String tableReference, String encoding, boolean deleteTables) throws IOException, SQLException
Copy data from GPX File into a new table in specified connection.- Parameters:
connection- Active connectiontableReference- [[catalog.]schema.]table referencefileName- File path of the SHP fileencoding- charset encodingdeleteTables- true to delete the existing tables- Throws:
IOExceptionSQLException
-
importTable
public static void importTable(Connection connection, String fileName) throws IOException, SQLException
Copy data from GPX File into a new table in specified connection.- Parameters:
connection-fileName-- Throws:
IOExceptionSQLException
-
-