This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > GeoDatabaseExtensions > ESRI.ArcGIS.GeoDatabaseExtensions > Interfaces > IT > ITerrainEdit2 Interface > ITerrainEdit2.UpdateExtent Method (ArcObjects .NET 10.5 SDK) |
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
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.