Package com.esri.arcgisruntime.raster
Class MosaicDatasetRaster
- java.lang.Object
-
- com.esri.arcgisruntime.raster.Raster
-
- com.esri.arcgisruntime.raster.MosaicDatasetRaster
-
-
Constructor Summary
Constructors Constructor Description MosaicDatasetRaster(java.lang.String databasePath, java.lang.String rasterName)
Creates a mosaic dataset raster from a mosaic dataset in an existing SQLite database.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListenableFuture<java.lang.Void>
addRastersAsync(AddRastersParameters parameters)
Asynchronously adds raster data to this mosaic dataset raster.static MosaicDatasetRaster
create(Geodatabase geodatabase, java.lang.String rasterName, SpatialReference spatialReference)
Creates a new mosaic dataset raster with the specified raster name hosted in the specified geodatabase.static MosaicDatasetRaster
create(java.lang.String databasePath, java.lang.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.static java.util.List<java.lang.String>
getNames(java.lang.String databasePath)
Gets names of all rasters in the database.static void
remove(Geodatabase geodatabase, java.lang.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, removeDoneLoadingListener, removeLoadStatusChangedListener, retryLoadAsync
-
-
-
-
Constructor Detail
-
MosaicDatasetRaster
public MosaicDatasetRaster(java.lang.String databasePath, java.lang.String rasterName)
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:
java.lang.IllegalArgumentException
- if databasePath is null or emptyjava.lang.IllegalArgumentException
- if rasterName is null or empty- Since:
- 100.0.0
-
-
Method Detail
-
create
public static MosaicDatasetRaster create(java.lang.String databasePath, java.lang.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:
java.lang.IllegalArgumentException
- if databasePath is null or emptyjava.lang.IllegalArgumentException
- if rasterName is null or emptyjava.lang.IllegalArgumentException
- if spatialReference is null- Since:
- 100.2.0
-
create
public static MosaicDatasetRaster create(Geodatabase geodatabase, java.lang.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:
java.lang.IllegalArgumentException
- if geodatabase is nulljava.lang.IllegalArgumentException
- if rasterName is null or emptyjava.lang.IllegalArgumentException
- if spatialReference is null- Since:
- 100.2.0
-
addRastersAsync
public ListenableFuture<java.lang.Void> addRastersAsync(AddRastersParameters parameters)
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:
java.lang.IllegalArgumentException
- if parameters is null- Since:
- 100.2.0
-
remove
public static void remove(Geodatabase geodatabase, java.lang.String rasterName)
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:
java.lang.IllegalArgumentException
- if geodatabase is nulljava.lang.IllegalArgumentException
- if rasterName is null or empty- Since:
- 100.2.0
-
getNames
public static java.util.List<java.lang.String> getNames(java.lang.String databasePath)
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:
java.lang.IllegalArgumentException
- if databasePath is null or empty- Since:
- 100.0.0
-
-