org.h2gis.drivers.shp
Class SHPEngine

java.lang.Object
  extended by org.h2gis.drivers.file_table.FileEngine<SHPDriver>
      extended by org.h2gis.drivers.shp.SHPEngine
All Implemented Interfaces:
org.h2.api.TableEngine

public class SHPEngine
extends FileEngine<SHPDriver>

SHP Table factory.

Author:
Nicolas Fortin

Constructor Summary
SHPEngine()
           
 
Method Summary
protected  SHPDriver createDriver(File filePath, List<String> args)
          Create the driver instance using the file name and additional arguments provided in SQL create table request.
protected  void feedCreateTableData(SHPDriver driver, org.h2.command.ddl.CreateTableData data)
          Add columns definition of the file into the CreateTableData instance.
 
Methods inherited from class org.h2gis.drivers.file_table.FileEngine
createTable, getUniqueColumnName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SHPEngine

public SHPEngine()
Method Detail

createDriver

protected SHPDriver createDriver(File filePath,
                                 List<String> args)
                          throws IOException
Description copied from class: FileEngine
Create the driver instance using the file name and additional arguments provided in SQL create table request.

Specified by:
createDriver in class FileEngine<SHPDriver>
Parameters:
filePath - First argument, file name
args - 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: FileEngine
Add columns definition of the file into the CreateTableData instance.

Specified by:
feedCreateTableData in class FileEngine<SHPDriver>
data - Data to initialise
Throws:
IOException


Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.