ArcObjects Library Reference (DefenseSolutions)  

IMARasterLayer Interface

Provides access to members that create or modify MARasterLayers.

Product Availability

Available with ArcGIS Engine and ArcGIS Desktop.

Description

This interface is the core of the MARasterLayer and sets the catalog table used for the layer. It also controls the resampling and display of the individual dataset tiles.

Members

Description
Read/write property DisplayRasters Indicates if Displays rasters in the catalog.
Read-only property InternalObject The internal RasterCatalog object.
Read/write property ResamplingType Raster catalog resampling type.
Method Setup Establishes up the MALayer with the RasterCatalog object.
Read/write property UseBestMap Indicates if displays the appropriate raster product based on the scale.

Inherited Interfaces

Interfaces Description
IMALayer Provides access to Indicator IMALayer Interface.

CoClasses that implement IMARasterLayer

CoClasses and Classes Description
MARasterLayer A layer used to control the display of MA RPF Catalogs.

Remarks

The following VB snippet illustrates how to use IMARasterLayer to create a layer from an RPF catalog.

Public Function GetRasterLayer(pRasterCatalog As IRasterCatalog) As ILayer
    Set GetRasterLayer = Nothing
    On Error GoTo erh

    'Create the MARasterLayer
    Dim pMARasterLy As IMARasterLayer
    Set pMARasterLy = New MARasterLayer

    ' Setup the layer
    Dim bSuccess As Boolean
    bSuccess = pMARasterLy.Setup(pRasterCatalog)
    If (bSuccess = True) Then
        Set GetRasterLayer = pMARasterLy
    Else
        Exit Function
    End If

    Exit Function
erh:
    Set GetRasterLayer = Nothing
 End Function