Raster data that is retrieved from a mobile mosaic dataset. More...
| Header | #include <Mosaic |
| Since | Esri |
| Inherits | Esri |
Public Functions
| Mosaic | |
| virtual | ~ |
(since Esri QFuture | add |
(since Esri QFuture | distinct |
| QString | table |
Static Public Members
(since Esri Esri | create( |
(since Esri Esri | create(const QString &path, const QString &table |
(since Esri void | remove( |
(since Esri QString | table |
Detailed Description
Mosaic datasets are a collection of rasters along with an associated mobile geodatabase, typically published in ArcGIS Pro. The geodatabase contains information such as which rasters participate in the mosaic dataset and their paths on disk. To create a mosaic dataset in ArcGIS Pro for use in ArcGIS Maps SDK, use the Mosaic dataset to mobile mosaic dataset geoprocessing tool. You can also create a mobile mosaic dataset programmatically. Call create(const QString&, const QString&, const Esri::ArcGISRuntime::SpatialReference&, QObject*) to create a mobile geodatabase, followed by addRastersAsync(const Esri::ArcGISRuntime::AddRastersParameters&) to add rasters.
Starting with ArcGIS Pro 3.8, you can publish mobile mosaic datasets with time information. Open the mosaic dataset properties in ArcGIS Pro, enable time support, and specify a start time field. End time fields are ignored.
Because RasterLayer implements the TimeAware interface, you can filter time-enabled mobile mosaic datasets using GeoView::timeExtent. When multiple rasters fall within the specified GeoView::timeExtent and overlap, the raster with the most recent timestamp draws on top.
For more details on mosaic datasets, see the ArcGIS Pro documentation.
Relevant samples:
- Filter mosaic dataset raster by time extent: Visualize changes in rasters over time by filtering a mosaic dataset raster for a selected timestamp.
Member Function Documentation
MosaicDatasetRaster::MosaicDatasetRaster (const QString &path, const QString &tableName , QObject *parent = nullptr)
Constructor that takes a path, tableName, and optional parent.
- path. Path of the mobile geodatabase file that contains a mosaic dataset. This can be a local or network path.
- tableName. The name of the mosaic dataset raster. Names can be retrieved from tableNames(const QString&).
- parent. An optional QObject parent.
[override virtual noexcept] MosaicDatasetRaster::~MosaicDatasetRaster ()
Destructor.
[since Esri::ArcGISRuntime 200.2] QFuture<void> MosaicDatasetRaster::addRastersAsync (const Esri::ArcGISRuntime::AddRastersParameters ¶meters)
Adds rasters to mosaic dataset raster.
- parameters - The add rasters parameters object.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.
This function was introduced in Esri::ArcGISRuntime 200.2.
[static, since Esri::ArcGISRuntime 100.1] Esri::ArcGISRuntime::MosaicDatasetRaster *MosaicDatasetRaster::create(Esri::ArcGISRuntime::Geodatabase *geodatabase, const QString &tableName , const Esri::ArcGISRuntime::SpatialReference &spatialReference , QObject *parent = nullptr)
Creates a new mobile mosaic dataset from an input mobile geodatabase, name, and the desired spatial reference.
- geodatabase. A mobile geodatabase.
- tableName. The name of the table used to construct this MosaicDatasetRaster.
- spatialReference. The spatial reference of the mosaic dataset raster to be created.
- parent. An optional QObject parent.
This function was introduced in Esri::ArcGISRuntime 100.1.
[static, since Esri::ArcGISRuntime 100.1] Esri::ArcGISRuntime::MosaicDatasetRaster *MosaicDatasetRaster::create(const QString &path, const QString &tableName , const Esri::ArcGISRuntime::SpatialReference &spatialReference , QObject *parent = nullptr)
Creates a mosaic dataset raster with the specified database path, name, and the desired spatial reference.
- path. The path for a new mobile geodatabase file that will contain the mosaic dataset raster.
- tableName. The name of the table used to construct this MosaicDatasetRaster.
- spatialReference. The spatial reference of the mosaic dataset raster to be created.
- parent. An optional QObject parent.
This function was introduced in Esri::ArcGISRuntime 100.1.
[since Esri::ArcGISRuntime 300.2] QFuture<QList<QDateTime >> MosaicDatasetRaster::distinctTimestampsAsync ()
Returns a sorted collection of distinct timestamps of all rasters that participate in the mosaic dataset.
An effective time slider experience requires a relatively uniform distribution of data over a given time range. Data with irregular or inconsistent date distributions may have gaps that lack valid rasters for certain time ranges, or periods where many rasters are displayed at once. For data that's not well-suited to a time slider, you may choose to implement a UI that steps the user through each raster in the mosaic dataset in chronological order. Call this method to get all distinct timestamps in the dataset (in ascending order) and set the GeoView::timeExtent for each timestamp.
This method requires the data to be published with a single time field defined in ArcGIS Pro. Returns an empty array if time information is not available.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.
This function was introduced in Esri::ArcGISRuntime 300.2.
[static, since Esri::ArcGISRuntime 100.1] void MosaicDatasetRaster::remove(Esri::ArcGISRuntime::Geodatabase *geodatabase, const QString &tableName )
Deletes mosaic dataset raster from the specified geodatabase.
- geodatabase. The geodatabase object.
- tableName. The name of the mosaic dataset raster to be deleted.
This function was introduced in Esri::ArcGISRuntime 100.1.
QString MosaicDatasetRaster::tableName () const
Gets the name of the table used to construct this MosaicDatasetRaster.
[static, since Esri::ArcGISRuntime 100.1] QStringList MosaicDatasetRaster::tableNames (const QString &path)
Returns mosaic dataset table names in the mobile geodatabase.
- path. The path to a mobile geodatabase file.
This function was introduced in Esri::ArcGISRuntime 100.1.