Provides access to members that create or modify a raster layer.
| Description | ||
|---|---|---|
![]() |
AreaOfInterest | The default area of interest for the layer. |
![]() |
BandCount | Number of bands in the layer. |
![]() |
Cached | Indicates if the layer needs its own display cache. |
![]() |
ColumnCount | Number of columns in the layer. |
![]() |
CreateFromDataset | Creates a layer from a RasterDataset object. |
![]() |
CreateFromFilePath | Creates a layer from a file path to raster data. |
![]() |
CreateFromRaster | Creates a layer from a Raster object. |
![]() |
DataFrameExtent | Extent of the dataframe that contains the layer. |
![]() |
DisplayResolutionFactor | Display resolution factor. Factor value is expressed as a percentage between 0 and 100. |
![]() |
Draw | Draws the layer to the specified display for the given draw phase. |
![]() |
FilePath | Filepath of the data source. |
![]() |
MaximumScale | Maximum scale (representative fraction) at which the layer will display. |
![]() |
MinimumScale | Minimum scale (representative fraction) at which the layer will display. |
![]() |
Name | Layer name. |
![]() |
PrimaryField | Layer's primary field. |
![]() |
PyramidPresent | Indicates if pyramids are present for the layer. |
![]() |
Raster | Layer's Raster object. |
![]() |
Renderer | Layer's renderer. |
![]() |
RowCount | Number of rows in the layer. |
![]() |
ShowResolution | Indicates if the raster resolution should be displayed in the Table of Contents. |
![]() |
ShowTips | Indicates if the layer shows map tips. |
![]() |
SpatialReference | Spatial reference for the layer. |
![]() |
SupportedDrawPhases | Supported draw phases. |
![]() |
TipText | Map tip text at the specified location. |
![]() |
Valid | Indicates if the layer is currently valid. |
![]() |
Visible | Indicates if the layer is currently visible. |
![]() |
VisibleExtent | Visible extent of the layer in the data frame. |
| Interfaces | Description |
|---|---|
| ILayer | Provides access to members that work with all layers. |
| CoClasses and Classes | Description |
|---|---|
| RasterLayer | Raster layer source and display options. |
The RasterLayer visualizes all types of raster data supported by ArcGIS except raster catalogs, which must use the RasterCatalogTable and RasterCatalogLayer .
The Raster object obtained from the layer will have had its properties modified by the layer. Therefore, it will not have the extent and cell size of the original dataset. Because these properties have been set, the raster will not be able to use its default settings either. This is because the Raster is used by the RasterLayer to perform resampling, reprojection if necessary, and data type conversion when needed.
The easiest way to access the unmodified Raster is to open a RasterDataset based on the file path from the layer and use the CreateDefaultRaster method to get the desired raster.
A raster layer can be initialized with a path to a disk-based raster dataset, a Raster object, or a RasterDataset object. This example shows how to create a RasterLayer from a file path, Raster (pRaster),or RasterDataset (pRasterDataset).
'Cocreate the new RasterLayer
Dim pRasLyr as IRasterLayer
Set pRasLyr =New RasterLayer
'Initialize one of the following three methods
pRasLyr.CreateFromFilePath "D:\data \dem.bsq"
pRasLyr.CreateFromDataset pRasterDataset
pRasLyr.CreateFromRaster pRaster