Skip To Content ArcGIS for Developers Sign In Dashboard

GeoPackage Class


GeoPackage is an open, standards-based, compact format for transferring geospatial information. More...

Header: #include <GeoPackage>
Since: Esri::ArcGISRuntime 100.2
Inherits: Object and Loadable

Public Functions

GeoPackage(const QString &path, QObject *parent = nullptr)
void close()
QList<GeoPackageFeatureTable *> geoPackageFeatureTables() const
QList<GeoPackageRaster *> geoPackageRasters() const
QString path() const

Reimplemented Public Functions

virtual void cancelLoad()
virtual void load()
virtual Error loadError() const
virtual LoadStatus loadStatus() const
virtual void retryLoad()


void doneLoading(Esri::ArcGISRuntime::Error loadError)
void loadStatusChanged(Esri::ArcGISRuntime::LoadStatus loadStatus)

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

GeoPackage is an open, standards-based, compact format for transferring geospatial information.

A GeoPackage is a platform-independent SQLite database file that contains the GeoPackage data and metadata tables.

Member Function Documentation

GeoPackage::GeoPackage(const QString &path, QObject *parent = nullptr)

Constructor that takes a path to a GeoPackage file along with an optional parent.



[virtual] void GeoPackage::cancelLoad()

Reimplemented from Loadable::cancelLoad().

See Loadable.

void GeoPackage::close()

Close the GeoPackage.

This should only be called once you have finished accessing the data in the 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.

[signal] void GeoPackage::doneLoading(Esri::ArcGISRuntime::Error loadError)

Signal emitted when this object is done loading.

  • loadError - Details about any error that may have occurred.

Note: If there is a load error it will also be emitted on the errorOccurred signal.

See also Loadable and Object.

QList<GeoPackageFeatureTable *> GeoPackage::geoPackageFeatureTables() const

Returns all the feature tables from the GeoPackage.

QList<GeoPackageRaster *> GeoPackage::geoPackageRasters() const

Returns all the rasters from the GeoPackage.

[virtual] void GeoPackage::load()

Reimplemented from Loadable::load().

See Loadable.

[virtual] Error GeoPackage::loadError() const

Reimplemented from Loadable::loadError().

See Loadable.

[virtual] LoadStatus GeoPackage::loadStatus() const

Reimplemented from Loadable::loadStatus().

See Loadable.

[signal] void GeoPackage::loadStatusChanged(Esri::ArcGISRuntime::LoadStatus loadStatus)

Signal emitted when the loadStatus property changes.

See also Loadable.

QString GeoPackage::path() const

The path specified to the GeoPackage file.

[virtual] void GeoPackage::retryLoad()

Reimplemented from Loadable::retryLoad().

See Loadable.

Feedback on this topic?