This document is archived and information here might be outdated.  Recommended version.


IRasterLayer Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IR > IRasterLayer Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IRasterLayer Interface

Provides access to members that create or modify a raster layer.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Name Description
Read-only property AreaOfInterest The default area of interest for the layer.
Read-only property BandCount Number of bands in the layer.
Read/write property Cached Indicates if the layer needs its own display cache.
Read-only property ColumnCount Number of columns in the layer.
Method CreateFromDataset Creates a layer from a RasterDataset object.
Method CreateFromFilePath Creates a layer from a file path to raster data.
Method CreateFromRaster Creates a layer from a Raster object.
Read-only property DataFrameExtent Extent of the dataframe that contains the layer.
Read/write property DisplayResolutionFactor Display resolution factor. Factor value is expressed as a percentage between 0 and 100.
Method Draw Draws the layer to the specified display for the given draw phase.
Read-only property FilePath Filepath of the data source.
Read/write property MaximumScale Maximum scale (representative fraction) at which the layer will display.
Read/write property MinimumScale Minimum scale (representative fraction) at which the layer will display.
Read/write property Name Layer name.
Read/write property PrimaryField Layer's primary field.
Read/write property PyramidPresent Indicates if pyramids are present for the layer.
Read-only property Raster Layer's Raster object.
Read/write property Renderer Layer's renderer.
Read-only property RowCount Number of rows in the layer.
Read/write property ShowResolution Indicates if the raster resolution should be displayed in the Table of Contents.
Read/write property ShowTips Indicates if the layer shows map tips.
Write-only property SpatialReference Spatial reference for the layer.
Read-only property SupportedDrawPhases Supported draw phases.
Read-only property TipText Map tip text at the specified location.
Read-only property Valid Indicates if the layer is currently valid.
Read/write property Visible Indicates if the layer is currently visible.
Read/write property VisibleExtent Visible extent of the layer in the data frame.

Inherited Interfaces

Interfaces Description
ILayer Provides access to members that work with all layers.

CoClasses that implement IRasterLayer

CoClasses and Classes Description
ImageServerLayer Image server layer source and display options.
RasterLayer Raster layer source and display options.
WCSLayer WCS layer source and display options.

Remarks

The RasterLayer must be initialized with data before it can be used. When the layer is initialized, a default renderer is selected for the dataset based on the number of bands, statistics, and whether a colormap or other table exists for the data. Other internal properties of the layer are also set at this time.

See Also

RasterLayer Class

.NET Snippets

Add GeoDataset Raster To Map | Add Globe Layer by Type | Add Drape Layer to Globe Elevation Surface

.NET Related Topics

Creating and working with basemap layers | GlobeCore | How to access OGC WCS coverage | How to create a raster layer | How to drape a layer on an elevation surface in globe