Package org.h2gis.functions.io.fgb
Class FGBRead
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.functions.io.fgb.FGBRead
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class FGBRead extends org.h2gis.api.AbstractFunction implements org.h2gis.api.ScalarFunctionExpose FlatGeobuffer reader function- Author:
- Erwan Bocher, Nicolas Fortin
-
-
Constructor Summary
Constructors Constructor Description FGBRead()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidexecute(Connection connection, String fileName, String tableReference)Read a table and write it into a FlatGeobuf file.static voidexecute(Connection connection, String fileName, String tableReference, boolean deleteTable)Read a table and write it into a FlatGeobuf file.StringgetJavaStaticMethod()-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
- Specified by:
getJavaStaticMethodin interfaceorg.h2gis.api.ScalarFunction
-
execute
public static void execute(Connection connection, String fileName, String tableReference, boolean deleteTable) throws SQLException, IOException
Read a table and write it into a FlatGeobuf file.- Parameters:
connection- Active connectionfileName- FlatGeobuf file name or URItableReference- Table name or select query Note : The select query must be enclosed in parenthesis- Throws:
IOExceptionSQLException
-
execute
public static void execute(Connection connection, String fileName, String tableReference) throws IOException, SQLException
Read a table and write it into a FlatGeobuf file.- Parameters:
connection- Active connectionfileName- FlatGeobuf file name or URItableReference- Table name or select query Note : The select query must be enclosed in parenthesis- Throws:
IOExceptionSQLException
-
-