Class H2GISPSFilterToSql

  • All Implemented Interfaces:
    ExpressionVisitor, FilterVisitor

    public class H2GISPSFilterToSql
    extends PreparedFilterToSQL
    jdbc-h2gis is an extension to connect H2GIS a spatial library that brings spatial support to the H2 Java database.

    H2GIS dialect filter based on prepared statements.

    Erwan Bocher
    • Constructor Detail

      • H2GISPSFilterToSql

        public H2GISPSFilterToSql​(H2GISPSDialect dialect)
    • Method Detail

      • setFunctionEncodingEnabled

        public void setFunctionEncodingEnabled​(boolean functionEncodingEnabled)
      • getDistanceInNativeUnits

        public double getDistanceInNativeUnits​(DistanceBufferOperator operator)
        Description copied from class: FilterToSQL
        Rough evaluation of distance in the units of the current SRID, assuming that the SRID maps to a known EPSG code. Will use a rather imprecise transformation for distances over degrees, but better than nothing.
        getDistanceInNativeUnits in class FilterToSQL
      • visit

        public Object visit​(Function function,
                            Object extraData)
                     throws RuntimeException
        Description copied from class: FilterToSQL
        Writes sql for a function expression. By default it will write the call by using the same arguments provided to the GeoTools function, subclasses should override on a case by case basis if this behavior is not the desired one.
        Specified by:
        visit in interface ExpressionVisitor
        visit in class FilterToSQL
        function - a function expression
        RuntimeException - If an IO error occurs.
        See Also: