Class OSMDriverFunction

  • All Implemented Interfaces:
    org.h2gis.api.DriverFunction

    public class OSMDriverFunction
    extends Object
    implements org.h2gis.api.DriverFunction
    Author:
    Erwan Bocher, Sylvain PALOMINOS (UBS 2019)
    • Field Detail

      • DESCRIPTION

        public static String DESCRIPTION
      • DESCRIPTION_GZ

        public static String DESCRIPTION_GZ
      • DESCRIPTION_BZ2

        public static String DESCRIPTION_BZ2
    • Constructor Detail

      • OSMDriverFunction

        public OSMDriverFunction()
    • Method Detail

      • getImportDriverType

        public org.h2gis.api.DriverFunction.IMPORT_DRIVER_TYPE getImportDriverType()
        Specified by:
        getImportDriverType 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
      • 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
        Parameters:
        connection - Active connection, do not close this connection.
        tableReference - prefix uses to store the OSM tables
        fileName - File path to read
        progress -
        deleteTables - true to delete the existing tables
        Throws:
        SQLException - Table write error
        IOException - File read error
      • getImportFormats

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