Sqlite3dTilesArchive

class Sqlite3dTilesArchive : ReadOnlyArchive

ReadOnlyArchive over a Cesium .3dtiles package — a SQLite database whose media(key, content) table maps each tileset-relative path to its (optionally gzipped) bytes. This is the SQLite sibling of ZipFileArchive (which reads the .3tz / 3TZ ZIP form); both feed the same earth.worldwind.layer.ogc3d.stream.ArchiveTileByteSource transport, so the layer pipeline is identical regardless of container.

Entry paths are relative, e.g. tileset.json, content/0/0.b3dm. Scope: JVM + Android.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val entryCount: Int

Number of entries in the archive (diagnostic; also a proxy for index-memory pressure).

Functions

Link copied to clipboard
open override fun close()

Release the underlying file handle. Idempotent.

Link copied to clipboard
open override fun hasEntry(path: String): Boolean

True when path resolves to an entry. Cheap index/metadata lookup, no full read.

Link copied to clipboard
open suspend override fun readEntry(path: String): ByteArray?

Read and decompress the entry at path (archive-internal path, e.g. content/0/0.b3dm or nodes/1/geometries/0.bin). Returns null when the entry is absent. Runs the blocking read on an IO dispatcher in the implementation. Throws only on genuine IO failure, not on a miss.