Spatial JDBC
One of H2GIS’s big-picture goals is to provide a common interface to H2 and PostGIS for Geometry data.
For convenience, the spatial-utilities
package provides wrappers that
facilitate using the Java Database Connectivity (JDBC) API in the presence
of Geometry fields.
Example
DataSource
s and Connection
s must be wrapped:
ResultSet
s must be unwrapped into SpatialResultSet
s in order to access
Geometry fields: