This document is archived and information here might be outdated.  Recommended version.

ITerrainEdit2.UpdateExtent Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GeodatabaseExtensions > ESRI.ArcGIS.GeoDatabaseExtensions > Interfaces > IT > ITerrainEdit2 Interface > ITerrainEdit2.UpdateExtent Method
ArcGIS Developer Help

ITerrainEdit2.UpdateExtent Method

Refresh terrain's extent.

[Visual Basic .NET]
Public Sub UpdateExtent ( _
    ByVal pTrackCancel As ITrackCancel _
public void UpdateExtent (
    ITrackCancel pTrackCancel
HRESULT UpdateExtent(
  ITrackCancel* pTrackCancel
pTrackCancel [in]

pTrackCancel is a parameter of type ITrackCancel*

Product Availability

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


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