Skip To Content ArcGIS for Developers Sign In Dashboard

ImageServiceRaster QML Type

Represents a raster based off an image service. More...

Import Statement: import Esri.ArcGISRuntime 100.6
Since: Esri.ArcGISRuntime 100.1
Inherits:

Raster

Properties

Signals

Detailed Description

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 image service raster allows you to display raster data from image services using a RasterLayer. It also allows you to apply service-defined or client-defined rendering rules by setting renderingRule on it. You can pass an image service raster as a raster input to a RasterFunction to work with local raster functions.

This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.

Create an ImageServiceRaster:

// create the raster layer from an image service raster
ImageServiceRaster {
    id: imageServiceRaster
    url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/NLCDLandCover2001/ImageServer"

    // zoom to the center of the raster once it's loaded
    onLoadStatusChanged: {
        if (loadStatus === Enums.LoadStatusLoaded) {
            var scale = 50000000.;
            mapView.setViewpointCenterAndScale(imageServiceRaster.serviceInfo.fullExtent.center, scale);
        }
    }
}

You can see the complete code in the QML sample Raster Layer Service.

See also Loadable and Raster.

Property Documentation

[default] credential : Credential

The security credential used to access the image service.

Only applicable if the service is secured.


[default] renderingRule : RenderingRule

The rendering rule to apply.


[default] requestConfiguration : RequestConfiguration

The configuration parameters used for network requests sent to this service.


serviceInfo : ArcGISImageServiceInfo

Returns the service info corresponding to this image service.


url : url

The url to the image service.

Note: You cannot set the url to the ImageServiceRaster after the instance is already loaded.


Signal Documentation

credentialChanged()

Emitted when the credential property changes.


renderingRuleChanged()

Emitted when the renderingRule property changes.


requestConfigurationChanged()

Emitted when the requestConfiguration property changes.


serviceInfoChanged()

Emitted when the serviceInfo property changes.


urlChanged()

Emitted when the url property changes.



Feedback on this topic?