Class GeoJsonDriverFunction

java.lang.Object
org.h2gis.functions.io.geojson.GeoJsonDriverFunction
All Implemented Interfaces:
org.h2gis.api.DriverFunction

public class GeoJsonDriverFunction extends Object implements org.h2gis.api.DriverFunction
GeoJSON driver to import a GeoJSON file and export a spatial table in a GeoJSON 1.0 file.
Author:
Erwan Bocher, Sylvain PALOMINOS (UBS 2019)
  • Constructor Details

    • GeoJsonDriverFunction

      public GeoJsonDriverFunction()
  • Method Details

    • getImportDriverType

      public org.h2gis.api.DriverFunction.IMPORT_DRIVER_TYPE getImportDriverType()
      Specified by:
      getImportDriverType in interface org.h2gis.api.DriverFunction
    • getImportFormats

      public String[] getImportFormats()
      Specified by:
      getImportFormats in interface org.h2gis.api.DriverFunction
    • getExportFormats

      public String[] getExportFormats()
      Specified by:
      getExportFormats in interface org.h2gis.api.DriverFunction
    • getFormatDescription

      public String getFormatDescription(String format)
      Specified by:
      getFormatDescription in interface org.h2gis.api.DriverFunction
    • isSpatialFormat

      public boolean isSpatialFormat(String extension)
      Specified by:
      isSpatialFormat in interface org.h2gis.api.DriverFunction
    • exportTable

      public String[] exportTable(Connection connection, String tableReference, File fileName, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException
      Specified by:
      exportTable in interface org.h2gis.api.DriverFunction
      Throws:
      SQLException
      IOException
    • exportTable

      public String[] exportTable(Connection connection, String tableReference, File fileName, boolean deleteFiles, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException
      Specified by:
      exportTable in interface org.h2gis.api.DriverFunction
      Throws:
      SQLException
      IOException
    • exportTable

      public String[] exportTable(Connection connection, String tableReference, File fileName, String encoding, boolean deleteFiles, org.h2gis.api.ProgressVisitor progress) throws SQLException
      Specified by:
      exportTable in interface org.h2gis.api.DriverFunction
      Throws:
      SQLException
    • exportTable

      public String[] exportTable(Connection connection, String tableReference, File fileName, String encoding, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException
      Specified by:
      exportTable in interface org.h2gis.api.DriverFunction
      Throws:
      SQLException
      IOException
    • importFile

      public String[] importFile(Connection connection, String tableReference, File fileName, String options, boolean deleteTables, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException
      Specified by:
      importFile in interface org.h2gis.api.DriverFunction
      Throws:
      SQLException
      IOException
    • importFile

      public String[] importFile(Connection connection, String tableReference, File fileName, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException
      Specified by:
      importFile in interface org.h2gis.api.DriverFunction
      Throws:
      SQLException
      IOException
    • importFile

      public String[] importFile(Connection connection, String tableReference, File fileName, String options, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException
      Specified by:
      importFile in interface org.h2gis.api.DriverFunction
      Throws:
      SQLException
      IOException
    • importFile

      public String[] importFile(Connection connection, String tableReference, File fileName, boolean deleteTables, org.h2gis.api.ProgressVisitor progress) throws SQLException, IOException
      Specified by:
      importFile in interface org.h2gis.api.DriverFunction
      Throws:
      SQLException
      IOException