GeoPackage is an open, standards-based, compact format for transferring geospatial information. More...
Header: | #include <GeoPackage.h> |
Since: | Esri::ArcGISRuntime 100.2 |
Inherits: | Esri::ArcGISRuntime::Object and Esri::ArcGISRuntime::Loadable |
This class was introduced in Esri::ArcGISRuntime 100.2.
Public Functions
GeoPackage(const QString &path, QObject *parent = nullptr) | |
virtual | ~GeoPackage() override |
void | close() |
QList<Esri::ArcGISRuntime::GeoPackageFeatureTable *> | geoPackageFeatureTables() const |
QList<Esri::ArcGISRuntime::GeoPackageRaster *> | geoPackageRasters() const |
QString | path() const |
Reimplemented Public Functions
virtual void | cancelLoad() override |
virtual void | load() override |
virtual Esri::ArcGISRuntime::Error | loadError() const override |
virtual Esri::ArcGISRuntime::LoadStatus | loadStatus() const override |
virtual void | retryLoad() override |
Signals
void | doneLoading(Esri::ArcGISRuntime::Error loadError) |
void | loadStatusChanged(Esri::ArcGISRuntime::LoadStatus loadStatus) |
Detailed Description
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.
[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.
[signal]
void GeoPackage::loadStatusChanged (Esri::ArcGISRuntime::LoadStatus loadStatus )
Signal emitted when the loadStatus property changes.
See also Loadable.
[override virtual]
GeoPackage::~GeoPackage ()
Destructor
[override virtual]
void GeoPackage::cancelLoad ()
Reimplements: 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.
QList<Esri::ArcGISRuntime::GeoPackageFeatureTable *> GeoPackage::geoPackageFeatureTables () const
Returns all the feature tables from the GeoPackage.
QList<Esri::ArcGISRuntime::GeoPackageRaster *> GeoPackage::geoPackageRasters () const
Returns all the rasters from the GeoPackage.
[override virtual]
void GeoPackage::load()
Reimplements: Loadable::load().
See Loadable.
[override virtual]
Esri::ArcGISRuntime::Error GeoPackage::loadError () const
Reimplements: Loadable::loadError() const.
See Loadable.
[override virtual]
Esri::ArcGISRuntime::LoadStatus GeoPackage::loadStatus () const
Reimplements: Loadable::loadStatus() const.
See Loadable.
QString GeoPackage::path() const
The path specified to the GeoPackage file.
[override virtual]
void GeoPackage::retryLoad ()
Reimplements: Loadable::retryLoad().
See Loadable.