Package org.postgis

Class DriverWrapperLW

  • All Implemented Interfaces:
    Driver

    public class DriverWrapperLW
    extends DriverWrapper
    DriverWrapperLW Wraps the PostGreSQL Driver to transparently add the PostGIS Object Classes. This avoids the need of explicit addDataType() calls from the driver users side. This DriverWrapper subclass always uses hex encoded EWKB as canonical text representation, and thus only works against PostGIS 1.x servers and newer. For usage notes, see DriverWrapper class, but use "jdbc:postgresql_lwgis:" as JDBC url prefix and org.postgis.DriverWrapperLW as driver class.
    Author:
    Markus Schaber <[email protected]>
    See Also:
    DriverWrapper
    • Constructor Detail

      • DriverWrapperLW

        public DriverWrapperLW()
                        throws SQLException
        Default constructor.
        Throws:
        SQLException - when a SQLException occurs
    • Method Detail

      • useLW

        protected boolean useLW​(Connection result)
        Description copied from class: DriverWrapper
        Do we have HexWKB as well known text representation - to be overridden by subclasses.
        Overrides:
        useLW in class DriverWrapper
        Parameters:
        result - Connection to check
        Returns:
        true if using EWKB, false otherwise
      • getVersion

        public static String getVersion()
        Returns our own CVS version plus postgres Version
        Returns:
        String value reprenstation of the version