Class ImageServiceRaster
- java.lang.Object
- 
- com.esri.arcgisruntime.raster.Raster
- 
- com.esri.arcgisruntime.raster.ImageServiceRaster
 
 
- 
- All Implemented Interfaces:
- RemoteResource,- Loadable
 
 public final class ImageServiceRaster extends Raster implements RemoteResource ImageServiceRaster provides access to a raster that is retrieved from an ArcGIS image service.An image service provides access to raster data through a web service. A single raster dataset or a mosaic dataset which contains a collection of raster datasets can be served as one image service. The mosaic dataset can dynamically process and mosaic the images on the fly. An image service supports accessing both the mosaicked image and its catalog, as well as individual rasters in the catalog. An ImageServiceRaster can be used to display raster data from image services using a RasterLayer. Service-defined or client-defined rendering rules can be applied to it throughsetRenderingRule(RenderingRule). An ImageServiceRaster can be passed as a raster input to aRasterFunctionto work with local raster functions.ImageServiceRaster provides access to information such as spatial reference, full extent, pixel size, pixel type, etc., on its raster data and the basic information associated with the service itself. - Since:
- 100.1.0
 
- 
- 
Constructor SummaryConstructors Constructor Description ImageServiceRaster(java.lang.String url)Creates an ImageServiceRaster from a URL.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CredentialgetCredential()Gets theCredentialthat is set on the network-enabled resource.MosaicRulegetMosaicRule()Gets the mosaic rule used for combining a number of input rasters that are often overlapping.RenderingRulegetRenderingRule()Gets the current rendering rule.RequestConfigurationgetRequestConfiguration()Gets theRequestConfigurationused to modify the parameters of network requests made by thisRemoteResource.ArcGISImageServiceInfogetServiceInfo()Gets the service info.java.lang.StringgetUri()Gets the URL used to create this raster.voidsetCredential(Credential credential)Sets aCredentialto be used by the network-enabled resource in the event of an authentication challenge.voidsetMosaicRule(MosaicRule mosaicRule)Sets the mosaic rule used for combining a number of input rasters that are often overlapping.voidsetRenderingRule(RenderingRule renderingRule)Sets the rendering rule.voidsetRequestConfiguration(RequestConfiguration requestConfiguration)Sets theRequestConfigurationused to modify the parameters of network requests made by thisRemoteResource.- 
Methods inherited from class com.esri.arcgisruntime.raster.RasteraddDoneLoadingListener, addLoadStatusChangedListener, cancelLoad, getLoadError, getLoadStatus, getPath, getRasterFunction, loadAsync, removeDoneLoadingListener, removeLoadStatusChangedListener, retryLoadAsync
 
- 
 
- 
- 
- 
Constructor Detail- 
ImageServiceRasterpublic ImageServiceRaster(java.lang.String url) Creates an ImageServiceRaster from a URL.- Parameters:
- url- URL of the image service raster
- Throws:
- java.lang.IllegalArgumentException- if url is null or empty
- ArcGISRuntimeException- if the url format is not valid
- Since:
- 100.1.0
 
 
- 
 - 
Method Detail- 
getMosaicRulepublic MosaicRule getMosaicRule() Gets the mosaic rule used for combining a number of input rasters that are often overlapping.- Returns:
- the mosaic rule used for combining a number of input rasters that are often overlapping, or null if none
- Since:
- 100.9.0
 
 - 
setMosaicRulepublic void setMosaicRule(MosaicRule mosaicRule) Sets the mosaic rule used for combining a number of input rasters that are often overlapping.- Parameters:
- mosaicRule- the mosaic rule used for combining a number of input rasters that are often overlapping. Can be null.
- Since:
- 100.9.0
 
 - 
getRenderingRulepublic RenderingRule getRenderingRule() Gets the current rendering rule.- Returns:
- the current rendering rule
- Since:
- 100.1.0
 
 - 
setRenderingRulepublic void setRenderingRule(RenderingRule renderingRule) Sets the rendering rule.The image service raster must be in the LoadStatus.NOT_LOADEDorLoadStatus.FAILED_TO_LOADstate when calling this method.- Parameters:
- renderingRule- the rendering rule to set
- Throws:
- java.lang.IllegalArgumentException- if renderingRule is null
- ArcGISRuntimeException- if the raster is either loaded or loading
- Since:
- 100.1.0
 
 - 
getServiceInfopublic ArcGISImageServiceInfo getServiceInfo() Gets the service info.- Returns:
- the service info
- Since:
- 100.1.0
 
 - 
setCredentialpublic void setCredential(Credential credential) Description copied from interface:RemoteResourceSets aCredentialto be used by the network-enabled resource in the event of an authentication challenge. The default credential is null.Only applicable if the resource is secured. - Specified by:
- setCredentialin interface- RemoteResource
- Parameters:
- credential- the Credential to be used for authentication
 
 - 
getCredentialpublic Credential getCredential() Description copied from interface:RemoteResourceGets theCredentialthat is set on the network-enabled resource.Only applicable if the resource is secured. - Specified by:
- getCredentialin interface- RemoteResource
- Returns:
- the Credential, or null if there is none
 
 - 
setRequestConfigurationpublic void setRequestConfiguration(RequestConfiguration requestConfiguration) Description copied from interface:RemoteResourceSets theRequestConfigurationused to modify the parameters of network requests made by thisRemoteResource. If not set, the globalRequestConfigurationwill be used (seeRequestConfiguration.getGlobalRequestConfiguration()).- Specified by:
- setRequestConfigurationin interface- RemoteResource
- Parameters:
- requestConfiguration- the RequestConfiguration used to modify network requests
 
 - 
getRequestConfigurationpublic RequestConfiguration getRequestConfiguration() Description copied from interface:RemoteResourceGets theRequestConfigurationused to modify the parameters of network requests made by thisRemoteResource.- Specified by:
- getRequestConfigurationin interface- RemoteResource
- Returns:
- the RequestConfigurationused to modify network requests
 
 - 
getUripublic java.lang.String getUri() Gets the URL used to create this raster.- Specified by:
- getUriin interface- RemoteResource
- Returns:
- the URL used to create this raster
- Since:
- 100.1.0
 
 
- 
 
-