Class RsGeoPkgDialect

java.lang.Object
org.geotools.jdbc.SQLDialect
org.geotools.jdbc.PreparedStatementSQLDialect
org.geotools.geopkg.GeoPkgDialect
org.geotools.geopkg.RsGeoPkgDialect

public class RsGeoPkgDialect extends org.geotools.geopkg.GeoPkgDialect

An extension of GeoPkgDialect to add support for additional geometry types by swapping out the geometry reader.

Note: this class needs to live in the org.geotools.geopkg package to make use of package private classes from there.

  • Field Summary

    Fields inherited from class org.geotools.geopkg.GeoPkgDialect

    contentsOnly, geomWriterConfig

    Fields inherited from class org.geotools.jdbc.SQLDialect

    BASE_DBMS_CAPABILITIES, dataStore, forceLongitudeFirst, LOGGER, UNWRAPPER_NOT_FOUND, uwMap
  • Constructor Summary

    Constructors
    Constructor
    Description
    RsGeoPkgDialect(org.geotools.jdbc.JDBCDataStore dataStore, org.geotools.geopkg.geom.GeoPkgGeomWriter.Configuration writerConfig)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    convertValue(Object value, org.geotools.api.feature.type.AttributeDescriptor ad)
     
    org.locationtech.jts.geom.Geometry
    decodeGeometryValue(org.geotools.api.feature.type.GeometryDescriptor descriptor, ResultSet rs, int column, org.locationtech.jts.geom.GeometryFactory factory, Connection cx, org.geotools.util.factory.Hints hints)
     
    org.locationtech.jts.geom.Geometry
    decodeGeometryValue(org.geotools.api.feature.type.GeometryDescriptor descriptor, ResultSet rs, String column, org.locationtech.jts.geom.GeometryFactory factory, Connection cx, org.geotools.util.factory.Hints hints)
     
     

    Methods inherited from class org.geotools.geopkg.GeoPkgDialect

    addSupportedHints, applyLimitOffset, canGroupOnGeometry, convert, createCRS, createPreparedFilterToSQL, decodeGeometryEnvelope, encodeColumnType, encodeGeometryEnvelope, encodePrimaryKey, getAggregateConverter, getGeometryDimension, getGeometrySRID, getGeometryTypeName, getLastAutoGeneratedValue, getOptimizedBounds, getPkColumnValue, getPrimaryKey, getRestrictions, getSQLType, includeTable, initializeConnection, isArray, isLimitOffsetSupported, lookupGeneratedValuesPostInsert, postCreateAttribute, postCreateTable, postDropTable, registerClassToSqlMappings, registerSqlTypeNameToClassMappings, registerSqlTypeToSqlTypeNameOverrides, setArrayValue, setContentsOnly, setGeometryValue, setValue, splitFilter

    Methods inherited from class org.geotools.jdbc.PreparedStatementSQLDialect

    convertArrayElement, convertToArray, getArrayComponentTypeName, onDelete, onInsert, onSelect, onUpdate, prepareFunctionArgument, prepareGeometryValue, prepareGeometryValue

    Methods inherited from class org.geotools.jdbc.SQLDialect

    applyHintsOnVirtualTables, canSimplifyPoints, createIndex, dropIndex, encodeColumnAlias, encodeColumnName, encodeCreateTable, encodeGeometryColumn, encodeGeometryColumnGeneralized, encodeGeometryColumnSimplified, encodeJoin, encodeNextSequenceValue, encodePostColumnCreateTable, encodePostCreateTable, encodePostSelect, encodeSchemaName, encodeTableAlias, encodeTableName, escapeName, getDefaultVarcharSize, getDesiredTablesType, getIndexes, getLastAutoGeneratedValue, getMapping, getNameEscape, getNextAutoGeneratedValue, getNextSequenceValue, getResultTypes, getSequenceForColumn, handleSelectHints, handleUserDefinedType, isAggregatedSortSupported, isAutoCommitQuery, isGroupBySupported, ne, postCreateFeatureType, preDropTable, registerAggregateFunctions, registerSqlTypeToClassMappings, supportsSchemaForIndex, unwrapConnection

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RsGeoPkgDialect

      public RsGeoPkgDialect(org.geotools.jdbc.JDBCDataStore dataStore, org.geotools.geopkg.geom.GeoPkgGeomWriter.Configuration writerConfig)
  • Method Details

    • decodeGeometryValue

      public org.locationtech.jts.geom.Geometry decodeGeometryValue(org.geotools.api.feature.type.GeometryDescriptor descriptor, ResultSet rs, String column, org.locationtech.jts.geom.GeometryFactory factory, Connection cx, org.geotools.util.factory.Hints hints) throws IOException, SQLException
      Overrides:
      decodeGeometryValue in class org.geotools.geopkg.GeoPkgDialect
      Throws:
      IOException
      SQLException
    • decodeGeometryValue

      public org.locationtech.jts.geom.Geometry decodeGeometryValue(org.geotools.api.feature.type.GeometryDescriptor descriptor, ResultSet rs, int column, org.locationtech.jts.geom.GeometryFactory factory, Connection cx, org.geotools.util.factory.Hints hints) throws IOException, SQLException
      Overrides:
      decodeGeometryValue in class org.geotools.geopkg.GeoPkgDialect
      Throws:
      IOException
      SQLException
    • getMapping

      public Class<?> getMapping(ResultSet columns, Connection cx) throws SQLException
      Overrides:
      getMapping in class org.geotools.geopkg.GeoPkgDialect
      Throws:
      SQLException
    • convertValue

      public Object convertValue(Object value, org.geotools.api.feature.type.AttributeDescriptor ad)
      Overrides:
      convertValue in class org.geotools.geopkg.GeoPkgDialect