GeoPackage Cache

Hierarchy

  • GeoPackageCache

Constructors

Methods

  • Close the GeoPackage if it is cached (same GeoPackage instance)

    Returns

    true if closed

    Parameters

    Returns boolean

  • Close the GeoPackage if it is not cached (GeoPackage not cached or different instance)

    Returns

    true if closed

    Parameters

    Returns boolean

  • Close GeoPackages not specified in the retain GeoPackage names

    Parameters

    • retain: string[]

      GeoPackages to retain

    Returns void

  • Close the GeoPackage with name

    Returns

    true if found and closed

    Parameters

    • name: string

      GeoPackage name

    Returns boolean

  • Close GeoPackages with names

    Parameters

    • names: string[]

      GeoPackage names

    Returns void

  • Checks if the GeoPackage name exists in the cache

    Returns

    true if exists

    Parameters

    • name: string

      GeoPackage name

    Returns boolean

  • Get the names of the cached GeoPackages

    Returns

    set of cached GeoPackage names

    Returns string[]

  • Get the cached GeoPackage or open the GeoPackage file without caching it

    Returns

    GeoPackage

    Parameters

    • gppathOrByteArray: string | Buffer | Uint8Array

      GeoPackage buffer, Uint8Array or filePath

    Returns Promise<GeoPackage>

  • Determine if the cache has the GeoPackage name

    Returns

    true if has cached GeoPackage

    Parameters

    • name: string

      GeoPackage name

    Returns boolean

  • Is close quietly mode enabled

    Returns

    true if close quiet mode

    Returns boolean

  • Remove and close the GeoPackage with name, same as #close(String)

    Returns

    true if found, removed, and closed

    Parameters

    • name: string

      GeoPackage name

    Returns boolean

  • Set the close quietly mode

    Parameters

    • closeQuietly: boolean

      true to close quietly

    Returns void

Generated using TypeDoc