TableCreator provides methods for creating the various standard tables in a GeoPackage database.

Hierarchy

Constructors

Properties

geoPackage: GeoPackage
sqlScripts: {
    contents: string[];
    contents_id: string[];
    data_column_constraints: string[];
    data_columns: string[];
    extended_relations: string[];
    extensions: string[];
    feature_tile_link: string[];
    geometry_columns: string[];
    geometry_index: string[];
    geometry_index_index: string[];
    geometry_index_unindex: string[];
    metadata: string[];
    metadata_reference: string[];
    spatial_reference_system: string[];
    table_index: string[];
    tile_matrix: string[];
    tile_matrix_set: string[];
    tile_scaling: string[];
} = ...

Type declaration

  • contents: string[]
  • contents_id: string[]
  • data_column_constraints: string[]
  • data_columns: string[]
  • extended_relations: string[]
  • extensions: string[]
  • feature_tile_link: string[]
  • geometry_columns: string[]
  • geometry_index: string[]
  • geometry_index_index: string[]
  • geometry_index_unindex: string[]
  • metadata: string[]
  • metadata_reference: string[]
  • spatial_reference_system: string[]
  • table_index: string[]
  • tile_matrix: string[]
  • tile_matrix_set: string[]
  • tile_scaling: string[]

Methods

  • Creates all required tables and Spatial Reference Systems, in addition to EPSG:3857

    Returns

    Returns boolean

  • Create the given user table.

    Returns

    the result of run

    Throws

    if the table already exists

    Parameters

    Returns {
        changes: number;
        lastInsertRowid: number;
    }

    • changes: number
    • lastInsertRowid: number
  • Creates all tables necessary for the specified table creation script name in the GeoPackage

    Returns

    Parameters

    • creationScriptName: SqlScripts

      creation scripts to run

    Returns boolean

Generated using TypeDoc