ArcObjects Library Reference (DefenseSolutions)  

IMADtedLayer Interface

Provides access to members that create or modify MADtedLayers.

Product Availability

Available with ArcGIS Engine and ArcGIS Desktop.

Description

This interface is the core of the MADtedLayer 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 DisplayElevation Indicates if displays elevation datasets 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 UseUniformRenderer Applies a uniform stretched renderer to all the datasets in the catalog.

Inherited Interfaces

Interfaces Description
IMALayer Provides access to Indicator IMALayer Interface.

CoClasses that implement IMADtedLayer

CoClasses and Classes Description
MADtedLayer A layer used to control the display of MA DTED Catalogs.

Remarks

The following VB snippet illustrates how to use IMADtedLayer to create a layer from a DTED catalog.

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

    ' Instantiate the layer
    Dim pMADtedLy As IMADtedLayer
    Set pMADtedLy = New MADtedLayer

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

    Exit Function
erh:
    MsgBox "Error: " & vbCrLf & Err.Description
End Function