ArcObjects Library Reference (GeoDatabaseExtensions)  

ITerrainEdit2.UpdateExtent Method

Refresh terrain's extent.

[Visual Basic .NET]
Public Sub UpdateExtent ( _
    ByVal pTrackCancel As ITrackCancel _
)
[C#]
public void UpdateExtent (
    ITrackCancel pTrackCancel
);
[C++]
HRESULT UpdateExtent(
  ITrackCancel* pTrackCancel
);
[C++]

Parameters

pTrackCancel [in]

  pTrackCancel is a parameter of type ITrackCancel

Product Availability

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

Description

UpdateExtent is used to recalculate the data extent for a windowsize based terrain dataset when the data area has been reduced through editing. It's not needed if the terrain is z-tolerance based. Nor is it needed if the data extent has increased. It's only needed for windowsize terrains with reduced data extents. It needs to be called after the terrain is built (i.e., ITerrainEdit.Build, ITerrain.IsDirty = FALSE.).

UpdateExtent scans through all the terrain data to determine the new extent. It can therefore be expensive in terms of I/O if the terrain is large.

See Also

ITerrainEdit2 Interface