RTreeIndex extension

Hierarchy

Constructors

Properties

connection: GeoPackageConnection = null

Connection

extensionDefinition: string

Definition for the extension

extensionName: string

Name of the extension

extensionsDao: ExtensionsDao

ExtensionDao

geoPackage: GeoPackage

GeoPackage

tableName: string

extension table name

DEFINITION: "http://www.geopackage.org/spec/#extension_rtree" = 'http://www.geopackage.org/spec/#extension_rtree'

Extension definition URL

EXTENSION_NAME: string = ...

Extension name

Methods

  • Create the RTree Index extension for the feature table, geometry column, and id column. Creates the SQL functions, loads the tree, and creates the triggers.

    Returns

    extension

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    • idColumnName: string

      id column name

    Returns Extensions

  • Create Triggers to Maintain Spatial Index Values

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    • idColumnName: string

      id column name

    Returns void

  • Create delete trigger

    Conditions: Row deleted Actions : Remove record from rtree for old

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    • idColumnName: string

      id column name

    Returns void

  • Create the extension

    Parameters

    • extensionName: string
    • tableName: string
    • columnName: string
    • definition: string
    • scopeType: string

    Returns number

  • Check if the GeoPackage has the RTree extension and create the functions if needed

    Returns

    true if has extension and functions created

    Returns boolean

  • Check if the table and column has the RTree extension and create the functions if needed

    Returns

    true if has extension and functions created

    Parameters

    • tableName: string

      table name

    • columnName: string

      column name

    Returns boolean

  • Create insert trigger

    Conditions: Insertion of non-empty geometry
    Actions   : Insert record into rtree
    

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    • idColumnName: string

      id column name

    Returns void

  • Create the RTree Index Virtual Table

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    • Optional idColumn: string

      id column name

    Returns void

  • Create update 1 trigger

    Conditions: Update of geometry column to non-empty geometry No row ID change Actions : Update record in rtree

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    • idColumnName: string

      id column name

    Returns void

  • Create update 2 trigger

    Conditions: Update of geometry column to empty geometry No row ID change Actions : Remove record from rtree

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    • idColumnName: string

      id column name

    Returns void

  • Create update 3 trigger

    Conditions: Update of any column Row ID change Non-empty geometry Actions : Remove record from rtree for old Insert record into rtree for new

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    • idColumnName: string

      id column name

    Returns void

  • Create update 4 trigger

    Conditions: Update of any column Row ID change Empty geometry Actions : Remove record from rtree for old and new

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    • idColumnName: string

      id column name

    Returns void

  • Delete the RTree Index extension for the table and geometry column. Drops the triggers, RTree table, and deletes the extension.

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    Returns void

  • Delete all RTree Index extensions for the table. Drops the triggers, RTree tables, and deletes the extensions.

    Parameters

    • tableName: string

      table name

    Returns void

  • Drop the the triggers and RTree table for the table and geometry column

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    Returns void

  • Drop Triggers that Maintain Spatial Index Values

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    Returns void

  • Drop delete trigger

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    Returns void

  • Drop insert trigger

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    Returns void

  • Drop the RTree Index Virtual Table

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    Returns void

  • Drop the trigger for the table, geometry column, and trigger name

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    • triggerName: string

      trigger name

    Returns void

  • Check if the table and column has the RTree extension and if found, drop the triggers

    Returns

    true if dropped

    Parameters

    • tableName: string

      table name

    • columnName: string

      column name

    Returns boolean

  • Drop update 1 trigger

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    Returns void

  • Drop update 2 trigger

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    Returns void

  • Drop update 3 trigger

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    Returns void

  • Drop update 4 trigger

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    Returns void

  • Get the extension for the name, table name and column name

    Returns

    Parameters

    • extensionName: string

      extension name

    • Optional tableName: string

      table name

    • Optional columnName: string

      column name

    Returns Extensions

  • Determine if the GeoPackage has the extension

    Returns

    if the extension exists

    Parameters

    • extensionName: string

      extension name

    • tableName: string

      table name

    • columnName: string

      column name

    Returns boolean

  • Determine if the GeoPackage table has the extension

    Returns

    true if has extension

    Parameters

    • tableName: string

      table name

    Returns boolean

  • Determine if the GeoPackage table and column has the extension

    Returns

    true if has extension

    Parameters

    • tableName: string

      table name

    • columnName: string

      column name

    Returns boolean

  • Load the RTree Spatial Index Values

    Parameters

    • tableName: string

      table name

    • geometryColumnName: string

      geometry column name

    • idColumnName: string

      id column name

    Returns void

Generated using TypeDoc