Package org.h2gis.functions.io.geojson
Class GeoJsonRead
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.functions.io.geojson.GeoJsonRead
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class GeoJsonRead extends org.h2gis.api.AbstractFunction implements org.h2gis.api.ScalarFunctionSQL function to read a GeoJSON file an creates the corresponding spatial table.- Author:
- Erwan Bocher, CNRS, 2020
-
-
Constructor Summary
Constructors Constructor Description GeoJsonRead()
-
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 deleteTable)static voidimportTable(Connection connection, String fileName, String tableReference, org.h2.value.Value option)static voidimportTable(Connection connection, String fileName, org.h2.value.Value option)Read the GeoJSON file.-
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) throws IOException, SQLException
- Parameters:
connection-fileName-- Throws:
IOExceptionSQLException
-
importTable
public static void importTable(Connection connection, String fileName, org.h2.value.Value option) throws IOException, SQLException
Read the GeoJSON file.- Parameters:
connection-fileName-option-- Throws:
IOExceptionSQLException
-
importTable
public static void importTable(Connection connection, String fileName, String tableReference, org.h2.value.Value option) throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
importTable
public static void importTable(Connection connection, String fileName, String tableReference, String encoding, boolean deleteTable) throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
-