ITerrain5

The ITerrain interface exposes information about the MPT, such as the MPT file name that is being used, and additional information about the MPT coordinate system. The GroupKey, SystemKey, DatumKey and UnitKey properties together define the terrain coordinate system. This interface is supported by TerraExplorer v3.1 as of version 4.0 it is superseded by the ITerrain2 interface.

ITerrain2 is derived from ITerrain and adds to it the ability to get elevation information from the MPT file.

ITerrain3 is derived from ITerrain2 and adds new functionality to the GetGroundHeightEX() method.

ITerrain4 is derived from ITerrain3 and adds the ability to get the extents (i.e., the bounding rectangle of the terrain database ) of the MPT file.

ITerrain5 is derived from ITerrain4 and adds control over the terrain opacity.

Hierarchy:

 

ITerrain

Properties:

MPTName, GroupKey, SystemKey, DatumKey, UnitKey, EPSG, Description

ITerrain2

Methods:

GetGroundHeight

ITerrain3

Methods:

GetGroundHeightEx

ITerrain4

Methods:

GetExtent

ITerrain5

Properties:

Opacity