GeoPackage

class GeoPackage : Loadable

An object that represents a GeoPackage. A GeoPackage is an open, standards-based, platform-independent, portable, self-describing, compact format for transferring geospatial information. It is a platform-independent SQLite database file that contains the GeoPackage data and metadata tables.

Constructors

Link copied to clipboard
fun GeoPackage(path: String)

Create a GeoPackage object to read the package file at the given path.

Functions

Link copied to clipboard
open override fun cancelLoad()

Cancels loading metadata for the Loadable object.

Link copied to clipboard
fun close()

Close a GeoPackage. The use of all data it contains should cease before closing a GeoPackage. For example: remove feature layers and rasters from maps and release feature tables. Attempts to access a GeoPackage after it is closed will fail, resulting in an error. After closing a GeoPackage, the underlying file it references can be deleted.

Link copied to clipboard
open suspend override fun load(): Result<Unit>

Loads the metadata for the object.

Link copied to clipboard
open suspend override fun retryLoad(): Result<Unit>

Loads or retries loading metadata for the object.

Properties

Link copied to clipboard
val geoPackageFeatureTables: List<GeoPackageFeatureTable>

All feature tables contained in the GeoPackage.

Link copied to clipboard
val geoPackageRasters: List<GeoPackageRaster>

All rasters contained in the GeoPackage.

Link copied to clipboard
open override val loadStatus: StateFlow<LoadStatus>

The load status.

Link copied to clipboard
val path: String

The path to the GeoPackage file.