Indicates that a particular extension applies to a GeoPackage, a table in a GeoPackage or a column of a table in a GeoPackage. An application that access a GeoPackage can query the gpkg_extensions table instead of the contents of all the user data tables to determine if it has the required capabilities to read or write to tables with extensions, and to “fail fast” and return an error message if it does not.

Hierarchy

  • Extensions

Constructors

Properties

column_name: string

Name of the column that requires the extension. When NULL, the extension is required for the entire table.

definition: string

Definition of the extension in the form specfied by the template in GeoPackage Extension Template (Normative) or reference thereto.

extension_name: string

The case sensitive name of the extension that is required, in the form _.

scope: string

Indicates scope of extension effects on readers / writers: read-write or write-only in lowercase.

table_name: string

Name of the table that requires the extension. When NULL, the extension is required for the entire GeoPackage. SHALL NOT be NULL when the column_name is not NULL.

COLUMN_COLUMN_NAME: "column_name" = 'column_name'

columnName field name

COLUMN_DEFINITION: "definition" = 'definition'

definition field name

COLUMN_EXTENSION_NAME: "extension_name" = 'extension_name'

extensionName field name

COLUMN_SCOPE: "scope" = 'scope'

scope field name

COLUMN_TABLE_NAME: "table_name" = 'table_name'

tableName field name

EXTENSION_NAME_DIVIDER: "_" = '_'

Divider between extension name parts

TABLE_NAME: "gpkg_extensions" = 'gpkg_extensions'

Table name

Methods

  • Set the extension name by combining the required parts

    Parameters

    • author: string

      author

    • extensionName: string

      extension name

    Returns void

  • Get the extension name with the author prefix removed

    Returns

    extension name without the author

    Returns string

  • Set the column name

    Parameters

    • columnName: string

      column name

    Returns void

  • Set the definition

    Parameters

    • definition: string

      definition

    Returns void

  • Set the extension name

    Parameters

    • extensionName: string

      extension name

    Returns void

  • Set the extension scope type

    Parameters

    • scope: string

      extension scope type

    Returns void

  • Build the extension name by combining the required parts

    Returns

    extension name

    Parameters

    • author: string

      extension author

    • extensionName: string

      extension name

    Returns string

  • Get the author from the beginning of the extension name

    Returns

    author extension author

    Parameters

    • extensionName: string

      extension name

    Returns string

  • Get the extension name with the author prefix removed

    Returns

    extension name, no author

    Parameters

    • extensionName: string

      extension name

    Returns string

Generated using TypeDoc