ArcObjects Library Reference (GeoDatabaseExtensions)  

ITerrainEdit.ChangeMaxScale Method

Modifies the largest display scale used for a particular level of a terrain pyramid.

[Visual Basic .NET]
Public Sub ChangeMaxScale ( _
    ByVal index As Integer, _
    ByVal newScale As Integer _
)
[C#]
public void ChangeMaxScale (
    int index,
    int newScale
);
[C++]
HRESULT ChangeMaxScale(
  long index,
  long newScale
);
[C++]

Parameters

index [in]   index is a parameter of type long newScale [in]   newScale is a parameter of type long

Product Availability

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

Description

A reference scale is associated with each terrain pyramid level. This is the maximum display scale at which a pyramid level is used when displaying a terrain in a map. At a larger display scale (i.e. more zoomed in) a more accurate pyramid is used.

The input index represents the pyramid level desired, from finer to coarser resolution, excluding the full resolution level. So, index 0 refers to the pyramid level with the smallest ZTolerance that is greater than 0.0. The valid index range is 0 to ITerrain.ZToleranceCount-1.

The value passed for newScale is the denominator of the scale. For example, to define a pyramid used for displays at scales up to 1:24000 pass a value of 24000.

Modifying the maximum scale for a pyramid does not necessitate a rebuild of the terrain.

See Also

ITerrainEdit Interface