GeoPackage Manager used to create and open GeoPackages

Hierarchy

  • GeoPackageManager

Constructors

Properties

Methods

Constructors

Properties

version: string = '5.0.0'

Methods

  • In Node, create a GeoPackage file at the given file path, or in a browser, create an in-memory GeoPackage.

    Returns

    promise that resolves with the open GeoPackage object or rejects with an Error

    Parameters

    • Optional gppath: string

      path of the created GeoPackage file; ignored in the browser

    • Optional name: string

      name for the GeoPackage

    Returns Promise<GeoPackage>

  • In Node, open a GeoPackage file at the given path, or in a browser, load an in-memory GeoPackage from the given byte array.

    Returns

    promise that resolves with the open GeoPackage object or rejects with an Error

    Parameters

    • gppathOrByteArray: string | Buffer | Uint8Array

      path to the GeoPackage file or Uint8Array of GeoPackage bytes

    • name: string = undefined

      name of GeoPackage, but defaults to file path in Node

    Returns Promise<GeoPackage>

Generated using TypeDoc