java.lang.Object
com.esri.arcgisruntime.raster.Raster
com.esri.arcgisruntime.raster.MosaicDatasetRaster
- All Implemented Interfaces:
Loadable
Represents a geodatabase model designed for managing collection of images.
This format provides many benefits such as dynamic mosaicking, managing large image collections, etc.
- Since:
- 100.0.0
-
Property Summary
Properties inherited from class com.esri.arcgisruntime.raster.Raster
loadError, loadStatus
-
Constructor Summary
ConstructorDescriptionMosaicDatasetRaster
(String databasePath, String rasterName) Creates a mosaic dataset raster from a mosaic dataset in an existing SQLite database. -
Method Summary
Modifier and TypeMethodDescriptionaddRastersAsync
(AddRastersParameters parameters) Asynchronously adds raster data to this mosaic dataset raster.static MosaicDatasetRaster
create
(Geodatabase geodatabase, String rasterName, SpatialReference spatialReference) Creates a new mosaic dataset raster with the specified raster name hosted in the specified geodatabase.static MosaicDatasetRaster
create
(String databasePath, String rasterName, SpatialReference spatialReference) Creates a new mosaic dataset raster with the specified raster name hosted in a new SQLite database which will be located at the specified database path.Gets names of all rasters in the database.static void
remove
(Geodatabase geodatabase, String rasterName) Deletes a mosaic dataset raster from the specified geodatabase.Methods inherited from class com.esri.arcgisruntime.raster.Raster
addDoneLoadingListener, addLoadStatusChangedListener, cancelLoad, getLoadError, getLoadStatus, getPath, getRasterFunction, loadAsync, loadErrorProperty, loadStatusProperty, removeDoneLoadingListener, removeLoadStatusChangedListener, retryLoadAsync
-
Constructor Details
-
MosaicDatasetRaster
Creates a mosaic dataset raster from a mosaic dataset in an existing SQLite database.- Parameters:
databasePath
- path of the SQLite file that contains the mosaic dataset, can be a local path or network pathrasterName
- name of the mosaic dataset raster in the database- Throws:
IllegalArgumentException
- if databasePath is null or emptyIllegalArgumentException
- if rasterName is null or empty- Since:
- 100.0.0
-
-
Method Details
-
create
public static MosaicDatasetRaster create(String databasePath, String rasterName, SpatialReference spatialReference) Creates a new mosaic dataset raster with the specified raster name hosted in a new SQLite database which will be located at the specified database path. The SQLite database is created when the MosaicDatasetRaster is loaded.- Parameters:
databasePath
- absolute path of the SQLite file to be created that will contain the mosaic dataset raster. The path needs to contain the database filename with the file extension ".sqlite". The folder that is going to contain the file must exist on the file system.rasterName
- name of the mosaic dataset raster to be createdspatialReference
- the spatial reference of the mosaic dataset raster to be created- Returns:
- the new mosaic dataset raster
- Throws:
IllegalArgumentException
- if databasePath is null or emptyIllegalArgumentException
- if rasterName is null or emptyIllegalArgumentException
- if spatialReference is null- Since:
- 100.2.0
-
create
public static MosaicDatasetRaster create(Geodatabase geodatabase, String rasterName, SpatialReference spatialReference) Creates a new mosaic dataset raster with the specified raster name hosted in the specified geodatabase.- Parameters:
geodatabase
- the geodatabase that will contain the new mosaic dataset rasterrasterName
- name of the mosaic dataset raster to be createdspatialReference
- the spatial reference of the mosaic dataset raster to be created- Returns:
- the new mosaic dataset raster
- Throws:
IllegalArgumentException
- if geodatabase is nullIllegalArgumentException
- if rasterName is null or emptyIllegalArgumentException
- if spatialReference is null- Since:
- 100.2.0
-
addRastersAsync
Asynchronously adds raster data to this mosaic dataset raster.- Parameters:
parameters
- the parameters that specify the raster data to be added- Returns:
- a ListenableFuture for tracking when the asynchronous operation is done and getting the result
- Throws:
IllegalArgumentException
- if parameters is null- Since:
- 100.2.0
-
remove
Deletes a mosaic dataset raster from the specified geodatabase.- Parameters:
geodatabase
- the geodatabase that contains the mosaic dataset raster to be deletedrasterName
- the name of the mosaic dataset raster to be deleted- Throws:
IllegalArgumentException
- if geodatabase is nullIllegalArgumentException
- if rasterName is null or empty- Since:
- 100.2.0
-
getNames
Gets names of all rasters in the database.- Parameters:
databasePath
- absolute file path to the raster file on device- Returns:
- an unmodifiable list of names of all rasters in the database.
- Throws:
IllegalArgumentException
- if databasePath is null or empty- Since:
- 100.0.0
-