Show / Hide Table of Contents

Class Raster

Represents raster data that can be rendered using a RasterLayer.

Inheritance
System.Object
Raster
GeoPackageRaster
ImageServiceRaster
MosaicDatasetRaster
Implements
ILoadable
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Esri.ArcGISRuntime.Rasters
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class Raster : ILoadable
Remarks

A raster consists of a matrix of cells (or pixels) organized into rows and columns (or a grid) where each cell contains a value representing information, such as temperature. Rasters are digital aerial photographs, imagery from satellites, digital pictures, or even scanned maps.

A Raster can be created from a raster file on the device or from a RasterFunction.

Supported Raster formats include:

  • ASRP/USRP
  • CRF
  • DTED0, 1, 2
  • GeoTIFF
  • HFA
  • HRE
  • IMG
  • JPEG
  • JPEG 2000
  • MrSID, generations 2, 3, and 4
  • NITF
  • PNG
  • PDF
  • RPF (CIB)
  • RPF (CADRG)
  • SRTM1, 2
  • Mobile mosaic datasets

Learn more about rasters from the ArcGIS Pro documentation.

Constructors

Name Description
Raster(RasterFunction)

Initializes a new instance of the Raster class.

Raster(String)

Initializes a new instance of the Raster class.

Properties

Name Description
Function

Gets the raster function for this instance.

LoadError

Gets the load status of raster.

LoadStatus

Gets the load status of raster.

Path

Gets the raster path for this instance.

RasterType

Gets the type of the raster (data source)

Methods

Name Description
CancelLoad()

Cancels an ongoing load.

LoadAsync()

Initiates loading of raster.

RetryLoadAsync()

Retry loading raster.

Events

Name Description
Loaded

Occurs when raster is loaded.

LoadStatusChanged

Occurs when raster's LoadStatus is changed.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8

Relevant samples

Raster layer (file): Create and use a raster layer made from a local raster file.
In This Article
Back to top Copyright © 2022 Esri.