org.h2gis.drivers.geojson
Class GeoJsonDriverFunction

java.lang.Object
  extended by org.h2gis.drivers.geojson.GeoJsonDriverFunction
All Implemented Interfaces:
DriverFunction

public class GeoJsonDriverFunction
extends Object
implements DriverFunction

GeoJSON driver to import a GeoJSON file and export a spatial table in a GeoJSON 1.0 file.

Author:
Erwan Bocher

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.h2gis.h2spatialapi.DriverFunction
DriverFunction.IMPORT_DRIVER_TYPE
 
Constructor Summary
GeoJsonDriverFunction()
           
 
Method Summary
 void exportTable(Connection connection, String tableReference, File fileName, ProgressVisitor progress)
           
 String[] getExportFormats()
           
 String getFormatDescription(String format)
           
 DriverFunction.IMPORT_DRIVER_TYPE getImportDriverType()
           
 String[] getImportFormats()
           
 void importFile(Connection connection, String tableReference, File fileName, ProgressVisitor progress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoJsonDriverFunction

public GeoJsonDriverFunction()
Method Detail

getImportDriverType

public DriverFunction.IMPORT_DRIVER_TYPE getImportDriverType()
Specified by:
getImportDriverType in interface DriverFunction

getImportFormats

public String[] getImportFormats()
Specified by:
getImportFormats in interface DriverFunction

getExportFormats

public String[] getExportFormats()
Specified by:
getExportFormats in interface DriverFunction

getFormatDescription

public String getFormatDescription(String format)
Specified by:
getFormatDescription in interface DriverFunction

exportTable

public void exportTable(Connection connection,
                        String tableReference,
                        File fileName,
                        ProgressVisitor progress)
                 throws SQLException,
                        IOException
Specified by:
exportTable in interface DriverFunction
Throws:
SQLException
IOException

importFile

public void importFile(Connection connection,
                       String tableReference,
                       File fileName,
                       ProgressVisitor progress)
                throws SQLException,
                       IOException
Specified by:
importFile in interface DriverFunction
Throws:
SQLException
IOException


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