public class

RasterLayer

extends Layer
java.lang.Object
   ↳ com.esri.android.map.Layer
     ↳ com.esri.android.map.RasterLayer

Class Overview

This layer can render raster data and display it in a MapView. It can be initialized from different types of raster sources, such as a file on disk (see FileRasterSource), or from the result of an analysis function that produces raster outputs (see FunctionRasterSource).

Summary

[Expand]
Inherited Fields
From class com.esri.android.map.Layer
Public Constructors
RasterLayer(RasterSource rasterSource)
Creates a new RasterLayer, and binds the provided RasterSource to the layer.
Public Methods
float getBrightness()
Gets the brightness of the RasterLayer.
float getContrast()
Gets the contrast of the RasterLayer.
Envelope getFullExtent()
Returns the full extent of the layer.
float getGamma()
Gets the gamma of the RasterLayer.
RasterSource getRasterSource()
Gets the RasterSource that was used to instantiate this RasterLayer.
RasterRenderer getRenderer()
Gets the renderer that's been set on the RasterLayer.
void reinitializeLayer(UserCredentials usercredentials)
Re-initializes the layer.
void setBrightness(float brightness)
Sets the brightness of the RasterLayer.
void setContrast(float contrast)
Sets the contrast of the RasterLayer.
void setGamma(float gamma)
Sets the gamma of the RasterLayer.
void setRenderer(RasterRenderer renderer)
Sets a renderer of the RasterLayer.
Protected Methods
long create()
void initLayer()
Initializes the layer.
[Expand]
Inherited Methods
From class com.esri.android.map.Layer
From class java.lang.Object

Public Constructors

public RasterLayer (RasterSource rasterSource)

Creates a new RasterLayer, and binds the provided RasterSource to the layer. This source may be directly read from a file, or the result of a function. The layer will be initialized immediately.

Parameters
rasterSource RasterSource: the source of the raster data, such as a file or a function output (see FileRasterSource, FunctionRasterSource)

Public Methods

public float getBrightness ()

Gets the brightness of the RasterLayer. This method is not currently supported for layers instantiated from a FunctionRasterSource.

Returns
float the brightness

public float getContrast ()

Gets the contrast of the RasterLayer. This method is not currently supported for layers instantiated from a FunctionRasterSource.

Returns
float the contrast

public Envelope getFullExtent ()

Returns the full extent of the layer. Returns NULL if the layer does not have a full extent, or if the layer has been instantiated with a FunctionRasterSource.

Returns
Envelope an Envelope object

public float getGamma ()

Gets the gamma of the RasterLayer. This method is not currently supported for layers instantiated from a FunctionRasterSource.

Returns
float the gamma

public RasterSource getRasterSource ()

Gets the RasterSource that was used to instantiate this RasterLayer.

Returns
RasterSource the raster source that was used to instantiate this layer

public RasterRenderer getRenderer ()

Gets the renderer that's been set on the RasterLayer. This method is not currently supported for layers instantiated from a FunctionRasterSource.

Returns
RasterRenderer the renderer that was set on the RasterLayer

public void reinitializeLayer (UserCredentials usercredentials)

Re-initializes the layer.

Parameters
usercredentials UserCredentials: the credentials are not currently used.

public void setBrightness (float brightness)

Sets the brightness of the RasterLayer. This method is not currently supported for layers instantiated from a FunctionRasterSource.

Parameters
brightness float: the brightness to set

public void setContrast (float contrast)

Sets the contrast of the RasterLayer. This method is not currently supported for layers instantiated from a FunctionRasterSource.

Parameters
contrast float: the contrast to set

public void setGamma (float gamma)

Sets the gamma of the RasterLayer. This method is not currently supported for layers instantiated from a FunctionRasterSource.

Parameters
gamma float: the gamma to set

public void setRenderer (RasterRenderer renderer)

Sets a renderer of the RasterLayer. This method is not currently supported for layers instantiated from a FunctionRasterSource.

Parameters
renderer RasterRenderer: the renderer to set

Protected Methods

protected long create ()

Returns
long

protected void initLayer ()

Initializes the layer. The implementation should submit the OnStatusChangedListener.STATUS event accordingly.