Package org.h2gis.functions.io.shp
Class SHPEngine
- All Implemented Interfaces:
org.h2.api.TableEngine
SHP Table factory.
- Author:
- Nicolas Fortin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SHPDrivercreateDriver(File filePath, List<String> args) Create the driver instance using the file name and additional arguments provided in SQL create table request.protected voidfeedCreateTableData(SHPDriver driver, org.h2.command.ddl.CreateTableData data) Add columns definition of the file into the CreateTableData instance.Methods inherited from class org.h2gis.functions.io.file_table.FileEngine
createTable, getUniqueColumnName
-
Constructor Details
-
SHPEngine
public SHPEngine()
-
-
Method Details
-
createDriver
Description copied from class:FileEngineCreate the driver instance using the file name and additional arguments provided in SQL create table request.- Specified by:
createDriverin classFileEngine<SHPDriver>- Parameters:
filePath- First argument, file nameargs- Additional argument, contains the file name as first argument- Returns:
- Instance of FileDriver
- Throws:
IOException
-
feedCreateTableData
protected void feedCreateTableData(SHPDriver driver, org.h2.command.ddl.CreateTableData data) throws IOException Description copied from class:FileEngineAdd columns definition of the file into the CreateTableData instance.- Specified by:
feedCreateTableDatain classFileEngine<SHPDriver>- Parameters:
driver- driver objectdata- Data to initialise- Throws:
IOException
-