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


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

ITerrain.GetPointCount Method

Returns the approximate number of points in the terrain within a given area and at a particular pyramid level.

[Visual Basic .NET]
Public Function GetPointCount ( _
    ByVal pAOI As IEnvelope, _
    ByVal Resolution As Double _
) As Double
[C#]
public double GetPointCount (
    IEnvelope pAOI,
    double Resolution
);
[C++]
HRESULT GetPointCount(
  IEnvelope* pAOI,
  double Resolution
);
[C++]
Parameters
pAOI [in]

pAOI is a parameter of type IEnvelope* Resolution [in]
Resolution is a parameter of type double

Product Availability

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

Description

GetPointCount returns the number of points and breakline vertices, at a particular pyramid level, for those terrain tiles intersected by a given envelope. This yields a relatively quick estimate, albeit over-estimated, of the size of the terrain for that area and vertical tolerance. Only 3-D measurements are counted. Z-less line and polygon vertices are excluded.

GetPointCount will return an error when called on a terrain that is in need of being built. That is, when ITerrain.IsValid returns FALSE. Ensure the terrain IsValid before calling this member.

See Also

ITerrain Interface