A spatial extension of the H2 database
 All Classes Namespaces Functions Variables Pages
H2GIS Documentation

This H2GIS module defines the API for the whole project, it describes the different type of functions supported and some utilities classes.

Function API


Root interface for the SQL function definition.


Scalar function in H2 can be defined through CREATE ALIAS, but in an OSGi context the class java name is not sufficient.

The full declaration of java name in H2 through osgi is BundleSymbolicName:BundleVersion:BinaryJavaName.

Registering this interface as an OSGi service will add this function in H2GIS linked with a DataSource service.


Abstract implementation of the Function interface which is able to handle properties into a map.


Extended by Scalar function which return always the same value for the same arguments.


This function can import/export a file into/from a table. Connection may be on a remote H2/Postgres database.

The file can be linked to the database or copied into the database.

ProgressVisitor API


Progression information.


A progress visitor that do nothing.

File API


Implement this interface in order to create a org.h2.table.TableBase in your org.h2.api.TableEngine implementation.

How to use:

  • Implement this interface with your file driver
  • Implement a FileEngine
  • Add your FileEngine implementation into the DriverManager