Geometry Extensions utility methods and constants

Hierarchy

Constructors

Properties

Connection to the GeoPackage

extensionDefinition: string

Definition for the extension

extensionName: string

Name of the extension

extensionsDao: ExtensionsDao

ExtensionDao

geoPackage: GeoPackage

GeoPackage

tableName: string

extension table name

GEOMETRY_TYPES_EXTENSION_DEFINITION: string = 'https://www.geopackage.org/spec/#extension_geometry_types'

Geometry Types Extension definition URL

USER_GEOMETRY_TYPES_EXTENSION_DEFINITION: string = 'http://www.geopackage.org/spec/#extension_geometry_encoding'

User Geometry Types Extension definition URL

Deprecated

as of 1.2.1, On August 15, 2016 the GeoPackage SWG voted to remove this extension from the standard due to interoperability concerns. (GeoPackage version 1.2)

Methods

  • Create the extension

    Parameters

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

    Returns number

  • 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

  • Get or create the extension, user defined geometry type

    Returns

    extension

    Deprecated

    as of 5.0.0, On August 15, 2016 the GeoPackage SWG voted to remove this extension from the standard due to interoperability concerns. (GeoPackage version 1.2)

    Parameters

    • tableName: string

      table name

    • columnName: string

      column name

    • geometryType: GeometryType

      geometry type

    • Optional author: string

      user defined author

    Returns Extensions

  • Determine if the GeoPackage has the extension, user defined geometry type

    Returns

    true if has extension

    Deprecated

    as of 1.2.1, On August 15, 2016 the GeoPackage SWG voted to remove this extension from the standard due to interoperability concerns. (GeoPackage version 1.2)

    Parameters

    • tableName: string

      table name

    • columnName: string

      column name

    • author: string

      user defined author

    • geometryType: GeometryType

      geometry type

    Returns boolean

  • 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

  • Get the extension name of a extension Geometry, either user-defined or GeoPackage extension

    Returns

    extension name

    Deprecated

    as of 1.2.1, On August 15, 2016 the GeoPackage SWG voted to remove this extension from the standard due to interoperability concerns. (GeoPackage version 1.2)

    Parameters

    • geometryType: GeometryType

      geometry type

    Returns string

  • Get the extension name of a extension Geometry, either user-defined or GeoPackage extension

    Returns

    extension name

    Deprecated

    as of 1.2.1, On August 15, 2016 the GeoPackage SWG voted to remove this extension from the standard due to interoperability concerns. (GeoPackage version 1.2)

    Parameters

    • geometryType: GeometryType

      geometry type

    • author: string

      author

    Returns string

  • Determine if the geometry type is an extension

    Returns

    true if extension

    Parameters

    • geometryType: GeometryType

      geometry type

    Returns boolean

  • Determine if the geometry type is a GeoPackage extension

    Returns

    true if a GeoPackage extension, false if user-defined

    Parameters

    • geometryType: GeometryType

      geometry type

    Returns boolean

  • Determine if the geometry type is non standard

    Returns

    true if non standard

    Parameters

    • geometryType: GeometryType

      geometry type

    Returns boolean

Generated using TypeDoc