Package org.h2gis.functions.io.osm
Class OSMRead
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.functions.io.osm.OSMRead
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class OSMRead extends org.h2gis.api.AbstractFunction implements org.h2gis.api.ScalarFunctionSQL Function to copy OSM File data into a set of tables.- Author:
- Erwan Bocher
-
-
Constructor Summary
Constructors Constructor Description OSMRead()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetJavaStaticMethod()static voidimportTable(Connection connection, String fileName)static voidimportTable(Connection connection, String fileName, String tableReference, String encoding, boolean deleteTables)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, String tableReference, org.h2.value.Value option) throws SQLException, IOException
- Parameters:
connection-fileName-tableReference-option- true to delete the existing tables or set a chartset encoding- Throws:
FileNotFoundExceptionSQLExceptionIOException
-
importTable
public static void importTable(Connection connection, String fileName, org.h2.value.Value option) throws SQLException, IOException
- Parameters:
connection-fileName-option-- Throws:
FileNotFoundExceptionSQLExceptionIOException
-
importTable
public static void importTable(Connection connection, String fileName, String tableReference, String encoding, boolean deleteTables) throws FileNotFoundException, SQLException, IOException
- Parameters:
connection-fileName-tableReference-encoding-deleteTables-- Throws:
FileNotFoundExceptionSQLExceptionIOException
-
importTable
public static void importTable(Connection connection, String fileName) throws SQLException, IOException
- Parameters:
connection-fileName-- Throws:
FileNotFoundExceptionSQLExceptionIOException
-
-